mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
39 lines
1 KiB
Ruby
39 lines
1 KiB
Ruby
|
Shindo.tests('Fog::Compute[:cloudstack] | public ip address requests', ['cloudstack']) do
|
||
|
|
||
|
@public_ip_addresses_format = {
|
||
|
'listpublicipaddressesresponse' => {
|
||
|
'count' => Integer,
|
||
|
'publicipaddress' => [
|
||
|
'id' => String,
|
||
|
'ipaddress' => String,
|
||
|
'allocated' => String,
|
||
|
'zoneid' => String,
|
||
|
'zonename' => String,
|
||
|
'issourcenat' => Fog::Boolean,
|
||
|
'projectid' => String,
|
||
|
'project' => String,
|
||
|
'domainid' => String,
|
||
|
'domain' => String,
|
||
|
'forvirtualnetwork' => Fog::Boolean,
|
||
|
'isstaticnat' => Fog::Boolean,
|
||
|
'issystem' => Fog::Boolean,
|
||
|
'associatednetworkid' => String,
|
||
|
'associatednetworkname' => String,
|
||
|
'networkid' => String,
|
||
|
'state' => String,
|
||
|
'physicalnetworkid' => String,
|
||
|
'tags' => Fog::Nullable::Array
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
|
||
|
tests('success') do
|
||
|
|
||
|
tests('#list_public_ip_addresses').formats(@public_ip_addresses_format) do
|
||
|
Fog::Compute[:cloudstack].list_public_ip_addresses
|
||
|
end
|
||
|
|
||
|
end
|
||
|
|
||
|
end
|