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:
parent
d7fa80f702
commit
1bb1c049a0
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue