2011-10-05 05:58:50 -04:00
|
|
|
Shindo.tests("Vcloud::Compute | organization", ['vcloud']) do
|
|
|
|
|
2011-12-12 19:33:51 -05:00
|
|
|
pending if Fog.mocking?
|
|
|
|
|
2011-10-05 05:58:50 -04:00
|
|
|
instance = Fog::Vcloud::Compute.new(:vcloud_host => 'vcloud.example.com', :vcloud_username => 'username', :vcloud_password => 'password').organizations.first
|
|
|
|
instance.reload
|
|
|
|
|
|
|
|
tests("#href").returns('https://vcloud.example.com/api/v1.0/org/1'){ instance.href }
|
|
|
|
tests("#name").returns('Org1'){ instance.name }
|
|
|
|
tests("#full_name").returns('My Full Name'){ instance.full_name }
|
|
|
|
tests("#description").returns("Some fancy\n\nDescription"){ instance.description }
|
|
|
|
|
|
|
|
end
|