@@ -1790,10 +1790,10 @@ def test_03_upload_complete_catalog(self):
1790
1790
self .assertTrue ('metadata__cas' in upload_result ['assets' ], 'missing assets#metadata__cas' )
1791
1791
self .assertTrue ('href' in upload_result ['assets' ]['metadata__cas' ], 'missing assets#metadata__cas#href' )
1792
1792
self .assertTrue (
1793
- upload_result ['assets' ]['metadata__cas' ]['href' ].startswith (f's3://{ os .environ ["STAGING_BUCKET" ]} /' ))
1793
+ upload_result ['assets' ]['metadata__cas' ]['href' ].startswith (f's3://{ os .environ ["STAGING_BUCKET" ]} /{ os . environ [ "COLLECTION_ID" ] } / ' ))
1794
1794
self .assertTrue ('data' in upload_result ['assets' ], 'missing assets#data' )
1795
1795
self .assertTrue ('href' in upload_result ['assets' ]['data' ], 'missing assets#data#href' )
1796
- self .assertTrue (upload_result ['assets' ]['data' ]['href' ].startswith (f's3://{ os .environ ["STAGING_BUCKET" ]} /' ))
1796
+ self .assertTrue (upload_result ['assets' ]['data' ]['href' ].startswith (f's3://{ os .environ ["STAGING_BUCKET" ]} /{ os . environ [ "COLLECTION_ID" ] } / ' ))
1797
1797
self .assertTrue (FileUtils .file_exist (os .environ ['OUTPUT_FILE' ]), f'missing output file' )
1798
1798
"""
1799
1799
Example output:
@@ -1808,11 +1808,11 @@ def test_03_upload_complete_catalog(self):
1808
1808
'updated': '2022-03-23T15:48:21.578000Z', 'datetime': '1970-01-01T00:00:00Z'},
1809
1809
'geometry': {'type': 'Point', 'coordinates': [0.0, 0.0]}, 'links': [],
1810
1810
'assets': {'data': {
1811
- 'href': 's3://uds-test-cumulus-staging/NEW_COLLECTION_EXAMPLE_L1B___9:test_file01/test_file01.nc',
1811
+ 'href': 's3://uds-test-cumulus-staging/NEW_COLLECTION_EXAMPLE_L1B___9/NEW_COLLECTION_EXAMPLE_L1B___9 :test_file01/test_file01.nc',
1812
1812
'title': 'main data'}, 'metadata__cas': {
1813
- 'href': 's3://uds-test-cumulus-staging/NEW_COLLECTION_EXAMPLE_L1B___9:test_file01/test_file01.nc.cas',
1813
+ 'href': 's3://uds-test-cumulus-staging/NEW_COLLECTION_EXAMPLE_L1B___9/NEW_COLLECTION_EXAMPLE_L1B___9 :test_file01/test_file01.nc.cas',
1814
1814
'title': 'metadata cas'}, 'metadata__stac': {
1815
- 'href': 's3://uds-test-cumulus-staging/NEW_COLLECTION_EXAMPLE_L1B___9:test_file01/test_file01.nc.stac.json',
1815
+ 'href': 's3://uds-test-cumulus-staging/NEW_COLLECTION_EXAMPLE_L1B___9/NEW_COLLECTION_EXAMPLE_L1B___9 :test_file01/test_file01.nc.stac.json',
1816
1816
'title': 'metadata stac'}},
1817
1817
'bbox': [0.0, 0.0, 0.0, 0.0],
1818
1818
'stac_extensions': [],
@@ -1887,11 +1887,11 @@ def test_04_catalog_from_file_item_collection(self):
1887
1887
'created' : '2016-02-01T02:45:59.639000Z' , 'updated' : '2022-03-23T15:48:21.578000Z' ,
1888
1888
'datetime' : '1970-01-01T00:00:00Z' }, 'geometry' : {'type' : 'Point' , 'coordinates' : [0.0 , 0.0 ]},
1889
1889
'links' : [], 'assets' : {
1890
- 'data' : {'href' : 's3://uds-test-cumulus-staging/NEW_COLLECTION_EXAMPLE_L1B___9:test_file01/test_file01.nc' ,
1890
+ 'data' : {'href' : 's3://uds-test-cumulus-staging/NEW_COLLECTION_EXAMPLE_L1B___9/NEW_COLLECTION_EXAMPLE_L1B___9 :test_file01/test_file01.nc' ,
1891
1891
'title' : 'main data' }, 'metadata__cas' : {
1892
- 'href' : 's3://uds-test-cumulus-staging/NEW_COLLECTION_EXAMPLE_L1B___9:test_file01/test_file01.nc.cas' ,
1892
+ 'href' : 's3://uds-test-cumulus-staging/NEW_COLLECTION_EXAMPLE_L1B___9/NEW_COLLECTION_EXAMPLE_L1B___9 :test_file01/test_file01.nc.cas' ,
1893
1893
'title' : 'metadata cas' }, 'metadata__stac' : {
1894
- 'href' : 's3://uds-test-cumulus-staging/NEW_COLLECTION_EXAMPLE_L1B___9:test_file01/test_file01.nc.stac.json' ,
1894
+ 'href' : 's3://uds-test-cumulus-staging/NEW_COLLECTION_EXAMPLE_L1B___9/NEW_COLLECTION_EXAMPLE_L1B___9 :test_file01/test_file01.nc.stac.json' ,
1895
1895
'title' : 'metadata stac' }}, 'bbox' : [0.0 , 0.0 , 0.0 , 0.0 ], 'stac_extensions' : [],
1896
1896
'collection' : 'NEW_COLLECTION_EXAMPLE_L1B___9' }]}
1897
1897
os .environ [Constants .USERNAME ] = '/unity/uds/user/wphyo/username'
@@ -1903,6 +1903,8 @@ def test_04_catalog_from_file_item_collection(self):
1903
1903
os .environ ['VERIFY_SSL' ] = 'FALSE'
1904
1904
os .environ ['PROVIDER_ID' ] = 'SNPP'
1905
1905
os .environ ['GRANULES_CATALOG_TYPE' ] = 'UNITY'
1906
+ os .environ ['DELAY_SECOND' ] = '35'
1907
+ os .environ ['REPEAT_TIMES' ] = '3'
1906
1908
if len (argv ) > 1 :
1907
1909
argv .pop (- 1 )
1908
1910
argv .append ('CATALOG' )
0 commit comments