Skip to content

Commit

Permalink
fix: disable cumulus part deletion to confirm es deletion is working …
Browse files Browse the repository at this point in the history
…as intended
  • Loading branch information
wphyojpl committed Dec 18, 2024
1 parent e3c03c4 commit decf638
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cumulus_lambda_functions/uds_api/granules_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ async def delete_single_granule_dapa_actual(request: Request, collection_id: str
cumulus_lambda_prefix = os.getenv('CUMULUS_LAMBDA_PREFIX')
cumulus = GranulesQuery('https://na/dev', 'NA')
cumulus.with_collection_id(collection_id)
cumulus_delete_result = cumulus.delete_entry(cumulus_lambda_prefix, granule_id) # TODO not sure it is correct granule ID
LOGGER.debug(f'cumulus_delete_result: {cumulus_delete_result}')
# cumulus_delete_result = cumulus.delete_entry(cumulus_lambda_prefix, granule_id) # TODO not sure it is correct granule ID
# LOGGER.debug(f'cumulus_delete_result: {cumulus_delete_result}')
es_delete_result = GranulesDbIndex().delete_entry(collection_identifier.tenant,
collection_identifier.venue,
granule_id
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/test_granules_deletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def setUp(self) -> None:

self.tenant = 'UDS_LOCAL_TEST_3' # 'uds_local_test' # 'uds_sandbox'
self.tenant_venue = 'DEV' # 'DEV1' # 'dev'
self.collection_name = 'AAA-07' # 'uds_collection' # 'sbx_collection'
self.collection_name = 'AAA-03' # 'uds_collection' # 'sbx_collection'
# self.collection_version = '08'.replace('.', '') # '2402011200'
return

Expand Down
2 changes: 1 addition & 1 deletion tests/integration_tests/test_stage_out_ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def setUp(self) -> None:

self.tenant = 'UDS_LOCAL_TEST_3' # 'uds_local_test' # 'uds_sandbox'
self.tenant_venue = 'DEV' # 'DEV1' # 'dev'
self.collection_name = 'CCC' # 'uds_collection' # 'sbx_collection'
self.collection_name = 'DDD' # 'uds_collection' # 'sbx_collection'
self.collection_version = '24.03.20.14.40'.replace('.', '') # '2402011200'
return

Expand Down

0 comments on commit decf638

Please sign in to comment.