cfndsl 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/cfndsl/JSONable.rb +1 -1
- data/lib/cfndsl/version.rb +1 -1
- data/spec/cfndsl_spec.rb +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzU4MTYyNzZmODRjMmQ2YWUyOTQ1MjdhM2I1ZTcyMTJmMDU5OWZlYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTcwOTY0N2JjZTFmZmJkYzIyZmQxN2Y0MTQ2MGMyZGJjNDI5NjU5Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTBiZGQ5ZWQ4ODcxZWFhMTkzODYxYzMxOGYzNDgzNGFmN2MyODhiNmQxZGNi
|
10
|
+
YWVkZWQ1YjI2MDA2MTM2ZGFlMjM4YmQ4ZmI3ZmE3NjFmMWEzOTY3NDI1ODQw
|
11
|
+
NWY0NjlkNzA0NGNmNTRkZmU4MmVhMDlkNWNlYjIxYjk3Nzg2OTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzJkYWMxNGE0YTcwYzA4MzFhZDhlOTM3ZjNlODY1NmMzYjc2MjIxMTU2MTVh
|
14
|
+
MmViNTE5NzQ5MDgyM2IyYzg3NTY4ODNiYjllZGUyZWUwNmI3MmFiODdjYjY4
|
15
|
+
NWQwMzAwNDJmMjIwZThiNmZiYTM3ZTJlYThiMzk2NzkyOGY4NjQ=
|
data/lib/cfndsl/JSONable.rb
CHANGED
data/lib/cfndsl/version.rb
CHANGED
data/spec/cfndsl_spec.rb
CHANGED
@@ -100,6 +100,21 @@ describe CfnDsl::CloudFormationTemplate do
|
|
100
100
|
expect(refs).to have_key('X')
|
101
101
|
end
|
102
102
|
|
103
|
+
context 'FnNot' do
|
104
|
+
let(:data) { "test" }
|
105
|
+
let(:expected) { "{\"Fn::Not\":[\"#{data}\"]}" }
|
106
|
+
|
107
|
+
it 'formats correctly' do
|
108
|
+
func = subject.FnNot data
|
109
|
+
expect(func.to_json).to eq expected
|
110
|
+
end
|
111
|
+
|
112
|
+
it 'flattens existing array' do
|
113
|
+
func = subject.FnNot [data]
|
114
|
+
expect(func.to_json).to eq expected
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
103
118
|
it 'FnBase64' do
|
104
119
|
func = subject.FnBase64 'A'
|
105
120
|
expect(func.to_json).to eq('{"Fn::Base64":"A"}')
|