kumo_keisei 2.1.1.pre → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/spec/lib/kumo_keisei/cloud_formation_stack_spec.rb +19 -11
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46f5547a94ab0b5ebf78c917c6c3e52601feb2a9
|
4
|
+
data.tar.gz: 77ef2bd8d4d7036b2e5280c482b61ee698da110a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fa288cd5db63d3ffe142b1c7a05309db66ffaa880e8c02448fe499c95d38561b1ae25be6afa4f7252f8334d5b92ac30b8f8e53fd84c5b4095dc2a8b8b21010a
|
7
|
+
data.tar.gz: b27322e1387e73618aa90ba396e7bfac1234f4d9dea5a5edb33089855faec9ee88ffc833b51a51f526638ea0356052df01101dc1a7d311e0b38db6fc27fc3716
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.1
|
1
|
+
2.1.1
|
@@ -61,17 +61,6 @@ describe KumoKeisei::CloudFormationStack do
|
|
61
61
|
end
|
62
62
|
|
63
63
|
describe "#initialize" do
|
64
|
-
it "accepts short stack names" do
|
65
|
-
instance
|
66
|
-
end
|
67
|
-
|
68
|
-
context "a stack name that is too long" do
|
69
|
-
let(:stack_name) { "long-stack-name-that-will-make-aws-barf" }
|
70
|
-
|
71
|
-
it "blows up since the ELB names have to be 32 or shorter" do
|
72
|
-
expect { instance }.to raise_error(KumoKeisei::StackValidationError, "The stack name needs to be 32 characters or shorter")
|
73
|
-
end
|
74
|
-
end
|
75
64
|
end
|
76
65
|
|
77
66
|
describe "#apply!" do
|
@@ -200,6 +189,25 @@ describe KumoKeisei::CloudFormationStack do
|
|
200
189
|
expect { subject.apply! }.to raise_error("Stack is busy, try again soon")
|
201
190
|
end
|
202
191
|
end
|
192
|
+
|
193
|
+
it "accepts short stack names" do
|
194
|
+
allow(cloudformation).to receive(:wait_until).with(:stack_update_complete, stack_name: stack_name)
|
195
|
+
allow(cloudformation).to receive(:update_stack)
|
196
|
+
|
197
|
+
subject.apply!
|
198
|
+
end
|
199
|
+
|
200
|
+
context "a stack name that is too long" do
|
201
|
+
let(:stack_name) { "long-stack-name-that-will-make-aws-barf" }
|
202
|
+
|
203
|
+
it "blows up since the ELB names have to be 32 or shorter" do
|
204
|
+
allow(cloudformation).to receive(:wait_until).with(:stack_update_complete, stack_name: stack_name)
|
205
|
+
allow(cloudformation).to receive(:update_stack)
|
206
|
+
allow(subject).to receive(:updatable?).and_return(false)
|
207
|
+
|
208
|
+
expect { subject.apply! }.to raise_error(KumoKeisei::StackValidationError, "The stack name needs to be 32 characters or shorter")
|
209
|
+
end
|
210
|
+
end
|
203
211
|
end
|
204
212
|
|
205
213
|
describe "#outputs" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kumo_keisei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.1
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Redbubble
|
@@ -127,9 +127,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- - "
|
130
|
+
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
132
|
+
version: '0'
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
135
|
rubygems_version: 2.2.2
|