print(account_response_elements)

# ********** Update s3background delete config file with AccesskeyId and SecretKey*****************
load_and_update_config(account_response_elements['AccessKeyId'],
                       account_response_elements['SecretKey'])

#Clear probable delete list index
s3kvs.clean_all_data()
s3kvs.create_s3root_index()

# ********** Create test bucket in s3-background-delete-svc account********
AwsTest('Create Bucket "seagatebucket" using s3-background-delete-svc account')\
    .create_bucket("seagatebucket").execute_test().command_is_successful()

# Initialising the scheduler and processor
scheduler = ObjectRecoveryScheduler()
processor = ObjectRecoveryProcessor()
"""
Test Scenario : 1
Scenario: Delete object leak test (DELETE api test)
   1. create object and the get OID, layout_id from response
   2. enable fault point
   3. delete object
   4. disable fault point
   5. run background delete schedular
   6. run background delete processor
   7. verify cleanup of OID using HEAD api
   8. verify cleanup of Object using aws s3api head-object api
"""
# ********** Upload objects in bucket*************************
result = AwsTest('Upload Object "object1" to bucket "seagatebucket"')\
Exemple #2
0
print(account_response_elements)

# ********** Update s3background delete config file with AccesskeyId and SecretKey*****************
load_and_update_config(account_response_elements['AccessKeyId'],
                       account_response_elements['SecretKey'])

#Clear probable delete list index
s3kvs.clean_all_data()
s3kvs.create_s3root_index()

# ********** Create test bucket in s3-background-delete-svc account********
AwsTest('Create Bucket "seagatebucket" using s3-background-delete-svc account')\
    .create_bucket("seagatebucket").execute_test().command_is_successful()

# Initialising the scheduler and processor
scheduler = ObjectRecoveryScheduler("bgtest")
processor = ObjectRecoveryProcessor()
"""
Test Scenario : 1
Scenario: Delete object leak test (DELETE api test)
   1. create object and the get OID, layout_id from response
   2. enable fault point
   3. delete object
   4. disable fault point
   5. run background delete schedular
   6. run background delete processor
   7. verify cleanup of OID using HEAD api
   8. verify cleanup of Object using aws s3api head-object api
"""
# ********** Upload objects in bucket*************************
result = AwsTest('Upload Object "object1" to bucket "seagatebucket"')\