kitchen-dokken 2.12.1 → 2.13.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: 517d0d0706aed8e8fc5889c874d6817fe65cfa571ba3a7a082d8256f707986cd
4
- data.tar.gz: f5beb66dc47d9c4f58022c26af3ce8657c7fae40443eb2d3ee1b5ef2c01f5d0e
3
+ metadata.gz: 7eea74ed725f969f5c886cfa3779e4b3a9094709f70e18bfe6793b913ce56c23
4
+ data.tar.gz: dc4492c20b777baa7d2063156bd37c31db378545af392f49895878e9e1523b91
5
5
  SHA512:
6
- metadata.gz: fd3d097a36e249e21f88ea3a1999207f9e45e464a9eb649d10c870d24d4a0705766dfb57df3ced2c82cda4e6cee04d5b53587b36743dbdd887da036d00c5d7c8
7
- data.tar.gz: 755b9671c1aa2cbf14a90ddb9c730e3d50d5326a6244f2d8ece875b5bf5b5e9567c3c5f9661cd6cb6a00e6e4ec0594efcd5aa2fe0daf56e0fca7bf78c6a76d61
6
+ metadata.gz: d3020a6b005734959245fcc28401fed70d80755d05f807f22933478a6f58bf481333284959cdb2a5b533e5f56db98174a0aaca2a0d5d015767062ac081e2e2e3
7
+ data.tar.gz: e62c1cb7e25243ede096137079403302162d550aa7fc076ad8dcfaefda26b230a12baac451b3bd788754099c0fb55bc4b4d033acd719b4049d18652214514434
@@ -48,6 +48,7 @@ module Kitchen
48
48
  default_config :entrypoint, nil
49
49
  default_config :env, nil
50
50
  default_config :hostname, "dokken"
51
+ default_config :hostname_aliases, nil
51
52
  default_config :image_prefix, nil
52
53
  default_config :links, nil
53
54
  default_config :memory_limit, 0
@@ -313,7 +314,7 @@ module Kitchen
313
314
  "NetworkingConfig" => {
314
315
  "EndpointsConfig" => {
315
316
  self[:network_mode] => {
316
- "Aliases" => Array(self[:hostname]),
317
+ "Aliases" => Array(self[:hostname]).concat(Array(self[:hostname_aliases])),
317
318
  },
318
319
  },
319
320
  },
@@ -599,7 +600,7 @@ module Kitchen
599
600
  original_image = Docker::Image.get(path, {}, docker_connection)
600
601
  end
601
602
 
602
- new_image = Docker::Image.create({ "fromImage" => path }, docker_connection)
603
+ new_image = Docker::Image.create({ "fromImage" => path }, {}, docker_connection)
603
604
 
604
605
  !(original_image && original_image.id.start_with?(new_image.id))
605
606
  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.12.1".freeze
21
+ DOKKEN_VERSION = "2.13.0".freeze
22
22
  end
23
23
  end
@@ -117,6 +117,8 @@ VOLUME /opt/verifier
117
117
  end
118
118
 
119
119
  def docker_info
120
+ ::Docker.url = default_docker_host
121
+
120
122
  @docker_info ||= ::Docker.info
121
123
  rescue Excon::Error::Socket
122
124
  puts "kitchen-dokken could not connect to the docker host at #{default_docker_host}. Is docker running?"
@@ -109,12 +109,13 @@ module Kitchen
109
109
  cmd << " -c /opt/kitchen/client.rb"
110
110
  cmd << " -j /opt/kitchen/dna.json"
111
111
  cmd << "--profile-ruby" if config[:profile_ruby]
112
+ cmd << "--slow-report" if config[:slow_resource_report]
112
113
 
113
114
  chef_cmd(cmd)
114
115
  end
115
116
 
116
117
  def write_run_command(command)
117
- File.write("#{dokken_kitchen_sandbox}/run_command", command)
118
+ File.write("#{dokken_kitchen_sandbox}/run_command", command, mode: "wb")
118
119
  end
119
120
 
120
121
  def runner_container_name
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.12.1
4
+ version: 2.13.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-03-01 00:00:00.000000000 Z
11
+ date: 2021-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.1.4
100
+ rubygems_version: 3.2.15
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: A Test Kitchen Driver for Docker & Chef Infra optimized for rapid testing