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 +4 -4
- data/.kitchen.yml +1 -1
- data/CHANGELOG.md +20 -2
- data/README.md +16 -0
- data/lib/kitchen/verifier/inspec.rb +1 -0
- data/lib/kitchen/verifier/inspec_version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d65f5c69c48bd4ae468e02b345940204328493d
|
|
4
|
+
data.tar.gz: e4aa7ab73ce6516f81f530a3f422a6dea4077c5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1db7b3cd4d7f663a28c163c3ca170d952da963ab070270dc3fd7ca1cfb3670f738e3b5c24198c968619bdf8e2ccfd7940a64f294d72ee69b6ca447dde2a7e1fd
|
|
7
|
+
data.tar.gz: b67d60faa54e39f426b19a422a0d63a99a38736ef09fc891c0e74a9eec1ed250784b1e4721eed1f48650371faaf9e8355f1a51698e34cc142535b139a23949ab
|
data/.kitchen.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [0.
|
|
4
|
-
[Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.
|
|
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
|
|
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.
|
|
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:
|
|
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.
|
|
104
|
+
rubygems_version: 2.5.2
|
|
105
105
|
signing_key:
|
|
106
106
|
specification_version: 4
|
|
107
107
|
summary: A Test Kitchen Verifier for InSpec
|