kitchen-inspec 0.17.0 → 0.18.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 225b906544c971b3981d028d49e555946aff73b7
4
- data.tar.gz: 2fd9bff33af879f659d95c0b35e43628a3537b37
3
+ metadata.gz: 2d65f5c69c48bd4ae468e02b345940204328493d
4
+ data.tar.gz: e4aa7ab73ce6516f81f530a3f422a6dea4077c5e
5
5
  SHA512:
6
- metadata.gz: a42c520d180f2eee16bddf5e7ec7ef21cbd845866dca619cab37aeda0626de30eb220a23ca8d48129e33eda34f93a4d3cd2075f318042bc745bc6ef86670efbc
7
- data.tar.gz: fdede7e9a33c9cc8e3ad4f581f2eaf794760cbf53b7e629b630de2645cd57f817182cdb16be194e025650733295a9b363d393750a62470107741829bab2af871
6
+ metadata.gz: 1db7b3cd4d7f663a28c163c3ca170d952da963ab070270dc3fd7ca1cfb3670f738e3b5c24198c968619bdf8e2ccfd7940a64f294d72ee69b6ca447dde2a7e1fd
7
+ data.tar.gz: b67d60faa54e39f426b19a422a0d63a99a38736ef09fc891c0e74a9eec1ed250784b1e4721eed1f48650371faaf9e8355f1a51698e34cc142535b139a23949ab
@@ -37,7 +37,7 @@ suites:
37
37
  - recipe[ssh-hardening]
38
38
  verifier:
39
39
  inspec_tests:
40
- - name: hardening/ssh-hardening
40
+ - name: dev-sec/ssh-baseline
41
41
  - name: backwards
42
42
  run_list:
43
43
  - recipe[os_prepare]
@@ -1,7 +1,25 @@
1
1
  # Change Log
2
2
 
3
- ## [0.17.0](https://github.com/chef/kitchen-inspec/tree/0.17.0) (2016-12-08)
4
- [Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.16.1...0.17.0)
3
+ ## [0.18.0](https://github.com/chef/kitchen-inspec/tree/0.18.0) (2017-04-20)
4
+ [Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.17.0...0.18.0)
5
+
6
+ **Implemented enhancements:**
7
+
8
+ - allow filtering controls [\#130](https://github.com/chef/kitchen-inspec/pull/130) ([arlimus](https://github.com/arlimus))
9
+
10
+ **Closed issues:**
11
+
12
+ - kitchen verify failed with permission denied to create /.inpec directory [\#129](https://github.com/chef/kitchen-inspec/issues/129)
13
+ - junit format does not always use proper classname. [\#126](https://github.com/chef/kitchen-inspec/issues/126)
14
+ - Skipped tests report as failures in kitchen [\#125](https://github.com/chef/kitchen-inspec/issues/125)
15
+ - gem resource breaks if not using a different installation path [\#107](https://github.com/chef/kitchen-inspec/issues/107)
16
+
17
+ **Merged pull requests:**
18
+
19
+ - update kitchen test references [\#131](https://github.com/chef/kitchen-inspec/pull/131) ([arlimus](https://github.com/arlimus))
20
+
21
+ ## [v0.17.0](https://github.com/chef/kitchen-inspec/tree/v0.17.0) (2016-12-08)
22
+ [Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.16.1...v0.17.0)
5
23
 
6
24
  **Implemented enhancements:**
7
25
 
data/README.md CHANGED
@@ -68,6 +68,22 @@ verifier:
68
68
  output: path/to/results/%{platform}_%{suite}_inspec.xml
69
69
  ```
70
70
 
71
+ You can also decide to only run specific controls, instead of a full profile. This is done by specifying a list of controls:
72
+
73
+ ```
74
+ suites:
75
+ - name: supermarket
76
+ run_list:
77
+ - recipe[apt]
78
+ - recipe[ssh-hardening]
79
+ verifier:
80
+ inspec_tests:
81
+ - name: dev-sec/ssh-baseline
82
+ controls:
83
+ - sshd-46
84
+ ...
85
+ ```
86
+
71
87
  ### Directory Structure
72
88
 
73
89
  By default `kitchen-inspec` expects test to be in `test/integration/%suite%` directory structure (we use Chef as provisioner here):
@@ -186,6 +186,7 @@ module Kitchen
186
186
  runner_options["format"] = config[:format] unless config[:format].nil?
187
187
  runner_options["output"] = config[:output] % { platform: platform, suite: suite } unless config[:output].nil?
188
188
  runner_options["profiles_path"] = config[:profiles_path] unless config[:profiles_path].nil?
189
+ runner_options[:controls] = config[:controls]
189
190
  end
190
191
  end
191
192
 
@@ -20,6 +20,6 @@
20
20
  module Kitchen
21
21
  module Verifier
22
22
  # Version string for InSpec Kitchen verifier
23
- INSPEC_VERSION = "0.17.0"
23
+ INSPEC_VERSION = "0.18.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.17.0
4
+ version: 0.18.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-12-08 00:00:00.000000000 Z
11
+ date: 2017-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inspec
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.4.6
104
+ rubygems_version: 2.5.2
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: A Test Kitchen Verifier for InSpec