simp-beaker-helpers 1.14.0 → 1.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/simp/beaker_helpers/inspec.rb +9 -1
- data/lib/simp/beaker_helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06c5bb0aadedabbd7c93aab3b66123af0ee0c31c20420e15d52f8e1a16b86601
|
4
|
+
data.tar.gz: 23d115e02eb74f7aeecda877220275d1ae43951cd6bc75d3584e6e8bc64eeab9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c855652d1b54877ec82b9b979c2b9dec45e8ccb6e303d9375e8b8440552b6066b9009c85885c62043623408e31c7090310279bd51bba29223fdf279154b04a1
|
7
|
+
data.tar.gz: 9c8dd37796df29ec3e1d40b5d91459ae585b997cbffa9aaba4011069c999d65f81f91b99bec34e6956ef699c6e65905073173139a8ab35db361aab8fb223f2a1
|
data/CHANGELOG.md
CHANGED
@@ -57,7 +57,15 @@ module Simp::BeakerHelpers
|
|
57
57
|
def run
|
58
58
|
sut_inspec_results = '/tmp/inspec_results.json'
|
59
59
|
|
60
|
-
|
60
|
+
inspec_version = Gem::Version.new(on(@sut, 'inspec --version').output.lines.first.strip)
|
61
|
+
|
62
|
+
# See: https://github.com/inspec/inspec/pull/3935
|
63
|
+
if inspec_version <= Gem::Version.new('3.9.0')
|
64
|
+
inspec_cmd = "inspec exec '#{@test_dir}' --reporter json > #{sut_inspec_results}"
|
65
|
+
else
|
66
|
+
inspec_cmd = "inspec exec '#{@test_dir}' --chef-license accept --reporter json > #{sut_inspec_results}"
|
67
|
+
end
|
68
|
+
|
61
69
|
result = on(@sut, inspec_cmd, :accept_all_exit_codes => true)
|
62
70
|
|
63
71
|
tmpdir = Dir.mktmpdir
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp-beaker-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Tessmer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-04-
|
12
|
+
date: 2019-04-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: beaker
|