SIT testing #238 revealed a bug where the first query for granules in CMR was set to search in SIT and UAT by parent collection with a bearer token but the second query for granule files was not set up in the same way producing inconsistent results and sometimes not returning associated granule files. For track ingest operations running in SIT or UAT, all CMR queries need to query either SIT or UAT collections but should return file info for the UAT environment.
Overview of work done
Modified _query_granule_files to query SIT or UAT and return files associated with the SWOT-UAT environment. This is consistent with the query_cmr method.
Overview of verification done
Modified existing tests to accomodate query updates.
Existing unit tests pass.
Overview of integration done
Deployed feature branch to SIT and ran tests on reaches, nodes, and prior lakes.
Github Issue: #248
Description
SIT testing #238 revealed a bug where the first query for granules in CMR was set to search in SIT and UAT by parent collection with a bearer token but the second query for granule files was not set up in the same way producing inconsistent results and sometimes not returning associated granule files. For track ingest operations running in SIT or UAT, all CMR queries need to query either SIT or UAT collections but should return file info for the UAT environment.
Overview of work done
_query_granule_files
to query SIT or UAT and return files associated with the SWOT-UAT environment. This is consistent with thequery_cmr
method.Overview of verification done
Overview of integration done
Deployed feature branch to SIT and ran tests on reaches, nodes, and prior lakes.
Prior Lake Test Event
Track Ingest Logs
CNM Logs
Load Granule Logs
Confirmed track ingest tables were updated as expected.
PR checklist:
See Pull Request Review Checklist for pointers on reviewing this pull request