puppet-lint-manifest_whitespace-check 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6eb78b1b0aa97896074ac01224d0d9ec8d62fd113308cd715c0bb60ff26707c
|
4
|
+
data.tar.gz: f9c4c73d8a5698e6b3b44732f400a7f3506e9a784622ab8e741332c03f67d2d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82aeade9ab4d7c4106411ba01250e21c983f78e5d5aa5f53ac8e518f9344be7e219b8182ad6801330e721147d313458bdcbba97882f30170340d9ab5d4250715
|
7
|
+
data.tar.gz: fbe9b003c323b27e7361f8548e9d234558255fbd7a6229bd863c9f9c2482ef886f787d75455ebad9476127e1d9e08834f73e1467d57468e1af4f28211a68f9cb
|
@@ -155,6 +155,18 @@ end
|
|
155
155
|
describe 'manifest_whitespace_closing_bracket_after' do
|
156
156
|
let(:closing_bracket_msg) { 'there should be either a bracket, punctuation mark, closing quote or a newline after a closing bracket, or whitespace and none of the aforementioned' }
|
157
157
|
|
158
|
+
context 'with many brackets' do
|
159
|
+
let(:code) do
|
160
|
+
<<~EOF
|
161
|
+
ensure_packages($spaceweather::packages, { require => Class['Mongodb::Globals'] })
|
162
|
+
EOF
|
163
|
+
end
|
164
|
+
|
165
|
+
it 'should detect no problems' do
|
166
|
+
expect(problems).to have(0).problem
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
158
170
|
context 'with iterator' do
|
159
171
|
let(:code) do
|
160
172
|
<<~EOF
|
@@ -219,12 +231,12 @@ describe 'manifest_whitespace_closing_bracket_after' do
|
|
219
231
|
end
|
220
232
|
|
221
233
|
context 'with fix disabled' do
|
222
|
-
it 'should detect
|
223
|
-
expect(problems).to have(
|
234
|
+
it 'should detect 2 problems' do
|
235
|
+
expect(problems).to have(2).problem
|
224
236
|
end
|
225
237
|
|
226
238
|
it 'should create a error' do
|
227
|
-
expect(problems).to contain_error(closing_bracket_msg).on_line(
|
239
|
+
expect(problems).to contain_error(closing_bracket_msg).on_line(23).in_column(22)
|
228
240
|
end
|
229
241
|
end
|
230
242
|
|
@@ -252,7 +264,7 @@ describe 'manifest_whitespace_closing_bracket_after' do
|
|
252
264
|
class example (
|
253
265
|
String $content,
|
254
266
|
) {
|
255
|
-
$value = { 'key' => ['value']}
|
267
|
+
$value = { 'key' => ['value'] }
|
256
268
|
$value2 = [
|
257
269
|
{
|
258
270
|
'key' => 'value1',
|