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

32 lines
742 B
Ruby
Raw Normal View History

2011-10-10 00:37:26 -04:00
Shindo.tests('Fog::Compute[:cloudstack] | snapshot requests', ['cloudstack']) do
@snapshots_format = {
'listsnapshotsresponse' => {
'count' => Integer,
'snapshot' => [
'id' => Integer,
'account' => String,
'domainid' => Integer,
'domain' => String,
'snapshottype' => String,
'volumeid' => Integer,
'volumename' => String,
'volumetype' => String,
'created' => String,
'name' => String,
'intervaltype' => String,
'state' => String
]
}
}
tests('success') do
tests('#list_snapshots').formats(@snapshots_format) do
pending if Fog.mocking?
Fog::Compute[:cloudstack].list_snapshots
end
end
end