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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6c58820622fdc3aac554e5fe00a8485561076e493d82ccc3d5cc53a13901e99
4
- data.tar.gz: a146d43a890701b4bfe5b8043a02fe4a30c6a237565189e55b58c50653ee442a
3
+ metadata.gz: 593f1178fc6a9c800b644a994b85a91917de9fb8cd1277b97559ede5aa4c2038
4
+ data.tar.gz: eeb7433c7a726aaddc7db8c4916c4cd26767190e281322ff5ee4d3620719f09b
5
5
  SHA512:
6
- metadata.gz: 4c4fe3d155163a35ad473f6ba155a9a04b83fcfe585423accfe856db66341964e43be94553322eec2c989cfc95ee0b78cf7b55d73b5fd02baabc1fd7553d0fc9
7
- data.tar.gz: 5ba0906fe1817c4c7cde1f08753c14d6c390824e8d50adf1b2cc5403630959ae8d5b85d1e0abde7a024bc5abff3a1bcf107688d5ea620336e18e2d471dde719d
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
- license_name = acceptor.name_from_mixlib(name)
274
+ license_id = acceptor.id_from_mixlib(name)
275
275
  begin
276
- acceptor.check_and_persist(license_name, version.to_s)
277
- rescue LicenseAcceptance::LicenseNotAcceptedError
278
- error("Cannot converge without accepting the Chef License. Set it in your kitchen.yml or using the CHEF_LICENSE environment variable")
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
@@ -17,5 +17,5 @@
17
17
  # limitations under the License.
18
18
 
19
19
  module Kitchen
20
- VERSION = "2.2.2".freeze
20
+ VERSION = "2.2.3".freeze
21
21
  end
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", ">= 0.2.16", "< 2.0"
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.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-02 00:00:00.000000000 Z
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.2.16
198
- - - "<"
197
+ version: '1.0'
198
+ - - ">="
199
199
  - !ruby/object:Gem::Version
200
- version: '2.0'
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.2.16
208
- - - "<"
207
+ version: '1.0'
208
+ - - ">="
209
209
  - !ruby/object:Gem::Version
210
- version: '2.0'
210
+ version: 1.0.5
211
211
  - !ruby/object:Gem::Dependency
212
212
  name: rb-readline
213
213
  requirement: !ruby/object:Gem::Requirement