aws-int-test-rspec-helper 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f680275f6d5ef500bca1006943d8c1159e2610e7
4
- data.tar.gz: 5fc5e56fc17fe012a30be33f9b9420d3ba39c674
3
+ metadata.gz: 025c856f7f26f9e1d4aae9408f4dc77d7c774452
4
+ data.tar.gz: 3ef3b2dece939c9e9b9f76dd1d760b6866abf73c
5
5
  SHA512:
6
- metadata.gz: a26034fa5c189c632d49422f40d417d9dc52df7e0e378bf133a064a3f03b5668212e99bfc378b8f4b236a15a882fce245b9152cdbf5db0d3c6caa532d35325a1
7
- data.tar.gz: cc41bf1460577c104ce7922009994c775a7f89b2ab23bc9b61ee2c391a5bb86f0e41da3097b8635d43526354bfd249e1418e761debcc3d223bd3bed5242b3fc6
6
+ metadata.gz: 658aad59e0a496a9781baf1aa7cdd6f8c64467d46adadc8ab52e9e5e27e19dfdc535e8ec9e156dbc46601508b38d387259b35e35385a2a74a1bfb8a691c38698
7
+ data.tar.gz: 1732d7168cae52dcb13253fe1e5614003eafe18dd340addb16546e62918378d8fdfb4c2c805d17d1da23db31ab7b8b80622324707801e1f1820cfc7feed860ef
@@ -12,8 +12,18 @@ module AwsIntTestRspecHelper
12
12
  ##
13
13
  # Delete the specified Cloudformation stack by name
14
14
  #
15
- def cleanup(cloudformation_stack_name)
16
- Aws::CloudFormation::Client.new.delete_stack(stack_name: cloudformation_stack_name)
15
+ def cleanup(cloudformation_stack_name) basicdynamodbfortesting1457610045
16
+ resource = Aws::CloudFormation::Resource.new
17
+ stack_to_delete = resource.stack(cloudformation_stack_name)
18
+
19
+ stack_to_delete.delete
20
+ begin
21
+ stack_to_delete.wait_until(max_attempts:100, delay:15) do |stack|
22
+ stack.stack_status.match /DELETE_COMPLETE/
23
+ end
24
+ rescue
25
+ #squash any errors - when stack is gone, the waiter might freak
26
+ end
17
27
  end
18
28
 
19
29
  ##
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-int-test-rspec-helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - someguy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-05 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk