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 +4 -4
- data/.kitchen.yml +0 -8
- data/CHANGELOG.md +4 -0
- data/README.md +4 -4
- data/kitchen-docker_cli.gemspec +1 -1
- data/lib/kitchen/driver/docker_cli.rb +1 -1
- data/lib/kitchen/driver/docker_cli_version.rb +1 -1
- data/spec/kitchen/transport/docker_cli_spec.rb +27 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a1a3609b2d7b773c920391bee3bc159e6bb0cf3
|
4
|
+
data.tar.gz: fa900ccf46df506b136ce27ad05deb805780d55c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71df0f96e65c3fe44bd9ae36deb3f4501fd8d89b48cd0bf10df0b9d06c37073397f35ff0a229c827c6243622781699d1d571c5a0e080666d281ffe2b84b81e84
|
7
|
+
data.tar.gz: 67708ec9dd0abccb214d7037935b1afd291d7f3ea3256f280c5d3c1d83da1d400c08b2605c9a6b9daeb994d62ce53fb0e9e24a0ad8fb972b7d96572b1c95c7ee
|
data/.kitchen.yml
CHANGED
data/CHANGELOG.md
CHANGED
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
|
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
|
-
|
273
|
-
|
272
|
+
- 80
|
273
|
+
- 22
|
274
274
|
```
|
275
275
|
|
276
276
|
### volume
|
data/kitchen-docker_cli.gemspec
CHANGED
@@ -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'
|
@@ -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.
|
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-
|
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
|