1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/fogdocker/requests/compute/container_commit_tests.rb
Paul Thornthwaite 2e0b7e545a Standardise empty lines throughout codebase
Done with `rubocop --auto-correct --only EmptyLineBetweenDefs,EmptyLines,EmptyLinesAroundBody`
2014-05-26 14:20:02 +01:00

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