mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
33 lines
924 B
Ruby
33 lines
924 B
Ruby
Shindo.tests('Fog::Compute[:cloudstack] | port forwarding rule requests', ['cloudstack']) do
|
|
|
|
@port_forwarding_rule_format = {
|
|
'listportforwardingrulesresponse' => {
|
|
'count' => Integer,
|
|
'portforwardingrule' => [
|
|
'id' => String,
|
|
'privateport' => String,
|
|
'privateendport' => String,
|
|
'protocol' => String,
|
|
'publicport' => String,
|
|
'publicendport' => String,
|
|
'virtualmachineid' => String,
|
|
'virtualmachinename' => String,
|
|
'virtualmachinedisplayname' => String,
|
|
'ipaddressid' => String,
|
|
'ipaddress' => String,
|
|
'state' => String,
|
|
'cidrlist' => String,
|
|
'tags' => Fog::Nullable::Array
|
|
]
|
|
}
|
|
}
|
|
|
|
tests('success') do
|
|
|
|
tests('#list_port_forwarding_rules').formats(@port_forwarding_rule_format) do
|
|
Fog::Compute[:cloudstack].list_port_forwarding_rules('zoneid' => 1)
|
|
end
|
|
|
|
end
|
|
|
|
end
|