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/public_ip_address_tests.rb
2014-12-22 12:26:25 -05:00

38 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