UAT C1256783388-POCLOUD (SWOT_L2_NALT_OGDR_GDR_1.0) #44189
GitHub Actions / Tested with Harmony
failed
Nov 23, 2024 in 0s
2 errors in 3s
Annotations
Check failure on line 0 in tests.verify_collection
github-actions / Tested with Harmony
test_spatial_subset[C1256783388-POCLOUD] (tests.verify_collection) with error
test-results/test_report.xml [took 0s]
Raw output
failed on setup with "Failed: No granules found for UAT collection C1256783388-POCLOUD. CMR search used was https://cmr.uat.earthdata.nasa.gov/search/granules.umm_json?collection_concept_id=C1256783388-POCLOUD&sort_key=-start_date&page_size=1"
collection_concept_id = 'C1256783388-POCLOUD'
cmr_mode = 'https://cmr.uat.earthdata.nasa.gov/search/'
bearer_token = 'eyJ0eXAiOiJKV1QiLCJvcmlnaW4iOiJFYXJ0aGRhdGEgTG9naW4iLCJzaWciOiJlZGxqd3RwdWJrZXlfdWF0IiwiYWxnIjoiUlMyNTYifQ.eyJ0eXBlIj...c6LKcNf4V62gRZ31brDA-4hQMtfEyOzpvQ9hxFnkUEusvI3Y-oYbHVtSa5l7m9KNKjC-lgIvrK7TTs8_80NQDFkGniixoYSbz0AcEjM2fh7TTJfNYzGOCA'
request_session = <requests.sessions.Session object at 0x7f2425bdb550>
@pytest.fixture(scope="function")
def granule_json(collection_concept_id: str, cmr_mode: str, bearer_token: str, request_session) -> dict:
'''
This fixture defines the strategy used for picking a granule from a collection for testing
Parameters
----------
collection_concept_id
cmr_mode
bearer_token
Returns
-------
umm_json for selected granule
'''
cmr_url = f"{cmr_mode}granules.umm_json?collection_concept_id={collection_concept_id}&sort_key=-start_date&page_size=1"
response_json = request_session.get(cmr_url, headers={'Authorization': f'Bearer {bearer_token}'}).json()
if 'items' in response_json and len(response_json['items']) > 0:
return response_json['items'][0]
elif cmr_mode == cmr.CMR_UAT:
> pytest.fail(f"No granules found for UAT collection {collection_concept_id}. CMR search used was {cmr_url}")
E Failed: No granules found for UAT collection C1256783388-POCLOUD. CMR search used was https://cmr.uat.earthdata.nasa.gov/search/granules.umm_json?collection_concept_id=C1256783388-POCLOUD&sort_key=-start_date&page_size=1
verify_collection.py:125: Failed
--------------------------------- Captured Log ---------------------------------
Check failure on line 0 in tests.verify_collection
github-actions / Tested with Harmony
test_temporal_subset[C1256783388-POCLOUD] (tests.verify_collection) with error
test-results/test_report.xml [took 0s]
Raw output
failed on setup with "Failed: No granules found for UAT collection C1256783388-POCLOUD. CMR search used was https://cmr.uat.earthdata.nasa.gov/search/granules.umm_json?collection_concept_id=C1256783388-POCLOUD&sort_key=-start_date&page_size=1"
collection_concept_id = 'C1256783388-POCLOUD'
cmr_mode = 'https://cmr.uat.earthdata.nasa.gov/search/'
bearer_token = 'eyJ0eXAiOiJKV1QiLCJvcmlnaW4iOiJFYXJ0aGRhdGEgTG9naW4iLCJzaWciOiJlZGxqd3RwdWJrZXlfdWF0IiwiYWxnIjoiUlMyNTYifQ.eyJ0eXBlIj...c6LKcNf4V62gRZ31brDA-4hQMtfEyOzpvQ9hxFnkUEusvI3Y-oYbHVtSa5l7m9KNKjC-lgIvrK7TTs8_80NQDFkGniixoYSbz0AcEjM2fh7TTJfNYzGOCA'
request_session = <requests.sessions.Session object at 0x7f2425bdb550>
@pytest.fixture(scope="function")
def granule_json(collection_concept_id: str, cmr_mode: str, bearer_token: str, request_session) -> dict:
'''
This fixture defines the strategy used for picking a granule from a collection for testing
Parameters
----------
collection_concept_id
cmr_mode
bearer_token
Returns
-------
umm_json for selected granule
'''
cmr_url = f"{cmr_mode}granules.umm_json?collection_concept_id={collection_concept_id}&sort_key=-start_date&page_size=1"
response_json = request_session.get(cmr_url, headers={'Authorization': f'Bearer {bearer_token}'}).json()
if 'items' in response_json and len(response_json['items']) > 0:
return response_json['items'][0]
elif cmr_mode == cmr.CMR_UAT:
> pytest.fail(f"No granules found for UAT collection {collection_concept_id}. CMR search used was {cmr_url}")
E Failed: No granules found for UAT collection C1256783388-POCLOUD. CMR search used was https://cmr.uat.earthdata.nasa.gov/search/granules.umm_json?collection_concept_id=C1256783388-POCLOUD&sort_key=-start_date&page_size=1
verify_collection.py:125: Failed
--------------------------------- Captured Log ---------------------------------
Loading