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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8111a007ca6de18aa95fd208bcf48378ac747bb2d77de6bbd1e44980a4b39a41
4
- data.tar.gz: f70011e92a82ef014f9413c0e6d01068dc7b053c8df8361812606193b7bb323e
3
+ metadata.gz: b6ca324c7d81de8fce56511eb61fa01de1aa140679b1bad5d0c8df02f86bb36d
4
+ data.tar.gz: 2b0ea00f5221a1eeae360ddf01f4294cf4d16e8cc2b39cf4fff759cfdb046bd6
5
5
  SHA512:
6
- metadata.gz: 1612f0a8ca494d65d20a9c1eceade2880c4f588b0f75a3b68baa004013ea7c84f99661b3d55d54fe6def1260d2a97d2cbd2597611fd731cdaa0d1b0a9c00f807
7
- data.tar.gz: a005a955fc94fbde1f604e9c81d47eb6b595615ce20f94d81b4ac9fa5eaa27768181126b4ba5751f21f41048a8a71e918c9a106e696e1780d2541f399ceca1e1
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
@@ -20,6 +20,6 @@
20
20
  module Kitchen
21
21
  module Verifier
22
22
  # Version string for InSpec Kitchen verifier
23
- INSPEC_VERSION = "1.3.1".freeze
23
+ INSPEC_VERSION = "1.3.2".freeze
24
24
  end
25
25
  end
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.1
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: 2019-10-28 00:00:00.000000000 Z
11
+ date: 2020-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inspec