test-kitchen 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen/provisioner/chef_base.rb +4 -4
- data/lib/kitchen/version.rb +1 -1
- data/test-kitchen.gemspec +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 593f1178fc6a9c800b644a994b85a91917de9fb8cd1277b97559ede5aa4c2038
|
4
|
+
data.tar.gz: eeb7433c7a726aaddc7db8c4916c4cd26767190e281322ff5ee4d3620719f09b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4f14a4b335c956fac8a0d3963e1023c5cd581e5387fafa4bd360c612904b131ab2885648b60a19af4bb75bff3cfb85bc24fecaa1e376af32c085d47cf4eec5a
|
7
|
+
data.tar.gz: 0e6d4204f8c5742809df0564eee55ce114f65a066c94a31809ed5ca4896442b8b224b319d1b3a479697e26823efce999d3d48285ac84d752aafa0f6bcb9b97bb
|
@@ -271,11 +271,11 @@ module Kitchen
|
|
271
271
|
acceptor = LicenseAcceptance::Acceptor.new(logger: Kitchen.logger, provided: config[:chef_license])
|
272
272
|
if acceptor.license_required?(name, version)
|
273
273
|
debug("License acceptance required for #{name} version: #{version}. Prompting")
|
274
|
-
|
274
|
+
license_id = acceptor.id_from_mixlib(name)
|
275
275
|
begin
|
276
|
-
acceptor.check_and_persist(
|
277
|
-
rescue LicenseAcceptance::LicenseNotAcceptedError
|
278
|
-
error("Cannot converge without accepting the
|
276
|
+
acceptor.check_and_persist(license_id, version.to_s)
|
277
|
+
rescue LicenseAcceptance::LicenseNotAcceptedError => e
|
278
|
+
error("Cannot converge without accepting the #{e.product.pretty_name} License. Set it in your kitchen.yml or using the CHEF_LICENSE environment variable")
|
279
279
|
raise
|
280
280
|
end
|
281
281
|
config[:chef_license] ||= acceptor.acceptance_value
|
data/lib/kitchen/version.rb
CHANGED
data/test-kitchen.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |gem|
|
|
36
36
|
gem.add_dependency "winrm-fs", "~> 1.1"
|
37
37
|
# Required to run the Chef provisioner local license check for remote systems
|
38
38
|
# TK is not under Chef EULA
|
39
|
-
gem.add_dependency "license-acceptance", "
|
39
|
+
gem.add_dependency "license-acceptance", "~> 1.0", ">= 1.0.5"
|
40
40
|
|
41
41
|
gem.add_development_dependency "rb-readline"
|
42
42
|
gem.add_development_dependency "bundler"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-kitchen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fletcher Nichol
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|
@@ -192,22 +192,22 @@ dependencies:
|
|
192
192
|
name: license-acceptance
|
193
193
|
requirement: !ruby/object:Gem::Requirement
|
194
194
|
requirements:
|
195
|
-
- - "
|
195
|
+
- - "~>"
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
version: 0
|
198
|
-
- - "
|
197
|
+
version: '1.0'
|
198
|
+
- - ">="
|
199
199
|
- !ruby/object:Gem::Version
|
200
|
-
version:
|
200
|
+
version: 1.0.5
|
201
201
|
type: :runtime
|
202
202
|
prerelease: false
|
203
203
|
version_requirements: !ruby/object:Gem::Requirement
|
204
204
|
requirements:
|
205
|
-
- - "
|
205
|
+
- - "~>"
|
206
206
|
- !ruby/object:Gem::Version
|
207
|
-
version: 0
|
208
|
-
- - "
|
207
|
+
version: '1.0'
|
208
|
+
- - ">="
|
209
209
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
210
|
+
version: 1.0.5
|
211
211
|
- !ruby/object:Gem::Dependency
|
212
212
|
name: rb-readline
|
213
213
|
requirement: !ruby/object:Gem::Requirement
|