mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
29 lines
No EOL
747 B
Ruby
29 lines
No EOL
747 B
Ruby
Shindo.tests('Fog::Compute[:cloudstack] | security group requests', ['cloudstack']) do
|
|
|
|
@security_groups_format = {
|
|
'listsecuritygroupsresponse' => {
|
|
'count' => Integer,
|
|
'securitygroup' => [
|
|
'id' => Integer,
|
|
'account' => String,
|
|
'description' => Fog::Nullable::String,
|
|
'domain' => String,
|
|
'domainid' => Integer,
|
|
'jobid' => Fog::Nullable::Integer,
|
|
'jobstatus' => Fog::Nullable::String,
|
|
'name' => String,
|
|
'ingressrule' => Fog::Nullable::Array
|
|
]
|
|
}
|
|
}
|
|
|
|
tests('success') do
|
|
|
|
tests('#list_security_groups').formats(@security_groups_format) do
|
|
pending if Fog.mocking?
|
|
Fog::Compute[:cloudstack].list_security_groups
|
|
end
|
|
|
|
end
|
|
|
|
end |