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 +4 -4
- data/lib/kitchen/driver/aws/instance_generator.rb +1 -0
- data/lib/kitchen/driver/ec2.rb +12 -13
- data/lib/kitchen/driver/ec2_version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5ed0f1bbc994d156a6374c98a1c48f00d2f789f8540b0cb33ae0755996ffca5
|
|
4
|
+
data.tar.gz: 0f5f90acb192d7a649ebd9d7861ed2bfbec2ae1665d32c5e66d75685518b1eff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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] }
|
data/lib/kitchen/driver/ec2.rb
CHANGED
|
@@ -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
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
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
|
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.
|
|
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:
|
|
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.
|
|
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
|