kitchen-inspec 0.10.1 → 0.11.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/.gitignore +2 -0
- data/.travis.yml +24 -9
- data/CHANGELOG.md +15 -2
- data/Gemfile +13 -4
- data/Gemfile.193 +33 -0
- data/Rakefile +8 -0
- data/lib/kitchen/verifier/inspec.rb +23 -0
- data/lib/kitchen/verifier/inspec_version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b9092e5aaf9e8e5afc182fdef46eb884d2228e5
|
|
4
|
+
data.tar.gz: c6d012ff3e90f865f0103c6c75c6a13a1cc29978
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d68aaf5daf6acbd5fbfd03fa04dcf0566a36847f19508c57bb737d1815ce0dc8a599b6a71337a6bd07b1f796dc7607da2164788dbec06c3099ba95f7f2b4eb6e
|
|
7
|
+
data.tar.gz: bf27169f51788ddfbdc179295a50285d2e685d95482a9a1ccb55920cd7257de80914644e69f6de44924baf6c7c1c8a6d1c113500ca80334db6ec71faa6df250e
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
|
@@ -1,17 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
sudo: required
|
|
1
3
|
language: ruby
|
|
4
|
+
cache: bundler
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
-
|
|
7
|
-
- 1.9.3
|
|
8
|
-
- ruby-head
|
|
6
|
+
# necessary for docker to work
|
|
7
|
+
dist: trusty
|
|
8
|
+
services:
|
|
9
|
+
- docker
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
bundler_args: --without guard
|
|
11
|
+
bundler_args: --without integration guard tools
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
before_install:
|
|
14
|
+
- gem install bundler
|
|
15
|
+
- gem --version
|
|
14
16
|
|
|
15
17
|
matrix:
|
|
18
|
+
include:
|
|
19
|
+
- rvm: 1.9.3
|
|
20
|
+
gemfile: Gemfile.193
|
|
21
|
+
- rvm: 2.0
|
|
22
|
+
gemfile: Gemfile
|
|
23
|
+
- rvm: 2.1
|
|
24
|
+
gemfile: Gemfile
|
|
25
|
+
- rvm: ruby-head
|
|
26
|
+
gemfile: Gemfile
|
|
27
|
+
- rvm: 2.2
|
|
28
|
+
gemfile: Gemfile
|
|
29
|
+
bundler_args: --without guard tools
|
|
30
|
+
script: bundle exec rake test:integration
|
|
16
31
|
allow_failures:
|
|
17
32
|
- rvm: ruby-head
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [0.
|
|
4
|
-
[Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.10.
|
|
3
|
+
## [0.11.0](https://github.com/chef/kitchen-inspec/tree/0.11.0) (2016-02-02)
|
|
4
|
+
[Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.10.1...0.11.0)
|
|
5
|
+
|
|
6
|
+
**Implemented enhancements:**
|
|
7
|
+
|
|
8
|
+
- Add integration test with test-kitchen [\#33](https://github.com/chef/kitchen-inspec/pull/33) ([chris-rock](https://github.com/chris-rock))
|
|
9
|
+
|
|
10
|
+
**Closed issues:**
|
|
11
|
+
|
|
12
|
+
- Failures should be tagged with the instance they failed against [\#30](https://github.com/chef/kitchen-inspec/issues/30)
|
|
13
|
+
- kitchen verify has exit status 0 with failed examples [\#9](https://github.com/chef/kitchen-inspec/issues/9)
|
|
14
|
+
|
|
15
|
+
## [v0.10.1](https://github.com/chef/kitchen-inspec/tree/v0.10.1) (2016-01-15)
|
|
16
|
+
[Full Changelog](https://github.com/chef/kitchen-inspec/compare/v0.10.0...v0.10.1)
|
|
5
17
|
|
|
6
18
|
**Closed issues:**
|
|
7
19
|
|
|
@@ -10,6 +22,7 @@
|
|
|
10
22
|
|
|
11
23
|
**Merged pull requests:**
|
|
12
24
|
|
|
25
|
+
- 0.10.1 [\#34](https://github.com/chef/kitchen-inspec/pull/34) ([chris-rock](https://github.com/chris-rock))
|
|
13
26
|
- Allow transports which are subclasses of the core ones. [\#32](https://github.com/chef/kitchen-inspec/pull/32) ([coderanger](https://github.com/coderanger))
|
|
14
27
|
|
|
15
28
|
## [v0.10.0](https://github.com/chef/kitchen-inspec/tree/v0.10.0) (2016-01-07)
|
data/Gemfile
CHANGED
|
@@ -8,13 +8,22 @@ group :guard do
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
group :test do
|
|
11
|
+
gem 'bundler', '~> 1.5'
|
|
12
|
+
gem 'minitest', '~> 5.5'
|
|
13
|
+
gem 'rake', '~> 10'
|
|
14
|
+
gem 'rubocop', '~> 0.32'
|
|
15
|
+
gem 'concurrent-ruby', '~> 0.9'
|
|
11
16
|
gem 'codeclimate-test-reporter', :require => nil
|
|
17
|
+
# gem 'test-kitchen', '~> 1.5'
|
|
18
|
+
gem 'test-kitchen', git: 'https://github.com/test-kitchen/test-kitchen.git', branch: 'chris-rock/winrm-properties-fix'
|
|
12
19
|
end
|
|
13
20
|
|
|
14
|
-
group :
|
|
15
|
-
gem '
|
|
21
|
+
group :integration do
|
|
22
|
+
gem 'berkshelf'
|
|
23
|
+
gem 'kitchen-dokken'
|
|
16
24
|
end
|
|
17
25
|
|
|
18
|
-
group :
|
|
19
|
-
gem '
|
|
26
|
+
group :tools do
|
|
27
|
+
gem 'pry', '~> 0.10'
|
|
28
|
+
gem 'github_changelog_generator', '~> 1'
|
|
20
29
|
end
|
data/Gemfile.193
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
source 'https://rubygems.org'
|
|
3
|
+
gemspec
|
|
4
|
+
|
|
5
|
+
# pin dependency for Ruby 1.9.3 since bundler is not
|
|
6
|
+
# detecting that net-ssh 3 does not work with 1.9.3
|
|
7
|
+
gem 'net-ssh', '~> 2.9'
|
|
8
|
+
|
|
9
|
+
group :guard do
|
|
10
|
+
gem 'guard-rspec', :require => nil
|
|
11
|
+
gem 'guard-rubocop', :require => nil
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
group :test do
|
|
15
|
+
gem 'bundler', '~> 1.5'
|
|
16
|
+
gem 'minitest', '~> 5.5'
|
|
17
|
+
gem 'rake', '~> 10'
|
|
18
|
+
gem 'rubocop', '~> 0.32'
|
|
19
|
+
gem 'concurrent-ruby', '~> 0.9'
|
|
20
|
+
gem 'codeclimate-test-reporter', :require => nil
|
|
21
|
+
# gem 'test-kitchen', '~> 1.5'
|
|
22
|
+
gem 'test-kitchen', git: 'https://github.com/test-kitchen/test-kitchen.git', branch: 'chris-rock/winrm-properties-fix'
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
group :integration do
|
|
26
|
+
gem 'berkshelf'
|
|
27
|
+
gem 'kitchen-dokken'
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
group :tools do
|
|
31
|
+
gem 'pry', '~> 0.10'
|
|
32
|
+
gem 'github_changelog_generator', '~> 1'
|
|
33
|
+
end
|
data/Rakefile
CHANGED
|
@@ -118,3 +118,11 @@ task :bump_version, [:version] do |_, args|
|
|
|
118
118
|
kitchen_inspec_version(v)
|
|
119
119
|
Rake::Task['changelog'].invoke
|
|
120
120
|
end
|
|
121
|
+
|
|
122
|
+
namespace :test do
|
|
123
|
+
task :integration do
|
|
124
|
+
concurrency = ENV['CONCURRENCY'] || 1
|
|
125
|
+
path = File.join(File.dirname(__FILE__), 'test', 'integration')
|
|
126
|
+
sh('sh', '-c', "cd #{path} && bundle exec kitchen test -c #{concurrency} -t .")
|
|
127
|
+
end
|
|
128
|
+
end
|
|
@@ -96,6 +96,9 @@ module Kitchen
|
|
|
96
96
|
runner_options_for_ssh(transport_data)
|
|
97
97
|
elsif transport.is_a?(Kitchen::Transport::Winrm)
|
|
98
98
|
runner_options_for_winrm(transport_data)
|
|
99
|
+
# optional transport which is not in core test-kitchen
|
|
100
|
+
elsif defined?(Kitchen::Transport::Dokken) && transport.is_a?(Kitchen::Transport::Dokken)
|
|
101
|
+
runner_options_for_docker(transport_data)
|
|
99
102
|
else
|
|
100
103
|
fail Kitchen::UserError, "Verifier #{name} does not support the #{transport.name} Transport"
|
|
101
104
|
end.tap do |runner_options|
|
|
@@ -154,6 +157,26 @@ module Kitchen
|
|
|
154
157
|
|
|
155
158
|
opts
|
|
156
159
|
end
|
|
160
|
+
|
|
161
|
+
# Returns a configuration Hash that can be passed to a `Inspec::Runner`.
|
|
162
|
+
#
|
|
163
|
+
# @return [Hash] a configuration hash of string-based keys
|
|
164
|
+
# @api private
|
|
165
|
+
def runner_options_for_docker(config_data)
|
|
166
|
+
kitchen = instance.transport.send(:connection_options, config_data).dup
|
|
167
|
+
|
|
168
|
+
opts = {
|
|
169
|
+
'backend' => 'docker',
|
|
170
|
+
'logger' => logger,
|
|
171
|
+
'host' => kitchen[:data_container][:Id],
|
|
172
|
+
'connection_timeout' => kitchen[:timeout],
|
|
173
|
+
'connection_retries' => kitchen[:connection_retries],
|
|
174
|
+
'connection_retry_sleep' => kitchen[:connection_retry_sleep],
|
|
175
|
+
'max_wait_until_ready' => kitchen[:max_wait_until_ready],
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
opts
|
|
179
|
+
end
|
|
157
180
|
end
|
|
158
181
|
end
|
|
159
182
|
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.
|
|
4
|
+
version: 0.11.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-
|
|
11
|
+
date: 2016-02-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: inspec
|
|
@@ -121,6 +121,7 @@ files:
|
|
|
121
121
|
- ".travis.yml"
|
|
122
122
|
- CHANGELOG.md
|
|
123
123
|
- Gemfile
|
|
124
|
+
- Gemfile.193
|
|
124
125
|
- Guardfile
|
|
125
126
|
- LICENSE
|
|
126
127
|
- README.md
|