1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[brightbox] Request test for snapshotting a server

This commit is contained in:
Paul Thornthwaite 2011-10-03 13:18:56 +01:00
parent d7fa80f702
commit 1bb1c049a0

View file

@ -58,6 +58,15 @@ Shindo.tests('Fog::Compute[:brightbox] | server requests', ['brightbox']) do
formats(Brightbox::Compute::Formats::Full::SERVER) { result }
end
tests("#snapshot_server('#{server_id}')") do
pending if Fog.mocking?
result = Fog::Compute[:brightbox].snapshot_server(server_id)
formats(Brightbox::Compute::Formats::Full::SERVER) { result }
snapshot_id = result["id"]
@snapshot = Fog::Compute[:brightbox].images.get(snapshot_id)
@snapshot.destroy
end
tests("#destroy_server('#{server_id}')") do
pending if Fog.mocking?
result = Fog::Compute[:brightbox].destroy_server(server_id)