VRFS-923 'jamkazam-testing' s3 bucket is emptied after tests
This commit is contained in:
parent
a97472503d
commit
ee5eccfdc3
|
|
@ -23,9 +23,7 @@ def wipe_s3_test_bucket
|
|||
s3 = AWS::S3.new(:access_key_id => test_config.aws_access_key_id,
|
||||
:secret_access_key => test_config.aws_secret_access_key)
|
||||
test_bucket = s3.buckets[JAMKAZAM_TESTING_BUCKET]
|
||||
|
||||
if test_bucket.name == JAMKAZAM_TESTING_BUCKET
|
||||
puts "Ruby - Pretending to delete all contents of #{test_bucket.name}"
|
||||
#test_bucket.delete_all
|
||||
test_bucket.delete_all
|
||||
end
|
||||
end
|
||||
|
|
@ -37,8 +37,7 @@ def wipe_s3_test_bucket
|
|||
:secret_access_key => Rails.application.config.aws_secret_access_key)
|
||||
test_bucket = s3.buckets[JAMKAZAM_TESTING_BUCKET]
|
||||
if test_bucket.name == JAMKAZAM_TESTING_BUCKET
|
||||
puts "Web - Pretending to delete all contents of #{test_bucket.name}"
|
||||
#test_bucket.delete_all
|
||||
test_bucket.delete_all
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue