2014-02-15 18:06:49 -05:00
|
|
|
Shindo.tests('Fog::Compute[:fogdocker] | container_delete request', ['fogdocker']) do
|
|
|
|
|
|
|
|
compute = Fog::Compute[:fogdocker]
|
2014-03-05 12:08:48 -05:00
|
|
|
container = compute.servers.create({'Image' => 'mattdm/fedora:f19',
|
|
|
|
'Cmd' => ['/bin/bash']})
|
2014-02-15 18:06:49 -05:00
|
|
|
|
|
|
|
tests('The response should') do
|
|
|
|
response = compute.container_delete(:id => container.id)
|
|
|
|
test('be a success') { response ? true: false }
|
|
|
|
end
|
|
|
|
|
|
|
|
tests('The expected options') do
|
|
|
|
raises(ArgumentError, 'raises ArgumentError when id option is missing') { compute.container_delete }
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|