puppet-lint-manifest_whitespace-check 0.2.7 → 0.2.8
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: 3a88d7225a7ea73adc00bc91018d5b78e220ad0a8056c221690e7373ed5f26ab
|
4
|
+
data.tar.gz: 01a9be5a5bbecf5c4c3c668d2afd5e41f41dabcd6e4369134ce23695f725c2fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9682a9aa02a6110d8204ec9035f92e958be68d55489ae7a46548bb133fd0d2f002130e9150f1de31e885d3dcb044e64e6068f9f934e2ac5b1dd704edf46ed26c
|
7
|
+
data.tar.gz: e22271195239f6e9c25d631853734379c8f911899379e1f2c805cf7e195cf4679d5d73e4da01b6f8563f20fb07ff023559b1009d0989c9be368230bb02cb8fc5
|
@@ -5,6 +5,25 @@ require 'spec_helper'
|
|
5
5
|
describe 'manifest_whitespace_opening_bracket_before' do
|
6
6
|
let(:opening_bracket_msg) { 'there should be a single space before an opening bracket' }
|
7
7
|
|
8
|
+
context 'inside heredoc' do
|
9
|
+
let(:code) do
|
10
|
+
<<~EOF
|
11
|
+
class test::heredoc {
|
12
|
+
$unsupported = @("MESSAGE"/L)
|
13
|
+
This does not support ${facts['os']['name']} ${$facts['os']['release']['major']}; \
|
14
|
+
see ${support_urls['supported_platforms']} for more information\
|
15
|
+
| MESSAGE
|
16
|
+
|
17
|
+
fail($unsupported)
|
18
|
+
}
|
19
|
+
EOF
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'should detect no problems' do
|
23
|
+
expect(problems).to be_empty
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
8
27
|
context 'with comment' do
|
9
28
|
let(:code) do
|
10
29
|
<<~EOF
|
@@ -87,6 +106,7 @@ describe 'manifest_whitespace_opening_bracket_before' do
|
|
87
106
|
if fact["${var}"] != $var2.keys[0] {
|
88
107
|
# noop
|
89
108
|
}
|
109
|
+
$variable_customfact = $facts['customfact_name'][$variable]
|
90
110
|
|
91
111
|
$value = [{ 'key' => 'value' }]
|
92
112
|
$value2 = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-lint-manifest_whitespace-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jo Vandeginste
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: puppet-lint
|
@@ -151,7 +151,7 @@ licenses:
|
|
151
151
|
- MIT
|
152
152
|
metadata:
|
153
153
|
rubygems_mfa_required: 'true'
|
154
|
-
post_install_message:
|
154
|
+
post_install_message:
|
155
155
|
rdoc_options: []
|
156
156
|
require_paths:
|
157
157
|
- lib
|
@@ -166,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
- !ruby/object:Gem::Version
|
167
167
|
version: '0'
|
168
168
|
requirements: []
|
169
|
-
rubygems_version: 3.3.
|
170
|
-
signing_key:
|
169
|
+
rubygems_version: 3.3.5
|
170
|
+
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: A puppet-lint check to validate whitespace in manifests
|
173
173
|
test_files: []
|