kitchen-dokken 2.13.0 → 2.14.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: 7eea74ed725f969f5c886cfa3779e4b3a9094709f70e18bfe6793b913ce56c23
4
- data.tar.gz: dc4492c20b777baa7d2063156bd37c31db378545af392f49895878e9e1523b91
3
+ metadata.gz: 11e0a7060becac934d969980957fa85ec1db9242263b9bfe1435102c98c5ba5b
4
+ data.tar.gz: 5090a5db7059ecb32e6807e012d1f49c7274265bb10c8e485cd2a54a9b84fb44
5
5
  SHA512:
6
- metadata.gz: d3020a6b005734959245fcc28401fed70d80755d05f807f22933478a6f58bf481333284959cdb2a5b533e5f56db98174a0aaca2a0d5d015767062ac081e2e2e3
7
- data.tar.gz: e62c1cb7e25243ede096137079403302162d550aa7fc076ad8dcfaefda26b230a12baac451b3bd788754099c0fb55bc4b4d033acd719b4049d18652214514434
6
+ metadata.gz: 2e6d715f25d7cc4b324db6a31aab928d4fdf0c135d6f4fd6a5b9b9f67fb40f5360accf2136494178e1a696d7eb253805b2063f314769a580155ed7c675c0823f
7
+ data.tar.gz: 68970cd1101555b5556168f7f86cb20f69df80ee27465c41ee176c2946eb00dcaf454444641727a4a73cb223fa06b6d89d7565695346afc05829a4a68f7e9d80
@@ -50,6 +50,8 @@ module Kitchen
50
50
  default_config :hostname, "dokken"
51
51
  default_config :hostname_aliases, nil
52
52
  default_config :image_prefix, nil
53
+ default_config :ipv6, false
54
+ default_config :ipv6_subnet, "2001:db8:1::/64" # "2001:db8::/32 Range reserved for documentation"
53
55
  default_config :links, nil
54
56
  default_config :memory_limit, 0
55
57
  default_config :network_mode, "dokken"
@@ -359,7 +361,7 @@ module Kitchen
359
361
  with_retries { ::Docker::Network.get("dokken", {}, docker_connection) }
360
362
  rescue ::Docker::Error::NotFoundError
361
363
  begin
362
- with_retries { ::Docker::Network.create("dokken", {}) }
364
+ with_retries { ::Docker::Network.create("dokken", network_settings) }
363
365
  rescue ::Docker::Error => e
364
366
  debug "driver - error :#{e}:"
365
367
  end
@@ -18,6 +18,6 @@
18
18
  module Kitchen
19
19
  module Driver
20
20
  # Version string for Dokken Kitchen driver
21
- DOKKEN_VERSION = "2.13.0".freeze
21
+ DOKKEN_VERSION = "2.14.0".freeze
22
22
  end
23
23
  end
@@ -177,6 +177,21 @@ VOLUME /opt/verifier
177
177
  coerce_exposed_ports(config[:ports])
178
178
  end
179
179
 
180
+ def network_settings
181
+ if self[:ipv6]
182
+ {
183
+ "EnableIPv6" => true,
184
+ "IPAM" => {
185
+ "Config" => [{
186
+ "Subnet" => self[:ipv6_subnet],
187
+ }],
188
+ },
189
+ }
190
+ else
191
+ {}
192
+ end
193
+ end
194
+
180
195
  def port_bindings
181
196
  coerce_port_bindings(config[:ports])
182
197
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-dokken
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.0
4
+ version: 2.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean OMeara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-11 00:00:00.000000000 Z
11
+ date: 2021-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api
@@ -53,7 +53,7 @@ dependencies:
53
53
  version: '1.15'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: '3'
56
+ version: '4'
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -63,7 +63,7 @@ dependencies:
63
63
  version: '1.15'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
- version: '3'
66
+ version: '4'
67
67
  description: A Test Kitchen Driver for Docker & Chef Infra optimized for rapid testing
68
68
  using Chef Infra docker images
69
69
  email: