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

[vcloud_director|tests] Fix some edge cases.

This commit is contained in:
Nick Osborn 2013-10-01 16:23:23 +01:00
parent 005293e69f
commit e94014d9c3
4 changed files with 6 additions and 5 deletions

View file

@ -26,7 +26,7 @@ def organizations
end
def organization
organizations.first
@organization ||= organizations.get_by_name(vcloud_director.org_name)
end
def catalogs

View file

@ -6,6 +6,7 @@ VCR.use_cassette(File.basename(__FILE__)) do
pending if Fog.mocking?
medias = vdc.medias
pending if medias.all.empty?
media = medias.first
tests('Compute::VcloudDirector | media') do

View file

@ -6,7 +6,7 @@ VCR.use_cassette(File.basename(__FILE__)) do
organizations = vcloud_director.organizations
tests("#There is at least one organization").returns(true) { organizations.size >= 1 }
org = organizations.first
org = organizations.get_by_name(vcloud_director.org_name)
tests("Compute::VcloudDirector | organization") do
tests("#name").returns(String) { org.name.class }

View file

@ -9,9 +9,9 @@ Shindo.tests('Compute::VcloudDirector | network requests', ['vclouddirector']) d
:is_inherited => Fog::Boolean,
:gateway => String,
:netmask => String,
:dns1 => String,
:dns2 => String,
:dns_suffix => String,
:dns1 => Fog::Nullable::String,
:dns2 => Fog::Nullable::String,
:dns_suffix => Fog::Nullable::String,
:ip_ranges => [{
:start_address => String,
:end_address => String