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/security_group_tests.rb

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