kitchen-inspec 0.14.0 → 0.15.0

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
  SHA1:
3
- metadata.gz: 12e0244f6f8231b73abc271a20ae85f26d84d4b9
4
- data.tar.gz: 8bf60418497ab80811e8bca84e6dd3f75a495712
3
+ metadata.gz: ed5b5de805ad3aa42acd9649e2579809d61409f7
4
+ data.tar.gz: f934130cfc36238f9790cba735efbee0f5662326
5
5
  SHA512:
6
- metadata.gz: bcc928b7bc21bd215b60ba4886695c5dc8793e934934f3adc9b3411d72500f45fa70e539816e49fda381aa3619e688327c718158b0f407d960e45b380f819096
7
- data.tar.gz: b22388950f4736a52017a66b057df4846540d62fbc2aba5e1496bbbc613bf7f93d51d4d2b01c58b8f44fd8dc919f9729057a4e385b110475b7579010830653ab
6
+ metadata.gz: 93fb9ca1b2d228291fb93470460dc64690cd557265a724c7b7b0c001919a672ec97bd59af3140015ac918f706649be5060905f55507ed42332c1b5ee792eb51a
7
+ data.tar.gz: edd9113f440b7b6b434a26fdccebe2868338f82a5accc5b64c60b504ca11cbe3effafc5d0515a5a5d03e2ca538e00a80e736cca673f89deeb6384e8eda54a6ef
@@ -1,7 +1,23 @@
1
1
  # Change Log
2
2
 
3
- ## [0.14.0](https://github.com/chef/kitchen-inspec/tree/0.14.0) (2016-05-25)
4
- [Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.13.0...0.14.0)
3
+ ## [0.15.0](https://github.com/chef/kitchen-inspec/tree/0.15.0) (2016-07-15)
4
+ [Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.14.0...0.15.0)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - TTY issue with base AWS CentOS AMI [\#45](https://github.com/chef/kitchen-inspec/issues/45)
9
+
10
+ **Closed issues:**
11
+
12
+ - kitchen converge fails on ubuntu [\#81](https://github.com/chef/kitchen-inspec/issues/81)
13
+
14
+ **Merged pull requests:**
15
+
16
+ - Overwriting test\_base\_path to test/recipes instead of test/integration [\#95](https://github.com/chef/kitchen-inspec/pull/95) ([tyler-ball](https://github.com/tyler-ball))
17
+ - demonstrated utilizing an array of profile sources [\#90](https://github.com/chef/kitchen-inspec/pull/90) ([jeremymv2](https://github.com/jeremymv2))
18
+
19
+ ## [v0.14.0](https://github.com/chef/kitchen-inspec/tree/v0.14.0) (2016-05-25)
20
+ [Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.13.0...v0.14.0)
5
21
 
6
22
  **Closed issues:**
7
23
 
data/README.md CHANGED
@@ -128,9 +128,11 @@ suites:
128
128
  - recipe[apt]
129
129
  - recipe[yum]
130
130
  - recipe[ssh-hardening]
131
+ - recipe[os-hardening]
131
132
  verifier:
132
133
  inspec_tests:
133
134
  - https://github.com/dev-sec/tests-ssh-hardening
135
+ - https://github.com/dev-sec/tests-os-hardening
134
136
  - name: supermarket
135
137
  run_list:
136
138
  - recipe[apt]
@@ -36,6 +36,31 @@ module Kitchen
36
36
 
37
37
  default_config :inspec_tests, []
38
38
 
39
+ # A lifecycle method that should be invoked when the object is about
40
+ # ready to be used. A reference to an Instance is required as
41
+ # configuration dependant data may be access through an Instance. This
42
+ # also acts as a hook point where the object may wish to perform other
43
+ # last minute checks, validations, or configuration expansions.
44
+ #
45
+ # @param instance [Instance] an associated instance
46
+ # @return [self] itself, for use in chaining
47
+ # @raise [ClientError] if instance parameter is nil
48
+ def finalize_config!(instance)
49
+ super
50
+
51
+ # We want to switch kitchen-inspec to look for its tests in
52
+ # `cookbook_dir/test/recipes` instead of `cookbook_dir/test/integration`
53
+ # Unfortunately there is no way to read `test_base_path` from the
54
+ # .kitchen.yml, it can only be provided on the CLI.
55
+ # See https://github.com/test-kitchen/test-kitchen/issues/1077
56
+ inspec_test_dir = File.join(config[:kitchen_root], 'test', 'recipes')
57
+ if File.directory?(inspec_test_dir)
58
+ config[:test_base_path] = inspec_test_dir
59
+ end
60
+
61
+ self
62
+ end
63
+
39
64
  # (see Base#call)
40
65
  def call(state)
41
66
  logger.debug('Initialize InSpec')
@@ -20,6 +20,6 @@
20
20
  module Kitchen
21
21
  module Verifier
22
22
  # Version string for InSpec Kitchen verifier
23
- INSPEC_VERSION = '0.14.0'
23
+ INSPEC_VERSION = '0.15.0'
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: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher Nichol
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-25 00:00:00.000000000 Z
11
+ date: 2016-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inspec
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  requirements: []
174
174
  rubyforge_project:
175
- rubygems_version: 2.4.6
175
+ rubygems_version: 2.5.1
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: A Test Kitchen Verifier for InSpec