1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

ensuring tests are good for empty orgs and are skipped when mocking

This commit is contained in:
Dan Abel 2013-10-07 17:10:13 +01:00
parent d8be4421bc
commit 91bec6fe30
2 changed files with 4 additions and 2 deletions

View file

@ -43,6 +43,8 @@ Shindo.tests('Compute::VcloudDirector | edge gateway requests', ['vclouddirector
tests('Retrieve non-existent edge gateway').raises(Excon::Errors::Forbidden) do tests('Retrieve non-existent edge gateway').raises(Excon::Errors::Forbidden) do
pending if Fog.mocking?
@service.get_edge_gateway('00000000-0000-0000-0000-000000000000') @service.get_edge_gateway('00000000-0000-0000-0000-000000000000')
end end

View file

@ -316,7 +316,7 @@ class VcloudDirector
:IsEnabled => String, :IsEnabled => String,
:DefaultAction => String, :DefaultAction => String,
:LogDefaultAction => String, :LogDefaultAction => String,
:FirewallRule => [FIREWALL_RULE_TYPE] #:FirewallRule => [FIREWALL_RULE_TYPE] # not required
} }
#Represents the SNAT and DNAT rules. #Represents the SNAT and DNAT rules.
@ -344,7 +344,7 @@ class VcloudDirector
:IsEnabled => String, :IsEnabled => String,
:NatType => Fog::Nullable::String, :NatType => Fog::Nullable::String,
:Policy => Fog::Nullable::String, :Policy => Fog::Nullable::String,
:NatRule => [NAT_RULE_TYPE], #:NatRule => [NAT_RULE_TYPE], # not required
:ExternalIp => Fog::Nullable::String :ExternalIp => Fog::Nullable::String
} }