kitchen-oci 1.20.1 → 1.21.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: cdbe8ed5cda132f28d85a1c882c78e24813be09f2b178df801f3cfa9ae48df7c
4
- data.tar.gz: 2fe8183c74c928a6775884863c952ba7b9b79b28b9e2d78c8cf8b76c9b03c891
3
+ metadata.gz: a54d769982d5c8431894d27ffa4dd0070a0289a910c88d326701fe85e747ea12
4
+ data.tar.gz: 28522b8b6deabd27202497ba57ddfe5a46d68074e45a7c9058628e92ed11914a
5
5
  SHA512:
6
- metadata.gz: c0124726ea7e49fb87ae629b655801b2732a425990d5c289c36953244660dd47f41f60da9050824f2c689cfae208a6f3044243209aa0d3f084bfa2294e723529
7
- data.tar.gz: 00314f3f25a026949491de79498386359b10e33f142662eb5f6a0191ce0db21e999bfbbb8ad3fcaadc0cd784a64a743493d90d8ea02a66f92c40c81adac62d3a
6
+ metadata.gz: f69b0b7f0f45e20cc16d875d5039e740d1fbca1b83f27d4187f9b4891249dd02d0dac294e5a3c4aa0ae71deebfc3fc49d5a5fc3bb40e38eee4e03e81813fdb13
7
+ data.tar.gz: 9389db39bfefbce0600de3740c4ec77f95b4a22f6ad7a1faf472dfe8ca26976d0a50b9d74a3c3496c9c84d966e4d4f224798d1bf41b23e1473ef246772d8c9a6
@@ -23,7 +23,7 @@ module Kitchen
23
23
  # setter methods that populate the details of OCI::Core::Models::LaunchInstanceDetails
24
24
  module ComputeLaunchDetails
25
25
  def hostname_display_name
26
- display_name = hostname
26
+ display_name = config[:display_name] || hostname
27
27
  launch_details.display_name = display_name
28
28
  launch_details.create_vnic_details = create_vnic_details(display_name)
29
29
  end
@@ -60,6 +60,7 @@ module Kitchen
60
60
  default_config :instance_name do |inst|
61
61
  inst.instance.name
62
62
  end
63
+ default_config :display_name, nil
63
64
  default_keypath = File.expand_path(File.join(%w{~ .ssh id_rsa.pub}))
64
65
  default_config :ssh_keypath, default_keypath
65
66
  default_config :post_create_script, nil
@@ -71,7 +72,7 @@ module Kitchen
71
72
  default_config :use_instance_principals, false
72
73
  default_config :use_token_auth, false
73
74
  default_config :shape_config, {}
74
- default_config :nsg_ids, []
75
+ default_config :nsg_ids, nil
75
76
  default_config :all_plugins_disabled, false
76
77
  default_config :management_disabled, false
77
78
  default_config :monitoring_disabled, false
@@ -94,7 +95,9 @@ module Kitchen
94
95
  end
95
96
 
96
97
  validations[:nsg_ids] = lambda do |attr, val, driver|
97
- validation_error("[:#{attr}] list cannot be longer than 5 items", driver) if val.length > 5
98
+ unless val.nil?
99
+ validation_error("[:#{attr}] list cannot be longer than 5 items", driver) if val.length > 5
100
+ end
98
101
  end
99
102
 
100
103
  validations[:volumes] = lambda do |attr, val, driver|
@@ -20,6 +20,6 @@
20
20
  module Kitchen
21
21
  module Driver
22
22
  # Version string for Oracle OCI Kitchen driver
23
- OCI_VERSION = "1.20.1"
23
+ OCI_VERSION = "1.21.0"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-oci
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.1
4
+ version: 1.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Pearson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-05-17 00:00:00.000000000 Z
12
+ date: 2024-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oci