mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
32 lines
742 B
Ruby
32 lines
742 B
Ruby
|
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
|