kitchen-ec2 3.17.1 → 3.19.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
  SHA256:
3
- metadata.gz: abdd51753a33ae7cf21aeb7f3073cd949d0c0c998eb065955b2bb8982441760a
4
- data.tar.gz: f8a5ffd49f6213cc5822857f2af830be06fd42fe1c9a29cb60328b0fd4835e45
3
+ metadata.gz: 190d4a65e276d10988fe40ce6e941c573ce6e0df2f9763cb7ad49d9cff418801
4
+ data.tar.gz: c636a468c610e0d928ca536c384ae1b1c8c4b5974f041b8cd872fbf743daf027
5
5
  SHA512:
6
- metadata.gz: b68043de14aab7e71d0b4c4570492e81b0e5b6af6e04ed0ed55df1db476f2f791de20030e0b630919a811c0605f8388719820ed3b7adf87d982b3a53b2b3d230
7
- data.tar.gz: 74c9d0cea39fccd36f79ea1490f24946eac7ecd2670c0fe2434e1a43110727015e18472839a56b28f351e342d69eb038166edc45ecc00b4e15bfa9f393696461
6
+ metadata.gz: be3206cb0bf7f105e3c2d0112c66f15cc15f66e43500ba82c7a9805c6a6319b2666fce134572f5e2f74180cc942134375f7528183f59e2a91dfdc9030e4d02c4
7
+ data.tar.gz: 3e60192858d30036537af3575a8a3a25a4a7594f83d09e3155f46103050cf00b22772ae40ca993098739e394c50e2606f535c6bbdc7fc6a0bb08264835dc4781
@@ -189,6 +189,43 @@ module Kitchen
189
189
  i[:placement] = { tenancy: }
190
190
  end
191
191
  end
192
+ placement = config[:placement]
193
+ if placement
194
+ unless i.key?(:placement)
195
+ i[:placement] = {}
196
+ end
197
+ if placement[:affinity]
198
+ i[:placement][:affinity] = placement[:affinity]
199
+ end
200
+ if placement[:availability_zone]
201
+ i[:placement][:availability_zone] = placement[:availability_zone]
202
+ end
203
+ if placement[:group_id] && !placement[:group_name]
204
+ i[:placement][:group_id] = placement[:group_id]
205
+ end
206
+ if placement[:group_name] && !placement[:group_id]
207
+ i[:placement][:group_name] = placement[:group_name]
208
+ end
209
+ if placement[:host_id]
210
+ i[:placement][:host_id] = placement[:host_id]
211
+ end
212
+ if placement[:host_resource_group_arn]
213
+ i[:placement][:host_resource_group_arn] = placement[:host_resource_group_arn]
214
+ end
215
+ if placement[:partition_number]
216
+ i[:placement][:partition_number] = placement[:partition_number]
217
+ end
218
+ if placement[:tenancy]
219
+ i[:placement][:tenancy] = placement[:tenancy]
220
+ end
221
+ end
222
+ license_specifications = config[:licenses]
223
+ if license_specifications
224
+ i[:licenses] = []
225
+ license_specifications.each do |license_configuration_arn|
226
+ i[:licenses].append({ license_configuration_arn: license_configuration_arn[:license_configuration_arn] })
227
+ end
228
+ end
192
229
  unless config[:instance_initiated_shutdown_behavior].nil? ||
193
230
  config[:instance_initiated_shutdown_behavior].empty?
194
231
  i[:instance_initiated_shutdown_behavior] = config[:instance_initiated_shutdown_behavior]
@@ -19,6 +19,6 @@
19
19
  module Kitchen
20
20
  module Driver
21
21
  # Version string for EC2 Test Kitchen driver
22
- EC2_VERSION = "3.17.1".freeze
22
+ EC2_VERSION = "3.19.0".freeze
23
23
  end
24
24
  end
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: 3.17.1
4
+ version: 3.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Test Kitchen Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-27 00:00:00.000000000 Z
11
+ date: 2024-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ec2
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - ">="
105
105
  - !ruby/object:Gem::Version
106
- version: '2.7'
106
+ version: '3.1'
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - ">="