mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
2e0b7e545a
Done with `rubocop --auto-correct --only EmptyLineBetweenDefs,EmptyLines,EmptyLinesAroundBody`
18 lines
611 B
Ruby
18 lines
611 B
Ruby
Shindo.tests("Fog::Compute[:fogdocker] | container_create request", 'fogdocker') do
|
|
|
|
compute = Fog::Compute[:fogdocker]
|
|
name_base = Time.now.to_i
|
|
hash = compute.container_create(:name => 'fog-'+name_base.to_s, 'image' => 'mattdm/fedora:f19','Cmd' => ['date'] )
|
|
response = {}
|
|
|
|
tests("Commit Container") do
|
|
response = compute.container_commit(:id=>hash['id'])
|
|
test("should have Image id") { response.include? 'id'}
|
|
end
|
|
|
|
test("Delete Commited Image") do
|
|
result = compute.image_delete(:id=>response['id'])
|
|
test("should have a deleted message") {result.include?('Deleted')}
|
|
end
|
|
|
|
end
|