2013-10-14 00:50:11 +01:00
|
|
|
Shindo.tests('Compute::VcloudDirector | disk requests', ['vclouddirector']) do
|
|
|
|
|
|
|
|
@service = Fog::Compute::VcloudDirector.new
|
|
|
|
|
|
|
|
tests('#get_disks_from_query').data_matches_schema(VcloudDirector::Compute::Schema::CONTAINER_TYPE) do
|
|
|
|
pending if Fog.mocking?
|
|
|
|
@service.get_disks_from_query.body
|
|
|
|
end
|
|
|
|
|
2013-10-13 20:46:41 +01:00
|
|
|
tests('Retrieve non-existent Disk').raises(Fog::Compute::VcloudDirector::Forbidden) do
|
2013-10-14 00:50:11 +01:00
|
|
|
pending if Fog.mocking?
|
|
|
|
@service.get_disk('00000000-0000-0000-0000-000000000000')
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|