Skip to content

Instantly share code, notes, and snippets.

@rubiojr
Created April 5, 2013 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubiojr/5318061 to your computer and use it in GitHub Desktop.
Save rubiojr/5318061 to your computer and use it in GitHub Desktop.
diff --git a/tests/openstack/requests/compute/volume_tests.rb b/tests/openstack/requests/compute/volume_tests.rb
index e08755e..c674904 100644
--- a/tests/openstack/requests/compute/volume_tests.rb
+++ b/tests/openstack/requests/compute/volume_tests.rb
@@ -4,20 +4,21 @@ Shindo.tests('Fog::Compute[:openstack] | volume requests', ['openstack']) do
@volume_format = {
'id' => String,
- 'name' => String,
+ 'displayName' => String,
'size' => Integer,
- 'description' => String,
+ 'displayDescription' => Fog::Nullable::String,
'status' => String,
- 'snapshot_id' => Fog::Nullable::String,
- 'availability_zone' => String,
+ 'snapshotId' => Fog::Nullable::String,
+ 'availabilityZone' => String,
'attachments' => Array,
- 'volume_type' => Fog::Nullable::String,
- 'created_at' => Time
+ 'volumeType' => Fog::Nullable::String,
+ 'createdAt' => String,
+ 'metadata' => Hash
}
tests('success') do
tests('#create_volume').formats({'volume' => @volume_format}) do
- pending unless Fog.mocking?
+ #pending unless Fog.mocking?
Fog::Compute[:openstack].create_volume('loud', 'this is a loud volume', 3).body
end
@@ -26,13 +27,13 @@ Shindo.tests('Fog::Compute[:openstack] | volume requests', ['openstack']) do
end
tests('#get_volume_detail').formats({'volume' => @volume_format}) do
- pending unless Fog.mocking?
+ #pending unless Fog.mocking?
volume_id = Fog::Compute[:openstack].volumes.all.first.id
Fog::Compute[:openstack].get_volume_details(volume_id).body
end
tests('#delete_volume').succeeds do
- pending unless Fog.mocking?
+ #pending unless Fog.mocking?
volume_id = Fog::Compute[:openstack].volumes.all.first.id
Fog::Compute[:openstack].delete_volume(volume_id)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment