kitchen-inspec 0.19.0 → 0.20.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/.github/CODEOWNERS +3 -0
- data/CHANGELOG.md +46 -2
- data/MAINTAINERS.md +13 -0
- data/lib/kitchen/verifier/inspec.rb +22 -7
- data/lib/kitchen/verifier/inspec_version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d0c032ee0d1acb500d020ff5332d26a024bef61
|
|
4
|
+
data.tar.gz: 9e240db356a6ded9798433b7b6b2cd3342745f22
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27c2083f8c25a9843eff37d0ea4f004f891ec627111ff38d3eb035b57198c1bfcb7bfda6dd03d92958d1e50ac32d93915d3897dc595a7dda58144f97d5a22626
|
|
7
|
+
data.tar.gz: aacb00d20dfdabbf94de7189d1ca4de5f66f80ddabed405f5b821144eddeac8586856aa035886e91d0717d734bd4f81442fcbcc5d37752a5bd7f2cff041dea50
|
data/.github/CODEOWNERS
ADDED
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,51 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [0.
|
|
4
|
-
[Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.
|
|
3
|
+
## [0.20.0](https://github.com/chef/kitchen-inspec/tree/0.20.0) (2017-11-13)
|
|
4
|
+
[Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.19.0...0.20.0)
|
|
5
|
+
|
|
6
|
+
**Implemented enhancements:**
|
|
7
|
+
|
|
8
|
+
- Reuse the same test for multiple test suites in one cookbook [\#97](https://github.com/chef/kitchen-inspec/issues/97)
|
|
9
|
+
- show test and result in the log [\#44](https://github.com/chef/kitchen-inspec/issues/44)
|
|
10
|
+
- Remove the restriction of `\_spec` file [\#14](https://github.com/chef/kitchen-inspec/issues/14)
|
|
11
|
+
|
|
12
|
+
**Fixed bugs:**
|
|
13
|
+
|
|
14
|
+
- Kitchen verify fails with the kitchen-docker plugin [\#83](https://github.com/chef/kitchen-inspec/issues/83)
|
|
15
|
+
|
|
16
|
+
**Closed issues:**
|
|
17
|
+
|
|
18
|
+
- \[QUESTION\] kitchen-inspec formatter [\#147](https://github.com/chef/kitchen-inspec/issues/147)
|
|
19
|
+
- Executing inspec against a container from within the host [\#145](https://github.com/chef/kitchen-inspec/issues/145)
|
|
20
|
+
- Option to specify path to Inspec test with kitchen-inspec [\#139](https://github.com/chef/kitchen-inspec/issues/139)
|
|
21
|
+
- False attribute value is not initializing [\#138](https://github.com/chef/kitchen-inspec/issues/138)
|
|
22
|
+
- Failed to complete \#verify action: \[no implicit conversion of nil into String\] [\#135](https://github.com/chef/kitchen-inspec/issues/135)
|
|
23
|
+
- Using tags/versioning for supermarket inspec profiles [\#134](https://github.com/chef/kitchen-inspec/issues/134)
|
|
24
|
+
- chef exec kitchen verify fails for inspec tests [\#132](https://github.com/chef/kitchen-inspec/issues/132)
|
|
25
|
+
- Intermittent SSH failures [\#127](https://github.com/chef/kitchen-inspec/issues/127)
|
|
26
|
+
- Inspec Test Location [\#124](https://github.com/chef/kitchen-inspec/issues/124)
|
|
27
|
+
- Output file support for multiple platforms and multiple test suites [\#121](https://github.com/chef/kitchen-inspec/issues/121)
|
|
28
|
+
- Custom inspec resources not loaded: 'undefined method' [\#120](https://github.com/chef/kitchen-inspec/issues/120)
|
|
29
|
+
- kitchen ec2 verifier broken [\#106](https://github.com/chef/kitchen-inspec/issues/106)
|
|
30
|
+
- Vague error if 'platform' value is missing in platform section and inspec profile platfrom/os-family is set [\#101](https://github.com/chef/kitchen-inspec/issues/101)
|
|
31
|
+
- lost support for spec\_helper in inspec [\#93](https://github.com/chef/kitchen-inspec/issues/93)
|
|
32
|
+
- Make it easier to filter output [\#85](https://github.com/chef/kitchen-inspec/issues/85)
|
|
33
|
+
- Can't verify when used with kitchen-digitalocean provider [\#78](https://github.com/chef/kitchen-inspec/issues/78)
|
|
34
|
+
- Add way to define alternate test-path [\#70](https://github.com/chef/kitchen-inspec/issues/70)
|
|
35
|
+
- Using profiles with kitchen-inspec [\#66](https://github.com/chef/kitchen-inspec/issues/66)
|
|
36
|
+
- Colo\[u\]r those dots and Fs! [\#62](https://github.com/chef/kitchen-inspec/issues/62)
|
|
37
|
+
- Error with apache\_conf on CentOS [\#37](https://github.com/chef/kitchen-inspec/issues/37)
|
|
38
|
+
- kitchen-inspec breaks existing file pattern [\#11](https://github.com/chef/kitchen-inspec/issues/11)
|
|
39
|
+
|
|
40
|
+
**Merged pull requests:**
|
|
41
|
+
|
|
42
|
+
- Add a CODEOWNERS file [\#144](https://github.com/chef/kitchen-inspec/pull/144) ([adamleff](https://github.com/adamleff))
|
|
43
|
+
- Adding a maintainers file [\#143](https://github.com/chef/kitchen-inspec/pull/143) ([adamleff](https://github.com/adamleff))
|
|
44
|
+
- Eliminate duplicate profiles being added to runner [\#141](https://github.com/chef/kitchen-inspec/pull/141) ([adamleff](https://github.com/adamleff))
|
|
45
|
+
- Don't send keys\_only config to InSpec/Train [\#140](https://github.com/chef/kitchen-inspec/pull/140) ([adamleff](https://github.com/adamleff))
|
|
46
|
+
|
|
47
|
+
## [v0.19.0](https://github.com/chef/kitchen-inspec/tree/v0.19.0) (2017-05-03)
|
|
48
|
+
[Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.18.0...v0.19.0)
|
|
5
49
|
|
|
6
50
|
**Merged pull requests:**
|
|
7
51
|
|
data/MAINTAINERS.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Maintainers
|
|
2
|
+
|
|
3
|
+
This file lists how the kitchen-inspec project is maintained. When making changes to the
|
|
4
|
+
project, this file tells you who needs to review your patch - you need at least
|
|
5
|
+
two maintainers to provide a :+1: on your pull request. Additionally, you need
|
|
6
|
+
to not receive a veto from a Lieutenant or the Project Lead.
|
|
7
|
+
Check out [How Chef is Maintained](https://github.com/chef/chef-rfc/blob/master/rfc030-maintenance-policy.md#how-the-project-is-maintained)
|
|
8
|
+
for details on the process, how to become a maintainer, lieutenant, or the
|
|
9
|
+
project lead.
|
|
10
|
+
|
|
11
|
+
## List of Maintainers
|
|
12
|
+
|
|
13
|
+
The [Maintainers of the InSpec project](https://github.com/chef/inspec/blob/master/MAINTAINERS.md) serve as maintainers of the kitchen-inspec project.
|
|
@@ -147,13 +147,29 @@ module Kitchen
|
|
|
147
147
|
# @return [Array] array of modified hashes
|
|
148
148
|
# @api private
|
|
149
149
|
def resolve_config_inspec_tests
|
|
150
|
-
config[:inspec_tests].map do |
|
|
151
|
-
if
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
config[:inspec_tests].map do |test_item|
|
|
151
|
+
if test_item.is_a?(Hash)
|
|
152
|
+
# replace the "path" key with an absolute path
|
|
153
|
+
test_item[:path] = File.expand_path(test_item[:path]) if test_item.key?(:path)
|
|
154
|
+
|
|
155
|
+
# delete any unnecessary keys to ensure deduplication in #collect_tests isn't
|
|
156
|
+
# foiled by extra stuff. However, if the only entry is a "name" key, then
|
|
157
|
+
# leave it alone so it can default to resolving to the Supermarket.
|
|
158
|
+
unless test_item.keys == [:name]
|
|
159
|
+
test_item.delete_if { |k, v| ![:path, :url, :git, :compliance].include?(k) }
|
|
160
|
+
end
|
|
161
|
+
elsif File.exist?(test_item)
|
|
162
|
+
# if the entry is a path to something on disk, rewrite as a Hash entry with a path key.
|
|
163
|
+
# This is necessary to ensure that auto-detected local suite files found with
|
|
164
|
+
# #local_suite_files are de-duplicated with relative path entries supplied by the user
|
|
165
|
+
# in the inspec_tests array.
|
|
166
|
+
#
|
|
167
|
+
# If the path doesn't exist, it could be a URL, or it could simply be an error.
|
|
168
|
+
# We will let it fall through and let InSpec raise the appropriate exception.
|
|
169
|
+
test_item = { path: File.expand_path(test_item) }
|
|
156
170
|
end
|
|
171
|
+
|
|
172
|
+
test_item unless test_item.nil? || test_item.empty?
|
|
157
173
|
end
|
|
158
174
|
end
|
|
159
175
|
|
|
@@ -214,7 +230,6 @@ module Kitchen
|
|
|
214
230
|
"max_wait_until_ready" => kitchen[:max_wait_until_ready],
|
|
215
231
|
"compression" => kitchen[:compression],
|
|
216
232
|
"compression_level" => kitchen[:compression_level],
|
|
217
|
-
"keys_only" => true,
|
|
218
233
|
}
|
|
219
234
|
opts["key_files"] = kitchen[:keys] unless kitchen[:keys].nil?
|
|
220
235
|
opts["password"] = kitchen[:password] unless kitchen[:password].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: 0.
|
|
4
|
+
version: 0.20.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: 2017-
|
|
11
|
+
date: 2017-11-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: inspec
|
|
@@ -65,6 +65,7 @@ executables: []
|
|
|
65
65
|
extensions: []
|
|
66
66
|
extra_rdoc_files: []
|
|
67
67
|
files:
|
|
68
|
+
- ".github/CODEOWNERS"
|
|
68
69
|
- ".gitignore"
|
|
69
70
|
- ".kitchen.yml"
|
|
70
71
|
- ".rspec"
|
|
@@ -74,6 +75,7 @@ files:
|
|
|
74
75
|
- Gemfile
|
|
75
76
|
- Guardfile
|
|
76
77
|
- LICENSE
|
|
78
|
+
- MAINTAINERS.md
|
|
77
79
|
- README.md
|
|
78
80
|
- Rakefile
|
|
79
81
|
- bin/console
|
|
@@ -101,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
101
103
|
version: '0'
|
|
102
104
|
requirements: []
|
|
103
105
|
rubyforge_project:
|
|
104
|
-
rubygems_version: 2.6.
|
|
106
|
+
rubygems_version: 2.6.11
|
|
105
107
|
signing_key:
|
|
106
108
|
specification_version: 4
|
|
107
109
|
summary: A Test Kitchen Verifier for InSpec
|