miasma 0.2.36 → 0.2.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f76d5c922de15936a098e29670707f23ca81b498
4
- data.tar.gz: e9cff2b8a5130c0133a10d82e1cf188f3987e2dc
3
+ metadata.gz: b1b12443a87fc43d5ff3653d64880ad421faca11
4
+ data.tar.gz: 87a193d3e253bee8e5d8f39d4fa9683b2a189faa
5
5
  SHA512:
6
- metadata.gz: 579a263c2aa3f4dd5231af2852fd401e3b872dbf117f737dfdebcf8808364640209e8515d8516b183a18a1ebd86558fa160865898717d3de42241aab9823753e
7
- data.tar.gz: 982331e848c3a20c67e6e32cd6a5fb24923fab270db778c2e639b0c577bc502931bc0464c464de913f873d864eee7d7e9b85715a7b91eb74a4a3eef09f91b3ef
6
+ metadata.gz: 7092f00cef8368c15141e3bb176d176e400ef08fe9f6e9212d3e4d835440f364897f770f4a57101dd22647306ea28535afcc4f263b2bc7c272c06610842bb4e0
7
+ data.tar.gz: adb1fa35cd4f0a446b6efff296e1170bcaf73a0cfe7d1957aa87d471a22169df31293a3fa10bfc8984c0857990db39da7f88a22ddcb433651c2dcb4c886e7de9
@@ -1,3 +1,6 @@
1
+ # v0.2.38
2
+ * Fix cassette naming within spec abstracts
3
+
1
4
  # v0.2.36
2
5
  * Refactor abstract model specs
3
6
 
@@ -31,7 +31,7 @@ MIASMA_COMPUTE_ABSTRACT = ->{
31
31
 
32
32
  before do
33
33
  unless($miasma_instance)
34
- VCR.use_cassette('Miasma_Models_Compute_Aws/GLOBAL_compute_instance_create') do
34
+ VCR.use_cassette('Miasma_Models_Compute_Global/GLOBAL_compute_instance_create') do
35
35
  @instance = compute.servers.build(build_args)
36
36
  @instance.save
37
37
  until(@instance.state == :running)
@@ -41,7 +41,7 @@ MIASMA_COMPUTE_ABSTRACT = ->{
41
41
  $miasma_instance = @instance
42
42
  end
43
43
  Kernel.at_exit do
44
- VCR.use_cassette('Miasma_Models_Compute_Aws/GLOBAL_compute_instance_destroy') do
44
+ VCR.use_cassette('Miasma_Models_Compute_Global/GLOBAL_compute_instance_destroy') do
45
45
  $miasma_instance.destroy
46
46
  end
47
47
  end
@@ -31,7 +31,7 @@ MIASMA_LOAD_BALANCER_ABSTRACT = ->{
31
31
 
32
32
  before do
33
33
  unless($miasma_balancer)
34
- VCR.use_cassette('Miasma_Models_LoadBalancer_Aws/GLOBAL_load_balancer_create') do
34
+ VCR.use_cassette('Miasma_Models_LoadBalancer_Global/GLOBAL_load_balancer_create') do
35
35
  @balancer = load_balancer.balancers.build(build_args)
36
36
  @balancer.save
37
37
  until(@balancer.state == :active)
@@ -41,7 +41,7 @@ MIASMA_LOAD_BALANCER_ABSTRACT = ->{
41
41
  $miasma_balancer = @balancer
42
42
  end
43
43
  Kernel.at_exit do
44
- VCR.use_cassette('Miasma_Models_LoadBalancer_Aws/GLOBAL_load_balancer_destroy') do
44
+ VCR.use_cassette('Miasma_Models_LoadBalancer_Global/GLOBAL_load_balancer_destroy') do
45
45
  $miasma_balancer.destroy
46
46
  end
47
47
  end
@@ -1,3 +1,5 @@
1
+ require 'timeout'
2
+
1
3
  MIASMA_ORCHESTRATION_ABSTRACT = ->{
2
4
 
3
5
  # Required `let`s:
@@ -31,19 +33,21 @@ MIASMA_ORCHESTRATION_ABSTRACT = ->{
31
33
 
32
34
  before do
33
35
  unless($miasma_stack)
34
- VCR.use_cassette('Miasma_Models_Orchestration_Aws/GLOBAL_orchestration_stack_create') do
36
+ VCR.use_cassette('Miasma_Models_Orchestration_Global/GLOBAL_orchestration_stack_create') do
35
37
  @stack = orchestration.stacks.build(build_args)
36
38
  @stack.save
37
- until(@stack.state == :create_complete)
38
- miasma_spec_sleep
39
- @stack.reload
39
+ Timeout.timeout(500) do
40
+ until(@stack.state == :create_complete)
41
+ miasma_spec_sleep
42
+ @stack.reload
43
+ end
40
44
  end
41
45
  @stack.template
42
46
  orchestration.stacks.reload
43
47
  $miasma_stack = @stack
44
48
  end
45
49
  Kernel.at_exit do
46
- VCR.use_cassette('Miasma_Models_Compute_Aws/GLOBAL_orchestration_stack_destroy') do
50
+ VCR.use_cassette('Miasma_Models_Compute_Global/GLOBAL_orchestration_stack_destroy') do
47
51
  $miasma_stack.destroy
48
52
  end
49
53
  end
@@ -108,9 +112,11 @@ MIASMA_ORCHESTRATION_ABSTRACT = ->{
108
112
  stack.state.must_equal :create_complete
109
113
  stack.destroy
110
114
  [:delete_in_progress, :delete_complete].must_include stack.state
111
- until(stack.state == :delete_complete)
112
- miasma_spec_sleep
113
- stack.reload
115
+ Timeout.timeout(500) do
116
+ until(stack.state == :delete_complete)
117
+ miasma_spec_sleep
118
+ stack.reload
119
+ end
114
120
  end
115
121
  stack.state.must_equal :delete_complete
116
122
  end
@@ -1,4 +1,4 @@
1
1
  module Miasma
2
2
  # current library version
3
- VERSION = Gem::Version.new('0.2.36')
3
+ VERSION = Gem::Version.new('0.2.38')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miasma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.36
4
+ version: 0.2.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-04 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http