cf_deployer 1.3.1 → 1.3.2
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 +4 -4
- data/ChangeLog.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/cf_deployer/config_validation.rb +6 -2
- data/lib/cf_deployer/version.rb +1 -1
- data/spec/unit/config_validation_spec.rb +18 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b38d54aafa880c426c1b45e8c38e81b65bda1e98
|
4
|
+
data.tar.gz: 43c8f4afca24530a592d70ecc1f33d6c39db08ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d51a133fff9d064546a77b01b7c4735eafee75d563217e85bcbca36a94892d27c0e366c42daef65bc93696787cea97ca97b187b65953d6d2bb939089a2bac429
|
7
|
+
data.tar.gz: 22875d7540c79580422174cb9f99041a3c56cae682dde20a727e6c3744e9209d9c0bd298acf030ad649c1af4672819256f425a2767562ad4a694b78f12852afb
|
data/ChangeLog.md
CHANGED
@@ -28,3 +28,6 @@ version 1.3.1
|
|
28
28
|
- Adding way to run hooks manually (outside of deploy)
|
29
29
|
- Adding new command 'diff' to allow diffing between the deployed JSON
|
30
30
|
- Split after-create and after-update hooks for create-or-update strategy
|
31
|
+
|
32
|
+
version 1.3.2
|
33
|
+
- Display details of error message when referenced components do not exist
|
data/Gemfile.lock
CHANGED
@@ -130,8 +130,12 @@ module CfDeployer
|
|
130
130
|
return unless setting.is_a?(Hash)
|
131
131
|
ref_component_name = setting[:component].to_sym
|
132
132
|
ref_component = @config[:components][ref_component_name]
|
133
|
-
|
134
|
-
|
133
|
+
if ref_component
|
134
|
+
output_key = setting[:'output-key'].to_sym
|
135
|
+
@errors << "No output '#{output_key}' found in CF template of component #{ref_component_name}, which is referenced by input setting '#{setting_name}' in component #{component_name}" unless ref_component[:defined_outputs].keys.include?(output_key)
|
136
|
+
else
|
137
|
+
@errors << "No component '#{ref_component_name}' found in CF template, which is referenced by input setting '#{setting_name}' in component #{component_name}"
|
138
|
+
end
|
135
139
|
end
|
136
140
|
|
137
141
|
end
|
data/lib/cf_deployer/version.rb
CHANGED
@@ -236,7 +236,6 @@ describe "Config Validation" do
|
|
236
236
|
expect{ CfDeployer::ConfigValidation.new.validate(config) }.to raise_error("The option 'foo' of the environment 'dev' is not valid")
|
237
237
|
end
|
238
238
|
|
239
|
-
|
240
239
|
it "should get error if any output-reference settings do not have co-responding output" do
|
241
240
|
config = {
|
242
241
|
:targets => ['web', 'base'],
|
@@ -255,6 +254,24 @@ describe "Config Validation" do
|
|
255
254
|
expect{CfDeployer::ConfigValidation.new.validate(config)}.to raise_error("No output 'VPCID' found in CF template of component base, which is referenced by input setting 'vpc_id' in component web")
|
256
255
|
end
|
257
256
|
|
257
|
+
it "should get error if any referenced components do not exist" do
|
258
|
+
config = {
|
259
|
+
:targets => ['web', 'base'],
|
260
|
+
:application => 'myApp',
|
261
|
+
:components =>{
|
262
|
+
:base => {
|
263
|
+
},
|
264
|
+
:web => {
|
265
|
+
:inputs => {:vpc_id => {
|
266
|
+
:component => 'com2',
|
267
|
+
:'output-key' => 'VPCID'
|
268
|
+
}},
|
269
|
+
:defined_parameters => {:vpc_id =>{}}
|
270
|
+
}
|
271
|
+
}}
|
272
|
+
expect{CfDeployer::ConfigValidation.new.validate(config)}.to raise_error("No component 'com2' found in CF template, which is referenced by input setting 'vpc_id' in component web")
|
273
|
+
end
|
274
|
+
|
258
275
|
it "should get error if application name is missing" do
|
259
276
|
config = {
|
260
277
|
:components => {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf_deployer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jame Brechtel
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-08-
|
14
|
+
date: 2014-08-20 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: aws-sdk
|