puppet-ci-testing 0.14.1 → 0.14.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/bin/puppet_unittest_workflow +5 -10
- data/etc/puppet_unittest_workflow.yaml +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dce4ab3bbad464ff601d1081743c358461409d2
|
4
|
+
data.tar.gz: 21f39ea39e39f91e42c5e6ead2bb723a2f794cd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c737f446e8139a9b78262d2041998e2bc6dae9b15699d33aeb7105794787688d1170d04192c856a1220cd4e69657efa0ae5be871210271b3545b43c49d57d22f
|
7
|
+
data.tar.gz: aaf844c2d87f93c0c8fd0e1d658371355edd2b2e22e726c9f7a34c5c3ba3f5e10e7714dd57f8ee4076a53186a90998a4fd89051fd03b8ec33f606bf1bb9a1824
|
@@ -89,7 +89,7 @@ end
|
|
89
89
|
def process_puppet_lint_parsing(opts)
|
90
90
|
|
91
91
|
all_checks = PuppetLint.configuration.checks.map {|chk| chk.to_s}
|
92
|
-
enables = opts.puppet_lint_enable
|
92
|
+
enables = opts.puppet_lint_enable.empty? ? all_checks : opts.puppet_lint_enable
|
93
93
|
disables = all_checks - enables
|
94
94
|
|
95
95
|
puts <<-EOM
|
@@ -141,7 +141,7 @@ end
|
|
141
141
|
def process_metadata_lint_parsing(opts)
|
142
142
|
|
143
143
|
all_checks = MetadataJsonLint.options.members.select {|check| check.to_s if check != :format }
|
144
|
-
enables = opts.metadata_lint_enable
|
144
|
+
enables = opts.metadata_lint_enable.empty? ? all_checks : opts.metadata_lint_enable
|
145
145
|
disables = all_checks - enables
|
146
146
|
|
147
147
|
puts <<-EOM
|
@@ -159,17 +159,12 @@ def process_metadata_lint_parsing(opts)
|
|
159
159
|
EOM
|
160
160
|
|
161
161
|
# configure the rake task to disable specific checks
|
162
|
-
|
163
|
-
|
164
|
-
MetadataJsonLint::RakeTask.new :lint do |config|
|
165
|
-
enables.each {|check| config[check] = true }
|
166
|
-
disables.each {|check| config[check] = false }
|
167
|
-
end
|
168
|
-
end
|
162
|
+
enables.each {|check| MetadataJsonLint.options[check] = true }
|
163
|
+
disables.each {|check| MetadataJsonLint.options[check] = false}
|
169
164
|
|
170
165
|
begin
|
171
166
|
# TODO: gather lint output and generate JUnit reports
|
172
|
-
Rake.application['
|
167
|
+
Rake.application['metadata_lint'].invoke
|
173
168
|
rescue SystemExit => e
|
174
169
|
puts <<-EOM
|
175
170
|
|