kitchen-docker_cli 0.13.0 → 0.13.1

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
  SHA1:
3
- metadata.gz: d09c1ca759499f465522eac8a5450d03c9a156f6
4
- data.tar.gz: 3c02d60023b1f6cd810209756de6494a51961ea6
3
+ metadata.gz: 7a1a3609b2d7b773c920391bee3bc159e6bb0cf3
4
+ data.tar.gz: fa900ccf46df506b136ce27ad05deb805780d55c
5
5
  SHA512:
6
- metadata.gz: a756a6c2d28cc7f572d38fcb9b561487f82be6cff4efbc440ad02a86ac8cf7d984eee63a1cb01b370f3b36e74c17cf2bb02eeecd70a8d2be05d3cdf488f4e775
7
- data.tar.gz: 1273593f19790281578cf9522e79a1f4378038b8af3d861dc1d4294147f667ae422a22b285ed2d3ee53ed34db7eeba7a44ed7fccafe95cdab5dd02e099b2c31b
6
+ metadata.gz: 71df0f96e65c3fe44bd9ae36deb3f4501fd8d89b48cd0bf10df0b9d06c37073397f35ff0a229c827c6243622781699d1d571c5a0e080666d281ffe2b84b81e84
7
+ data.tar.gz: 67708ec9dd0abccb214d7037935b1afd291d7f3ea3256f280c5d3c1d83da1d400c08b2605c9a6b9daeb994d62ce53fb0e9e24a0ad8fb972b7d96572b1c95c7ee
data/.kitchen.yml CHANGED
@@ -19,11 +19,3 @@ suites:
19
19
  dns:
20
20
  - 8.8.8.8
21
21
  - 199.85.126.10
22
-
23
- - name: ansible
24
- provisioner:
25
- name: ansible_playbook
26
- playbook: test/integration/ansible/default.yml
27
- hosts: 127.0.0.1
28
- verifier:
29
- ruby_bindir: /usr/bin
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.13.1
2
+
3
+ - Fix output of `destroy` action in the case of the container does not exist.
4
+
1
5
  ## 0.13.0
2
6
 
3
7
  * Support Docker LXC driver(for CircleCI)
data/README.md CHANGED
@@ -3,10 +3,10 @@
3
3
  [![Build Status](https://travis-ci.org/marcy-terui/kitchen-docker_cli.svg?branch=master)](https://travis-ci.org/marcy-terui/kitchen-docker_cli) [![Circle CI](https://circleci.com/gh/marcy-terui/kitchen-docker_cli.svg?style=svg)](https://circleci.com/gh/marcy-terui/kitchen-docker_cli)
4
4
  [![Join the chat at https://gitter.im/marcy-terui/kitchen-docker_cli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/marcy-terui/kitchen-docker_cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
5
5
 
6
- A Test Kitchen Driver for Docker command line interface.
6
+ A Test Kitchen Driver(and Transport) for Docker command line interface.
7
7
 
8
8
  This plugin is created with only Docker CLI functions.
9
- Therefore, we can test with an environment that has no extra software such as ```sshd```.
9
+ Therefore, we can test with an environment that has no extra software such as `sshd`.
10
10
 
11
11
  ## <a name="requirements"></a> Requirements
12
12
 
@@ -269,8 +269,8 @@ Examples:
269
269
 
270
270
  ```yml
271
271
  expose:
272
- - 80
273
- - 22
272
+ - 80
273
+ - 22
274
274
  ```
275
275
 
276
276
  ### volume
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Kitchen::Driver::DOCKER_CLI_VERSION
9
9
  spec.authors = ['Masashi Terui']
10
10
  spec.email = ['marcy9114@gmail.com']
11
- spec.description = %q{A Test Kitchen Driver for Docker native CLI}
11
+ spec.description = %q{A Test Kitchen Driver(and Transport) for Docker native CLI}
12
12
  spec.summary = spec.description
13
13
  spec.homepage = 'https://github.com/marcy-terui/kitchen-docker_cli'
14
14
  spec.license = 'Apache 2.0'
@@ -62,7 +62,7 @@ module Kitchen
62
62
 
63
63
  def destroy(state)
64
64
  instance.transport.connection(state) do |conn|
65
- conn.run_docker("rm -f #{state[:container_id]}") rescue false
65
+ conn.run_docker("rm -f #{state[:container_id]}") if state[:container_id]
66
66
  end
67
67
  end
68
68
 
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for DockerCli Kitchen driver
24
- DOCKER_CLI_VERSION = '0.13.0'
24
+ DOCKER_CLI_VERSION = '0.13.1'
25
25
  end
26
26
  end
@@ -0,0 +1,27 @@
1
+ require 'spec_helper'
2
+ require 'kitchen/driver/docker_cli'
3
+
4
+ describe Kitchen::Driver::DockerCli, "default_image" do
5
+
6
+ before do
7
+ @docker_cli = Kitchen::Driver::DockerCli.new
8
+ end
9
+
10
+ example do
11
+ platform = double('platform')
12
+ instance = double('instance')
13
+ platform.stub(:name).and_return("centos-6.4")
14
+ instance.stub(:platform).and_return(platform)
15
+ @docker_cli.stub(:instance).and_return(instance)
16
+ expect(@docker_cli.default_image).to eq 'centos:centos6'
17
+ end
18
+
19
+ example do
20
+ platform = double('platform')
21
+ instance = double('instance')
22
+ platform.stub(:name).and_return("ubuntu-12.04")
23
+ instance.stub(:platform).and_return(platform)
24
+ @docker_cli.stub(:instance).and_return(instance)
25
+ expect(@docker_cli.default_image).to eq 'ubuntu:12.04'
26
+ end
27
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-docker_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masashi Terui
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-26 00:00:00.000000000 Z
11
+ date: 2015-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -94,7 +94,7 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- description: A Test Kitchen Driver for Docker native CLI
97
+ description: A Test Kitchen Driver(and Transport) for Docker native CLI
98
98
  email:
99
99
  - marcy9114@gmail.com
100
100
  executables: []
@@ -129,6 +129,7 @@ files:
129
129
  - spec/kitchen/driver/docker_cli_spec.rb
130
130
  - spec/kitchen/driver/dockerfile.erb
131
131
  - spec/kitchen/driver/dockerfile_nil.erb
132
+ - spec/kitchen/transport/docker_cli_spec.rb
132
133
  - spec/spec_helper.rb
133
134
  homepage: https://github.com/marcy-terui/kitchen-docker_cli
134
135
  licenses:
@@ -153,7 +154,7 @@ rubyforge_project:
153
154
  rubygems_version: 2.2.2
154
155
  signing_key:
155
156
  specification_version: 4
156
- summary: A Test Kitchen Driver for Docker native CLI
157
+ summary: A Test Kitchen Driver(and Transport) for Docker native CLI
157
158
  test_files:
158
159
  - integration-test/.gitignore
159
160
  - integration-test/.kitchen.yml
@@ -168,4 +169,5 @@ test_files:
168
169
  - spec/kitchen/driver/docker_cli_spec.rb
169
170
  - spec/kitchen/driver/dockerfile.erb
170
171
  - spec/kitchen/driver/dockerfile_nil.erb
172
+ - spec/kitchen/transport/docker_cli_spec.rb
171
173
  - spec/spec_helper.rb