cfn-bridge 0.0.10 → 0.0.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4c7c626865fd91e5477155d3614ee18cef4c311
|
4
|
+
data.tar.gz: a806497942640ee7f42f322502d5776b69b5840d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 805d85b4e1454a6bc94e1479e6263e47941407f80ca6f1f4b38604c8fad95f6554d39999d7cd55149ff5627a04048c8e3ded179f42ed95e5c1b488ded48e0a66
|
7
|
+
data.tar.gz: 866663db3614bb6d1a3512b519cc1977cd5bcf923542e2c169b7b9fe87792f0174d063c7cdb6a5f1fb601dc2281f2d51c1fc8f8945e28704c529571af0f68b33
|
@@ -11,6 +11,7 @@ describe CloudFormation::Bridge::Executor do
|
|
11
11
|
let(:url) { "http://example.com/request-id" }
|
12
12
|
let(:custom_resource_name) { "sample-custom-resource" }
|
13
13
|
let(:registry) { { custom_resource_name => custom_resource } }
|
14
|
+
let(:unknown_resource) { "unknown-resource" }
|
14
15
|
let(:response) { { FIELDS::LOGICAL_RESOURCE_ID => "sample-resource" } }
|
15
16
|
|
16
17
|
context 'when processing resources that are available' do
|
@@ -60,6 +61,22 @@ describe CloudFormation::Bridge::Executor do
|
|
60
61
|
executor.execute(request)
|
61
62
|
end
|
62
63
|
|
64
|
+
|
65
|
+
it 'deletes the resource even if there is no resource there' do
|
66
|
+
request = CloudFormation::Bridge::Request.new(
|
67
|
+
FIELDS::REQUEST_TYPE => TYPES::DELETE,
|
68
|
+
FIELDS::RESOURCE_TYPE => unknown_resource,
|
69
|
+
FIELDS::RESPONSE_URL => "http://localhost:3000/example",
|
70
|
+
)
|
71
|
+
|
72
|
+
expect(CloudFormation::Bridge::HttpBridge).to receive(:put) do |url,response|
|
73
|
+
expect(url).to eq("http://localhost:3000/example")
|
74
|
+
end
|
75
|
+
|
76
|
+
executor = CloudFormation::Bridge::Executor.new(registry)
|
77
|
+
executor.execute(request)
|
78
|
+
end
|
79
|
+
|
63
80
|
end
|
64
81
|
|
65
82
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfn-bridge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maurício Linhares
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|