kitchen-ec2 1.0.1 → 1.1.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: ad438e44f62d08b86a13486067fcca4d3169da54
4
- data.tar.gz: 53bb61551639822d1b2325e62ebd9c6b4f3e67fc
3
+ metadata.gz: 2928484fa583fa992ebcf1fa003d63ddaeae94eb
4
+ data.tar.gz: 3ad8a26f85c5f05667096e0c305b036a25788411
5
5
  SHA512:
6
- metadata.gz: d84b7243fb9222bb262b9f033b2da352f60991983f12aa034ba76251d25b323636e7c97a9151e0d050c575608c110b2c8494b8610a99db73211bbf7c1bf799ea
7
- data.tar.gz: e21e8a2d5247659ce395e466c939d97cc4b0f30aec91119ec4c480df058e5227b5dcd66c06d02e9b3f29cefc99f1acddc4a6c225bab2364cf7e4fb938086c6f6
6
+ metadata.gz: c35455b314bd2fd04e239b960ed59b42ec9cc1aab1c4044f7bfa38329679ec8f7644740a76398ff822ae8ea827f424bcb823e14cd3a3fa57e03d0d9104665d3d
7
+ data.tar.gz: 0215c4bed37d0f12d6a2f9993c86a2af4dae7d1858673e602270c14bda5e1202a89d729fb062da0297f5c34ca4b8f906648a2c78b18dc63d3c1c7c266ebe8ee1
data/CHANGELOG.md CHANGED
@@ -1,7 +1,24 @@
1
1
  # Change Log
2
2
 
3
- ## [1.0.1](https://github.com/test-kitchen/kitchen-ec2/tree/1.0.1) (2016-07-20)
4
- [Full Changelog](https://github.com/test-kitchen/kitchen-ec2/compare/v1.0.0...1.0.1)
3
+ ## [1.1.0](https://github.com/test-kitchen/kitchen-ec2/tree/1.1.0) (2016-08-09)
4
+ [Full Changelog](https://github.com/test-kitchen/kitchen-ec2/compare/v1.0.1...1.1.0)
5
+
6
+ **Implemented enhancements:**
7
+
8
+ - Make tags optional for clients without IAM rights to CreateTags [\#257](https://github.com/test-kitchen/kitchen-ec2/pull/257) ([freimer](https://github.com/freimer))
9
+
10
+ **Fixed bugs:**
11
+
12
+ - New transport.ssh\_key does not work in Travis, possibly elsewhere [\#203](https://github.com/test-kitchen/kitchen-ec2/issues/203)
13
+ - not able to connect via winrm [\#175](https://github.com/test-kitchen/kitchen-ec2/issues/175)
14
+ - Fix AWS Ruby SDK autoload for all time [\#270](https://github.com/test-kitchen/kitchen-ec2/pull/270) ([jkeiser](https://github.com/jkeiser))
15
+
16
+ **Closed issues:**
17
+
18
+ - Retrieve AMI IDs from the EC2 API [\#147](https://github.com/test-kitchen/kitchen-ec2/issues/147)
19
+
20
+ ## [v1.0.1](https://github.com/test-kitchen/kitchen-ec2/tree/v1.0.1) (2016-07-20)
21
+ [Full Changelog](https://github.com/test-kitchen/kitchen-ec2/compare/v1.0.0...v1.0.1)
5
22
 
6
23
  **Fixed bugs:**
7
24
 
data/Gemfile CHANGED
@@ -11,3 +11,7 @@ group :test do
11
11
  gem "rake"
12
12
  gem "pry"
13
13
  end
14
+
15
+ group :development do
16
+ gem "github_changelog_generator"
17
+ end
@@ -84,9 +84,9 @@ module Kitchen
84
84
 
85
85
  def initialize(*args, &block)
86
86
  super
87
- # Access these so they are eagerly loaded (since we'll reference them later)
88
- ::Aws::EC2::Client # rubocop:disable Lint/Void
89
- ::Aws::EC2::Resource # rubocop:disable Lint/Void
87
+ # AWS Ruby SDK loading isn't thread safe, so as soon as we know we're
88
+ # going to use EC2, autoload it. Seems to have been fixed in Ruby 2.3+
89
+ ::Aws.eager_autoload! unless RUBY_VERSION.to_f >= 2.3
90
90
  end
91
91
 
92
92
  def self.validation_warn(driver, old_key, new_key)
@@ -362,11 +362,13 @@ module Kitchen
362
362
  end
363
363
 
364
364
  def tag_server(server)
365
- tags = []
366
- config[:tags].each do |k, v|
367
- tags << { :key => k, :value => v }
365
+ if config[:tags]
366
+ tags = []
367
+ config[:tags].each do |k, v|
368
+ tags << { :key => k, :value => v }
369
+ end
370
+ server.create_tags(:tags => tags)
368
371
  end
369
- server.create_tags(:tags => tags)
370
372
  end
371
373
 
372
374
  # Normally we could use `server.wait_until_running` but we actually need
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for EC2 Test Kitchen driver
24
- EC2_VERSION = "1.0.1"
24
+ EC2_VERSION = "1.1.0"
25
25
  end
26
26
  end
@@ -228,6 +228,10 @@ describe Kitchen::Driver::Ec2 do
228
228
  )
229
229
  driver.tag_server(server)
230
230
  end
231
+ it "does not raise" do
232
+ config[:tags] = nil
233
+ expect { driver.tag_server(server) }.not_to raise_error
234
+ end
231
235
  end
232
236
 
233
237
  describe "#wait_until_ready" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher Nichol
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-20 00:00:00.000000000 Z
11
+ date: 2016-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  version: '0'
240
240
  requirements: []
241
241
  rubyforge_project:
242
- rubygems_version: 2.6.3
242
+ rubygems_version: 2.6.6
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: A Test Kitchen Driver for Amazon EC2