kitchen-ec2 3.12.0 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f76f759771ac4c8597dacffcf992e7d33fe1784c61be5ae6c84f00c77633b141
4
- data.tar.gz: 324f1dd4944162dcd51bd6569dbfbabe9701ec58f6c1f8bf02ff96811bf48c65
3
+ metadata.gz: c5ed0f1bbc994d156a6374c98a1c48f00d2f789f8540b0cb33ae0755996ffca5
4
+ data.tar.gz: 0f5f90acb192d7a649ebd9d7861ed2bfbec2ae1665d32c5e66d75685518b1eff
5
5
  SHA512:
6
- metadata.gz: 48c946144405da7ec33817582d1115ac68dc76486307d86b8d7519a238d0aa0637d03152a0aad3b96fdfad25955e40eb96c513c862f7794f1ec4aeca3d029558
7
- data.tar.gz: 136f94bcf170b07848f8bd7dd56d2918e38482003ece6d0da4029790651e60c1cd25ddd0e13749e6d90efdf6f6cf346f9d6d2eba17c45067db04ac8e4662558d
6
+ metadata.gz: 890a0a34755ab636605a8fcfbc45ce8c0f055adb0fa5404c48d516060da3089628091d37bbc9ad555601d742f40647183f2b34988dc703ca03477722b3dfb1bf
7
+ data.tar.gz: 617aaee4fdd8b335e17731621abb9ae140b73286e4da2e77adbb46cdc560789f02eeb85f208217e3ffbd03746c52a46f4ae051d93ab1436fb2fb8f3f2b267351
@@ -153,6 +153,7 @@ module Kitchen
153
153
  i[:block_device_mappings] = config[:block_device_mappings]
154
154
  end
155
155
  i[:security_group_ids] = Array(config[:security_group_ids]) if config[:security_group_ids]
156
+ i[:metadata_options] = config[:metadata_options] if config[:metadata_options]
156
157
  i[:user_data] = prepared_user_data if prepared_user_data
157
158
  if config[:iam_profile_name]
158
159
  i[:iam_instance_profile] = { name: config[:iam_profile_name] }
@@ -251,14 +251,6 @@ module Kitchen
251
251
  wait_until_ready(server, state)
252
252
  end
253
253
 
254
- if windows_os? &&
255
- instance.transport[:username] =~ /administrator/i &&
256
- instance.transport[:password].nil?
257
- # If we're logging into the administrator user and a password isn't
258
- # supplied, try to fetch it from the AWS instance
259
- fetch_windows_admin_password(server, state)
260
- end
261
-
262
254
  info("EC2 instance <#{state[:server_id]}> ready (hostname: #{state[:hostname]}).")
263
255
  instance.transport.connection(state).wait_until_ready
264
256
  attach_network_interface(state) unless config[:elastic_network_interface_id].nil?
@@ -536,12 +528,19 @@ module Kitchen
536
528
  state[:hostname] = hostname(aws_instance, nil)
537
529
  end
538
530
  if ready && windows_os?
539
- output = server.console_output.output
540
- unless output.nil?
541
- output = Base64.decode64(output)
542
- debug "Console output: --- \n#{output}"
531
+ if instance.transport[:username] =~ /administrator/i &&
532
+ instance.transport[:password].nil?
533
+ # If we're logging into the administrator user and a password isn't
534
+ # supplied, try to fetch it from the AWS instance
535
+ fetch_windows_admin_password(server, state)
536
+ else
537
+ output = server.console_output.output
538
+ unless output.nil?
539
+ output = Base64.decode64(output)
540
+ debug "Console output: --- \n#{output}"
541
+ end
542
+ ready = !!(output =~ /Windows is Ready to use/)
543
543
  end
544
- ready = !!(output =~ /Windows is Ready to use/)
545
544
  end
546
545
  ready
547
546
  end
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for EC2 Test Kitchen driver
24
- EC2_VERSION = "3.12.0".freeze
24
+ EC2_VERSION = "3.13.0".freeze
25
25
  end
26
26
  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.12.0
4
+ version: 3.13.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: 2021-12-21 00:00:00.000000000 Z
11
+ date: 2022-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubygems_version: 3.2.32
108
+ rubygems_version: 3.2.3
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: A Test Kitchen Driver for Amazon EC2