Skip to content

Commit

Permalink
fixing s3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Guslington committed Nov 20, 2018
1 parent b0d790a commit baa7347
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shelvery_tests/s3data_integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def test_CreateBackupData(self):
# verify the s3 data
account_id = ebs_backups_engine.account_id
s3path = f"{S3_DATA_PREFIX}/{ebs_backups_engine.get_engine_type()}/{engine_backup.name}.yaml"
s3bucket = ShelveryEngine.get_local_bucket_name()
s3bucket = ebs_backups_engine.get_local_bucket_name()
print(f"Usingbucket {s3bucket}")
print(f"Using path {s3path}")
bucket = boto3.resource('s3').Bucket(s3bucket)
Expand Down Expand Up @@ -163,7 +163,7 @@ def test_CreateSharingInfo(self):
if backup.entity_id == self.volume['VolumeId']:
account_id = ebs_backups_engine.account_id
s3path = f"{S3_DATA_PREFIX}/shared/{self.share_with_id}/{ebs_backups_engine.get_engine_type()}/{backup.name}.yaml"
s3bucket = ShelveryEngine.get_local_bucket_name()
s3bucket = ebs_backups_engine.get_local_bucket_name()
bucket = boto3.resource('s3').Bucket(s3bucket)
object = bucket.Object(s3path)
content = object.get()['Body'].read()
Expand Down Expand Up @@ -214,7 +214,7 @@ def test_CleanBackupData(self):

account_id = ebs_backups_engine.account_id
s3path = f"{S3_DATA_PREFIX}/{ebs_backups_engine.get_engine_type()}/removed/{backup.name}.yaml"
s3bucket = ShelveryEngine.get_local_bucket_name()
s3bucket = ebs_backups_engine.get_local_bucket_name()
bucket = boto3.resource('s3').Bucket(s3bucket)
object = bucket.Object(s3path)
content = object.get()['Body'].read()
Expand Down

0 comments on commit baa7347

Please sign in to comment.