docker-client 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Guardfile +9 -0
- data/LICENSE.txt +22 -0
- data/MIT-LICENSE +21 -0
- data/README.md +87 -0
- data/Rakefile +15 -0
- data/docker.gemspec +40 -0
- data/lib/docker.rb +10 -0
- data/lib/docker/api.rb +32 -0
- data/lib/docker/connection.rb +83 -0
- data/lib/docker/error.rb +9 -0
- data/lib/docker/error/bad_parameter_error.rb +7 -0
- data/lib/docker/error/container_not_found.rb +7 -0
- data/lib/docker/error/internal_server_error.rb +7 -0
- data/lib/docker/error/not_found_error.rb +7 -0
- data/lib/docker/resource.rb +8 -0
- data/lib/docker/resource/base.rb +23 -0
- data/lib/docker/resource/container.rb +131 -0
- data/lib/docker/resource/image.rb +10 -0
- data/lib/docker/version.rb +3 -0
- data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_a_basic_request.yml +40 -0
- data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_get_request.yml +105 -0
- data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_post_request.yml +30 -0
- data/spec/cassettes/Docker_Connection/returns_status_404_for_non_existent_path.yml +31 -0
- data/spec/cassettes/Docker_Connection/sets_given_query_parameters.yml +31 -0
- data/spec/cassettes/Docker_Connection/sets_given_request_headers.yml +33 -0
- data/spec/cassettes/Docker_Resource_Container/changes/inspects_the_container_s_filesystem_changes.yml +33 -0
- data/spec/cassettes/Docker_Resource_Container/create/raises_an_exception_when_called_with_invalid_options.yml +34 -0
- data/spec/cassettes/Docker_Resource_Container/create/with_many_settings.yml +36 -0
- data/spec/cassettes/Docker_Resource_Container/create/with_minimal_settings.yml +34 -0
- data/spec/cassettes/Docker_Resource_Container/kill/raises_an_exception_for_an_unknow_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/kill/the_container.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/lists/all_running_containers.yml +46 -0
- data/spec/cassettes/Docker_Resource_Container/lists/limit_last_created_containers.yml +34 -0
- data/spec/cassettes/Docker_Resource_Container/lists/non-running_processes_too.yml +114 -0
- data/spec/cassettes/Docker_Resource_Container/lists/processes_before_a_certain_created_container.yml +110 -0
- data/spec/cassettes/Docker_Resource_Container/lists/processes_since_a_certain_created_container.yml +34 -0
- data/spec/cassettes/Docker_Resource_Container/logs/returns_the_stderr_of_a_container.yml +25 -0
- data/spec/cassettes/Docker_Resource_Container/logs/returns_the_stdout_of_a_container.yml +25 -0
- data/spec/cassettes/Docker_Resource_Container/remove/deletes_the_container.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/remove/raises_an_exception_with_an_invalid_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/restarts/raises_an_exception_for_an_unknown_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/restarts/the_container.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/shows/the_low_level_details.yml +48 -0
- data/spec/cassettes/Docker_Resource_Container/start/brings_a_container_into_state_running.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/start/raises_an_exception_for_an_unknown_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/stop/halts_a_container.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/stop/raises_an_exception_for_an_unknown_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/wait/blocks_until_the_container_stops.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/wait/raises_an_exception_for_an_unknown_container.yml +31 -0
- data/spec/cassettes/test_setup/create_container_connection_post.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_changes.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_kill.yml +34 -0
- data/spec/cassettes/test_setup/create_container_container_lists1.yml +34 -0
- data/spec/cassettes/test_setup/create_container_container_lists2.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_logs.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_remove.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_restarts.yml +34 -0
- data/spec/cassettes/test_setup/create_container_container_shows.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_start.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_stop.yml +34 -0
- data/spec/cassettes/test_setup/create_container_container_wait.yml +33 -0
- data/spec/cassettes/test_setup/delete_container.yml +405 -0
- data/spec/cassettes/test_setup/start_container.yml +235 -0
- data/spec/cassettes/test_setup/wait_on_container.yml +63 -0
- data/spec/docker/api_spec.rb +37 -0
- data/spec/docker/connection_spec.rb +81 -0
- data/spec/docker/resource/container_spec.rb +288 -0
- data/spec/helpers.rb +48 -0
- data/spec/spec_helper.rb +31 -0
- metadata +361 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://10.0.5.5:4243/containers/ps
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: !binary |-
|
14
|
+
T0s=
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
YXBwbGljYXRpb24vanNvbg==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTo0MSBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary |-
|
28
|
+
W3siSWQiOiIwMTkzMzZlMTdkZDNjYjI3MWE5ZjA4ZDg2OTMxMWM5MzAwMTdi
|
29
|
+
OWE1ZjBiNDBlZjFkYTE1ZjU2YTFlMGE5YzRlIiwiSW1hZ2UiOiJiYXNlOmxh
|
30
|
+
dGVzdCIsIkNvbW1hbmQiOiIvYmluL3NoIC1jIHdoaWxlIHRydWU7IGRvIGVj
|
31
|
+
aG8gaGVsbG8gd29ybGQ7IHNsZWVwIDE7IGRvbmUiLCJDcmVhdGVkIjoxMzY5
|
32
|
+
NDk3MjA1LCJTdGF0dXMiOiJVcCAxMiBtaW51dGVzIiwiUG9ydHMiOiIifSx7
|
33
|
+
IklkIjoiNjhjZmU1YjJjZTYwMGQ4MGFkY2I0ZmU2NmFkOWMwYzhhYzEyYjhk
|
34
|
+
OWNhNjhjOWFjZmEyNmU3OGM2ZGZjMzgzNSIsIkltYWdlIjoiYmFzZTpsYXRl
|
35
|
+
c3QiLCJDb21tYW5kIjoiL2Jpbi9zaCAtYyB3aGlsZSB0cnVlOyBkbyBlY2hv
|
36
|
+
IGhlbGxvIHdvcmxkOyBzbGVlcCAxOyBkb25lIiwiQ3JlYXRlZCI6MTM2OTQ5
|
37
|
+
NjY4MywiU3RhdHVzIjoiVXAgMjAgbWludXRlcyIsIlBvcnRzIjoiIn1d
|
38
|
+
http_version:
|
39
|
+
recorded_at: Sat, 25 May 2013 16:05:43 GMT
|
40
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,105 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://10.0.5.5:4243/containers/ps?all=true
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: !binary |-
|
14
|
+
T0s=
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
YXBwbGljYXRpb24vanNvbg==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTo0MCBHTVQ=
|
22
|
+
!binary "VHJhbnNm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iYmFzZTpsYXRlc3QiLCJDb21tYW5kIjoiZWNobyBoZWxs
|
101
|
+
byB3b3JsZCIsIkNyZWF0ZWQiOjEzNjk0OTU5NjgsIlN0YXR1cyI6IkV4aXQg
|
102
|
+
MCIsIlBvcnRzIjoiIn1d
|
103
|
+
http_version:
|
104
|
+
recorded_at: Sat, 25 May 2013 16:05:43 GMT
|
105
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/b8439f302512/start
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 204
|
13
|
+
message: !binary |-
|
14
|
+
Tm8gQ29udGVudA==
|
15
|
+
headers:
|
16
|
+
!binary "RGF0ZQ==":
|
17
|
+
- !binary |-
|
18
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTo0MSBHTVQ=
|
19
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
20
|
+
- !binary |-
|
21
|
+
Y2h1bmtlZA==
|
22
|
+
!binary "Q29udGVudC1UeXBl":
|
23
|
+
- !binary |-
|
24
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary ""
|
28
|
+
http_version:
|
29
|
+
recorded_at: Sat, 25 May 2013 16:05:43 GMT
|
30
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://10.0.5.5:4243/invalid_path
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 404
|
13
|
+
message: !binary |-
|
14
|
+
Tm90IEZvdW5k
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTo0MCBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary |-
|
28
|
+
NDA0IHBhZ2Ugbm90IGZvdW5kCg==
|
29
|
+
http_version:
|
30
|
+
recorded_at: Sat, 25 May 2013 16:05:43 GMT
|
31
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://10.0.5.5:4243/pseudo_params?first=argument&second=param
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 404
|
13
|
+
message: !binary |-
|
14
|
+
Tm90IEZvdW5k
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTo0MCBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary |-
|
28
|
+
NDA0IHBhZ2Ugbm90IGZvdW5kCg==
|
29
|
+
http_version:
|
30
|
+
recorded_at: Sat, 25 May 2013 16:05:43 GMT
|
31
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://10.0.5.5:4243/pseudo_request
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 404
|
15
|
+
message: !binary |-
|
16
|
+
Tm90IEZvdW5k
|
17
|
+
headers:
|
18
|
+
!binary "Q29udGVudC1UeXBl":
|
19
|
+
- !binary |-
|
20
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
21
|
+
!binary "RGF0ZQ==":
|
22
|
+
- !binary |-
|
23
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTo0MCBHTVQ=
|
24
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
25
|
+
- !binary |-
|
26
|
+
Y2h1bmtlZA==
|
27
|
+
body:
|
28
|
+
encoding: ASCII-8BIT
|
29
|
+
string: !binary |-
|
30
|
+
NDA0IHBhZ2Ugbm90IGZvdW5kCg==
|
31
|
+
http_version:
|
32
|
+
recorded_at: Sat, 25 May 2013 16:05:43 GMT
|
33
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://10.0.5.5:4243/containers/8fab97b08092/changes
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: !binary |-
|
14
|
+
T0s=
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
YXBwbGljYXRpb24vanNvbg==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTozMyBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary |-
|
28
|
+
W3siUGF0aCI6Ii9kZXYiLCJLaW5kIjowfSx7IlBhdGgiOiIvZGV2L2ttc2ci
|
29
|
+
LCJLaW5kIjoxfSx7IlBhdGgiOiIvdG1wIiwiS2luZCI6MH0seyJQYXRoIjoi
|
30
|
+
L3RtcC9jaGFuZ2VzIiwiS2luZCI6MX1d
|
31
|
+
http_version:
|
32
|
+
recorded_at: Sat, 25 May 2013 16:05:35 GMT
|
33
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/create
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"PortSpecs":"443","Cmd":["echo","hello world"],"Image":"base"}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 500
|
15
|
+
message: !binary |-
|
16
|
+
SW50ZXJuYWwgU2VydmVyIEVycm9y
|
17
|
+
headers:
|
18
|
+
!binary "Q29udGVudC1UeXBl":
|
19
|
+
- !binary |-
|
20
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
21
|
+
!binary "RGF0ZQ==":
|
22
|
+
- !binary |-
|
23
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTozMSBHTVQ=
|
24
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
25
|
+
- !binary |-
|
26
|
+
Y2h1bmtlZA==
|
27
|
+
body:
|
28
|
+
encoding: ASCII-8BIT
|
29
|
+
string: !binary |-
|
30
|
+
anNvbjogY2Fubm90IHVubWFyc2hhbCBzdHJpbmcgaW50byBHbyB2YWx1ZSBv
|
31
|
+
ZiB0eXBlIFtdc3RyaW5nCg==
|
32
|
+
http_version:
|
33
|
+
recorded_at: Sat, 25 May 2013 16:05:33 GMT
|
34
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/create
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"Hostname":"test-container","User":"test","Memory":33554432,"MemorySwap":67108864,"CpuShares":1,"AttachStdin":false,"AttachStdout":true,"AttachStderr":true,"PortSpecs":["80","443"],"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["PORT=5000","ENVIRONTMENT=production"],"Dns":null,"Volumes":{"/var/lib/app":{}},"VolumesFrom":"","Cmd":["echo","hello
|
9
|
+
world"],"Image":"base"}'
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
response:
|
14
|
+
status:
|
15
|
+
code: 201
|
16
|
+
message: !binary |-
|
17
|
+
Q3JlYXRlZA==
|
18
|
+
headers:
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTozMSBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
!binary "Q29udGVudC1UeXBl":
|
26
|
+
- !binary |-
|
27
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
28
|
+
body:
|
29
|
+
encoding: ASCII-8BIT
|
30
|
+
string: !binary |-
|
31
|
+
eyJJZCI6IjRhZGFlNDFmNGRkYiIsIldhcm5pbmdzIjpbIllvdXIga2VybmVs
|
32
|
+
IGRvZXMgbm90IHN1cHBvcnQgbWVtb3J5IHN3YXAgY2FwYWJpbGl0aWVzLiBM
|
33
|
+
aW1pdGF0aW9uIGRpc2NhcmRlZC4iXX0=
|
34
|
+
http_version:
|
35
|
+
recorded_at: Sat, 25 May 2013 16:05:33 GMT
|
36
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/create
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"Cmd":["/bin/sh","-c","while true; do echo hello world; sleep 1;
|
9
|
+
done"],"Image":"base"}'
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
response:
|
14
|
+
status:
|
15
|
+
code: 201
|
16
|
+
message: !binary |-
|
17
|
+
Q3JlYXRlZA==
|
18
|
+
headers:
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTozMSBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
!binary "Q29udGVudC1UeXBl":
|
26
|
+
- !binary |-
|
27
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
28
|
+
body:
|
29
|
+
encoding: ASCII-8BIT
|
30
|
+
string: !binary |-
|
31
|
+
eyJJZCI6ImE4ZWIzNTUyZjIwMyIsIldhcm5pbmdzIjpudWxsfQ==
|
32
|
+
http_version:
|
33
|
+
recorded_at: Sat, 25 May 2013 16:05:33 GMT
|
34
|
+
recorded_with: VCR 2.5.0
|
data/spec/cassettes/Docker_Resource_Container/kill/raises_an_exception_for_an_unknow_container.yml
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://10.0.5.5:4243/containers/invalid_id/kill
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 404
|
13
|
+
message: !binary |-
|
14
|
+
Tm90IEZvdW5k
|
15
|
+
headers:
|
16
|
+
!binary "Q29udGVudC1UeXBl":
|
17
|
+
- !binary |-
|
18
|
+
dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA==
|
19
|
+
!binary "RGF0ZQ==":
|
20
|
+
- !binary |-
|
21
|
+
U2F0LCAyNSBNYXkgMjAxMyAxNjowNTozMSBHTVQ=
|
22
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
23
|
+
- !binary |-
|
24
|
+
Y2h1bmtlZA==
|
25
|
+
body:
|
26
|
+
encoding: ASCII-8BIT
|
27
|
+
string: !binary |-
|
28
|
+
Tm8gc3VjaCBjb250YWluZXI6IGludmFsaWRfaWQK
|
29
|
+
http_version:
|
30
|
+
recorded_at: Sat, 25 May 2013 16:05:34 GMT
|
31
|
+
recorded_with: VCR 2.5.0
|