kitchen-inspec 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen/verifier/inspec.rb +10 -0
- data/lib/kitchen/verifier/inspec_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: b6ca324c7d81de8fce56511eb61fa01de1aa140679b1bad5d0c8df02f86bb36d
|
4
|
+
data.tar.gz: 2b0ea00f5221a1eeae360ddf01f4294cf4d16e8cc2b39cf4fff759cfdb046bd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed7859aebb13637f361a783dc76ec5a8a11b791f2beaa7e6d11e9b6a2eb5fb0f57e264d9a3b0784f781958bb2b350e3099f3234cdc6b9d8b3443da2459ceaba2
|
7
|
+
data.tar.gz: d9ac8df8f88b5f73868bd5ac1ac427c26b656365fbe66ead77c173f1b4b4f32483fd1599904fb8a42bd7283b2586444056c6f987e450ba0ee8307949d1451498
|
@@ -26,6 +26,8 @@ require "uri"
|
|
26
26
|
require "pathname"
|
27
27
|
require "hashie"
|
28
28
|
|
29
|
+
require "inspec/plugin/v2"
|
30
|
+
|
29
31
|
module Kitchen
|
30
32
|
module Verifier
|
31
33
|
# InSpec verifier for Kitchen.
|
@@ -36,6 +38,7 @@ module Kitchen
|
|
36
38
|
plugin_version Kitchen::Verifier::INSPEC_VERSION
|
37
39
|
|
38
40
|
default_config :inspec_tests, []
|
41
|
+
default_config :load_plugins, false
|
39
42
|
|
40
43
|
# A lifecycle method that should be invoked when the object is about
|
41
44
|
# ready to be used. A reference to an Instance is required as
|
@@ -80,6 +83,13 @@ module Kitchen
|
|
80
83
|
# initialize runner
|
81
84
|
runner = ::Inspec::Runner.new(opts)
|
82
85
|
|
86
|
+
# load plugins
|
87
|
+
if config[:load_plugins]
|
88
|
+
v2_loader = ::Inspec::Plugin::V2::Loader.new
|
89
|
+
v2_loader.load_all
|
90
|
+
v2_loader.exit_on_load_error
|
91
|
+
end
|
92
|
+
|
83
93
|
# add each profile to runner
|
84
94
|
tests = collect_tests
|
85
95
|
profile_ctx = nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-inspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inspec
|