1717from clients .azure_client import list_blob_objects
1818from tools .mock_fill import fill_s3_bucket , fill_azure_container , fill_gcp_bucket
1919from tools .cleanup import cleanup_s3 , cleanup_azure , cleanup_gcp
20+ from config .constants import MOCK_BUCKET_AWS , MOCK_BUCKET_GCP , MOCK_CONTAINER_AZURE
2021
2122logging .basicConfig (filename = "audit.log" , level = logging .INFO )
2223
@@ -73,18 +74,18 @@ def audit(config):
7374@click .option ('--connection_string' , default = 'UseDevelopmentStorage=true' , help = 'Azure connection string' )
7475def fill (profile , connection_string ):
7576 """Populate buckets with mock audit objects"""
76- fill_s3_bucket ("demo-s3" , profile = profile )
77- fill_azure_container ("demo-container" , connection_string = connection_string )
78- fill_gcp_bucket ("demo-gcp" )
77+ fill_s3_bucket (MOCK_BUCKET_AWS , profile = profile )
78+ fill_azure_container (MOCK_CONTAINER_AZURE , connection_string = connection_string )
79+ fill_gcp_bucket (MOCK_BUCKET_GCP )
7980
8081@cli .command ()
8182@click .option ('--profile' , default = 'auditor' , help = 'AWS profile name' )
8283@click .option ('--connection_string' , default = 'UseDevelopmentStorage=true' , help = 'Azure connection string' )
8384def clean (profile , connection_string ):
8485 """Remove all mock objects from buckets and containers"""
85- cleanup_s3 ("demo-s3" , profile = profile )
86- cleanup_azure ("demo-container" , connection_string = connection_string )
87- cleanup_gcp ("demo-gcp" )
86+ cleanup_s3 (MOCK_BUCKET_AWS , profile = profile )
87+ cleanup_azure (MOCK_CONTAINER_AZURE , connection_string = connection_string )
88+ cleanup_gcp (MOCK_BUCKET_GCP )
8889
8990if __name__ == '__main__' :
90- cli ()
91+ cli ()
0 commit comments