2011-06-16 19:28:54 -04:00
|
|
|
Shindo.tests('Fog::Compute[:ninefold] | list only requests', ['ninefold']) do
|
2011-05-05 18:59:50 -04:00
|
|
|
|
|
|
|
tests('success') do
|
|
|
|
|
|
|
|
tests("#list_accounts()").formats(Ninefold::Compute::Formats::Lists::ACCOUNTS) do
|
|
|
|
pending if Fog.mocking?
|
2011-06-16 19:28:54 -04:00
|
|
|
Fog::Compute[:ninefold].list_accounts
|
2011-05-05 18:59:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
tests("#list_events()").formats(Ninefold::Compute::Formats::Lists::EVENTS) do
|
|
|
|
pending if Fog.mocking?
|
2011-06-16 19:28:54 -04:00
|
|
|
Fog::Compute[:ninefold].list_events
|
2011-05-05 18:59:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
tests("#list_service_offerings()").formats(Ninefold::Compute::Formats::Lists::SERVICE_OFFERINGS) do
|
|
|
|
pending if Fog.mocking?
|
2011-06-16 19:28:54 -04:00
|
|
|
Fog::Compute[:ninefold].list_service_offerings
|
2011-05-05 18:59:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
tests("#list_disk_offerings()").formats(Ninefold::Compute::Formats::Lists::DISK_OFFERINGS) do
|
|
|
|
pending if Fog.mocking?
|
2011-06-16 19:28:54 -04:00
|
|
|
Fog::Compute[:ninefold].list_disk_offerings
|
2011-05-05 18:59:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
tests("#list_capabilities()").formats(Ninefold::Compute::Formats::Lists::CAPABILITIES) do
|
|
|
|
pending if Fog.mocking?
|
2011-06-16 19:28:54 -04:00
|
|
|
Fog::Compute[:ninefold].list_capabilities
|
2011-05-05 18:59:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
tests("#list_hypervisors()").formats(Ninefold::Compute::Formats::Lists::HYPERVISORS) do
|
|
|
|
pending if Fog.mocking?
|
2011-06-16 19:28:54 -04:00
|
|
|
Fog::Compute[:ninefold].list_hypervisors
|
2011-05-05 18:59:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
tests("#list_zones()").formats(Ninefold::Compute::Formats::Lists::ZONES) do
|
|
|
|
pending if Fog.mocking?
|
2011-06-16 19:28:54 -04:00
|
|
|
Fog::Compute[:ninefold].list_zones
|
2011-05-05 18:59:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
tests("#list_network_offerings()").formats(Ninefold::Compute::Formats::Lists::NETWORK_OFFERINGS) do
|
|
|
|
pending if Fog.mocking?
|
2011-06-16 19:28:54 -04:00
|
|
|
Fog::Compute[:ninefold].list_network_offerings
|
2011-05-05 18:59:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
tests("#list_resource_limits()").formats(Ninefold::Compute::Formats::Lists::RESOURCE_LIMITS) do
|
|
|
|
pending if Fog.mocking?
|
2011-06-16 19:28:54 -04:00
|
|
|
Fog::Compute[:ninefold].list_resource_limits
|
2011-05-05 18:59:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
tests('failure') do
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|