poise-boiler 1.7.1 → 1.8.0

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
  SHA1:
3
- metadata.gz: 735ac18006b5b15588fb188a9c215b849fe07e02
4
- data.tar.gz: 7a37271c8dad805106b1dcdea3c1fc2114016839
3
+ metadata.gz: c5ded661ddd8346aef18000700efc49408848c22
4
+ data.tar.gz: dbf3daf8e8c38d793fe6605aadc092fe47b08e7c
5
5
  SHA512:
6
- metadata.gz: 3c9fea5a7d835f11b88e63404911df4f23d67309b46b919ac00f4b4d42d85479f22770d72692d52e04e79452720e1da66383b813f405b4c7c2f88a84f9678fe9
7
- data.tar.gz: 6990e52d1222794d6f96085be75811be522bd925054df70e755f54504c5d8ff4827373dcb1734589bec72c4505ed515ed728f8f3e081f23f964774e36e09e246
6
+ metadata.gz: 5e5e41877b1b81393aa2e5d4c3bce42d45ea27824ce3cd9b735b216e4577c0d7b15bb67b1721cf45b84fc527a8a91bdd3ce0f421ffd7854c1298c8e0f9c79e2e
7
+ data.tar.gz: 5b0e6fac49b3a8d52c99061c1cf8637f3f889df6b73527969e9b0561648f76db1b3659573ce3f2dc7e49935b7f3d5c868591c7c99ebd8755ec1b86b06ef9316e
@@ -6,7 +6,6 @@ addons:
6
6
  packages:
7
7
  - libgecode-dev
8
8
  rvm:
9
- - "2.0"
10
9
  - "2.1"
11
10
  - "2.2"
12
11
  gemfile:
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.8.0
4
+
5
+ * Windows testing harness support.
6
+ * Allow specifying Chef log level via `$CHEF_LOG_LEVEL`.
7
+ * Support for latest docker release format.
8
+
9
+ ## v1.7.2
10
+
11
+ * Test Kitchen 1.7.1 resolves the issue with 1.7.0.
12
+
3
13
  ## v1.7.1
4
14
 
5
15
  * Pin TK 1.6 until I sort out issues with 1.7.
@@ -28,12 +28,13 @@ module PoiseBoiler
28
28
  #
29
29
  # @see #expand_platforms
30
30
  PLATFORM_ALIASES = {
31
+ 'windows' => %w{windows-2012r2},
31
32
  'ubuntu' => %w{ubuntu-12.04 ubuntu-14.04},
32
- 'rhel' => %w{centos-6 centos-7},
33
- 'centos' => %w{rhel},
34
- 'linux' => %w{ubuntu rhel},
35
- 'unix' => %w{linux freebsd},
36
- 'all' => %{unix windows},
33
+ 'rhel' => %w{centos},
34
+ 'centos' => %w{centos-6 centos-7},
35
+ 'linux' => %w{ubuntu rhel centos},
36
+ 'unix' => %w{linux}, #, freebsd},
37
+ 'all' => %w{unix windows},
37
38
  }
38
39
 
39
40
  def initialize(**options)
@@ -102,7 +103,7 @@ module PoiseBoiler
102
103
  # @return [Array<String>]
103
104
  def expand_platforms
104
105
  # Default platform is linux unless overridden from the helper options.
105
- platforms = Array(options[:platforms] || 'linux')
106
+ platforms = Array(options[:platforms] || (ENV['CI'] ? 'linux' : 'all'))
106
107
  last_platforms = []
107
108
  # This is probably not the most effcient solution but oh well.
108
109
  while platforms != last_platforms
@@ -174,6 +175,7 @@ module PoiseBoiler
174
175
  # @return [Hash]
175
176
  def provisioner_config
176
177
  {
178
+ 'log_level' => (ENV['DEBUG'] ? 'debug' : (ENV['CHEF_LOG_LEVEL'] || 'auto')),
177
179
  # Use the poise_solo provisioner, also part of kitchen-docker.
178
180
  'name' => 'poise_solo',
179
181
  # Pass through debug/poise_debug settings to the test instance.
@@ -195,9 +197,28 @@ module PoiseBoiler
195
197
  # On CI enable poise-profiler automatically. Load it here in case the
196
198
  # user defines their own suites.
197
199
  'run_list' => ((ENV['CI'] || ENV['DEBUG'] || ENV['PROFILE']) ? %w{poise-profiler} : []),
200
+ }.tap {|cfg| cfg.update(windows_platform_config(name)) if name.include?('windows') }
201
+ end
202
+
203
+ # Generate extra Test Kitchen platform configuration for Windows hosts.
204
+ def windows_platform_config(name)
205
+ {
206
+ 'driver' => {
207
+ 'name' => 'ec2',
208
+ 'instance_type' => 'm3.medium',
209
+ 'aws_ssh_key_id' => 'ec2',
210
+ },
211
+ 'transport' => {
212
+ 'name' => 'winrm',
213
+ 'ssh_key' => File.expand_path('~/.ssh/ec2.pem'),
214
+ },
198
215
  }
199
216
  end
200
217
 
218
+ # Generate a Test Kitchen suite configuration hash. This is a single suite
219
+ # that runs the fixture cookbook if present otherwise the main cookbook.
220
+ #
221
+ # @return [Hash]
201
222
  def suite_config
202
223
  {
203
224
  'name' => 'default',
@@ -42,11 +42,12 @@ module PoiseBoiler
42
42
 
43
43
  file './docker' do
44
44
  begin
45
- sh(*%w{wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O docker})
45
+ sh(*%w{wget https://get.docker.com/builds/Linux/x86_64/docker-latest.tgz -O docker.tgz})
46
46
  rescue RuntimeError
47
- sh(*%w{curl https://get.docker.com/builds/Linux/x86_64/docker-latest -o docker})
47
+ sh(*%w{curl https://get.docker.com/builds/Linux/x86_64/docker-latest.tgz -o docker.tgz})
48
48
  end
49
- File.chmod(0755, './docker')
49
+ sh(*%w{tar --strip-components=1 -xzvf docker.tgz})
50
+ File.chmod(0755, *%w{./docker ./docker-containerd ./docker-containerd-ctr ./docker-containerd-shim ./docker-runc})
50
51
  end
51
52
 
52
53
  file '.ssh/id_rsa' do
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoiseBoiler
19
- VERSION = '1.7.1'
19
+ VERSION = '1.8.0'
20
20
  end
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  # Development gems
38
38
  spec.add_dependency 'bundler' # Used for Bundler.load_gemspec
39
- spec.add_dependency 'rake', '~> 10.4'
39
+ spec.add_dependency 'rake', '>= 10.4', '< 12.0'
40
40
  spec.add_dependency 'travis', '~> 1.8', '>= 1.8.1'
41
41
  spec.add_dependency 'yard', '~> 0.8'
42
42
  spec.add_dependency 'yard-classmethods', '~> 1.0'
@@ -56,13 +56,18 @@ Gem::Specification.new do |spec|
56
56
 
57
57
  # Integration gems
58
58
  # https://github.com/test-kitchen/test-kitchen/issues/922
59
- spec.add_dependency 'test-kitchen', '~> 1.6.0'
59
+ spec.add_dependency 'test-kitchen', '~> 1.7', '>= 1.7.1'
60
60
  spec.add_dependency 'kitchen-vagrant'
61
61
  spec.add_dependency 'vagrant-wrapper'
62
62
  spec.add_dependency 'kitchen-docker'
63
63
  spec.add_dependency 'kitchen-sync', '~> 2.1'
64
64
  spec.add_dependency 'poise-profiler', '~> 1.0'
65
65
 
66
+ # Windows integration gems
67
+ spec.add_dependency 'kitchen-ec2', '~> 1.0'
68
+ spec.add_dependency 'winrm', '~> 1.6'
69
+ spec.add_dependency 'winrm-fs', '~> 0.4'
70
+
66
71
  # Travis gems
67
72
  spec.add_dependency 'codeclimate-test-reporter', '~> 0.4'
68
73
  spec.add_dependency 'codecov', '~> 0.0', '>= 0.0.2'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-boiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-02 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.4'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '12.0'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '10.4'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '12.0'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: travis
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -252,14 +258,20 @@ dependencies:
252
258
  requirements:
253
259
  - - "~>"
254
260
  - !ruby/object:Gem::Version
255
- version: 1.6.0
261
+ version: '1.7'
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: 1.7.1
256
265
  type: :runtime
257
266
  prerelease: false
258
267
  version_requirements: !ruby/object:Gem::Requirement
259
268
  requirements:
260
269
  - - "~>"
261
270
  - !ruby/object:Gem::Version
262
- version: 1.6.0
271
+ version: '1.7'
272
+ - - ">="
273
+ - !ruby/object:Gem::Version
274
+ version: 1.7.1
263
275
  - !ruby/object:Gem::Dependency
264
276
  name: kitchen-vagrant
265
277
  requirement: !ruby/object:Gem::Requirement
@@ -330,6 +342,48 @@ dependencies:
330
342
  - - "~>"
331
343
  - !ruby/object:Gem::Version
332
344
  version: '1.0'
345
+ - !ruby/object:Gem::Dependency
346
+ name: kitchen-ec2
347
+ requirement: !ruby/object:Gem::Requirement
348
+ requirements:
349
+ - - "~>"
350
+ - !ruby/object:Gem::Version
351
+ version: '1.0'
352
+ type: :runtime
353
+ prerelease: false
354
+ version_requirements: !ruby/object:Gem::Requirement
355
+ requirements:
356
+ - - "~>"
357
+ - !ruby/object:Gem::Version
358
+ version: '1.0'
359
+ - !ruby/object:Gem::Dependency
360
+ name: winrm
361
+ requirement: !ruby/object:Gem::Requirement
362
+ requirements:
363
+ - - "~>"
364
+ - !ruby/object:Gem::Version
365
+ version: '1.6'
366
+ type: :runtime
367
+ prerelease: false
368
+ version_requirements: !ruby/object:Gem::Requirement
369
+ requirements:
370
+ - - "~>"
371
+ - !ruby/object:Gem::Version
372
+ version: '1.6'
373
+ - !ruby/object:Gem::Dependency
374
+ name: winrm-fs
375
+ requirement: !ruby/object:Gem::Requirement
376
+ requirements:
377
+ - - "~>"
378
+ - !ruby/object:Gem::Version
379
+ version: '0.4'
380
+ type: :runtime
381
+ prerelease: false
382
+ version_requirements: !ruby/object:Gem::Requirement
383
+ requirements:
384
+ - - "~>"
385
+ - !ruby/object:Gem::Version
386
+ version: '0.4'
333
387
  - !ruby/object:Gem::Dependency
334
388
  name: codeclimate-test-reporter
335
389
  requirement: !ruby/object:Gem::Requirement