From: David Lutterkort lutter@redhat.com
We changed storage/snapshots and storage/volumes to storage_snapshots and storage_volumes respectively. --- client/specs/initialization_spec.rb | 4 ++-- client/specs/storage_snapshot_spec.rb | 4 ++-- client/specs/storage_volume_spec.rb | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/client/specs/initialization_spec.rb b/client/specs/initialization_spec.rb index 386eb9e..6fcf1a4 100644 --- a/client/specs/initialization_spec.rb +++ b/client/specs/initialization_spec.rb @@ -31,8 +31,8 @@ describe "initializing the client" do client.entry_points[:flavors].should eql( "#{API_URL}/flavors" ) client.entry_points[:images].should eql( "#{API_URL}/images" ) client.entry_points[:instances].should eql( "#{API_URL}/instances" ) - client.entry_points[:storage_volumes].should eql( "#{API_URL}/storage/volumes" ) - client.entry_points[:storage_snapshots].should eql( "#{API_URL}/storage/snapshots" ) + client.entry_points[:storage_volumes].should eql( "#{API_URL}/storage_volumes" ) + client.entry_points[:storage_snapshots].should eql( "#{API_URL}/storage_snapshots" ) end end
diff --git a/client/specs/storage_snapshot_spec.rb b/client/specs/storage_snapshot_spec.rb index 7a9eb40..cba5351 100644 --- a/client/specs/storage_snapshot_spec.rb +++ b/client/specs/storage_snapshot_spec.rb @@ -49,7 +49,7 @@ describe "storage snapshot" do it "should allow fetching of storage volume by URI" do client = DeltaCloud.new( API_NAME, API_PASSWORD, API_URL ) client.connect do |client| - storage_snapshot = client.fetch_storage_snapshot( API_URL + '/storage/snapshots/snap2' ) + storage_snapshot = client.fetch_storage_snapshot( API_URL + '/storage_snapshots/snap2' ) storage_snapshot.should_not be_nil storage_snapshot.id.should eql( 'snap2' ) storage_snapshot.storage_volume.capacity.should eql( 1.0 ) @@ -68,7 +68,7 @@ describe "storage snapshot" do it "should return nil for unknown storage volume by URI" do client = DeltaCloud.new( API_NAME, API_PASSWORD, API_URL ) client.connect do |client| - storage_snapshot = client.fetch_storage_snapshot( API_URL + '/storage/snapshots/bogus' ) + storage_snapshot = client.fetch_storage_snapshot( API_URL + '/storage_snapshots/bogus' ) storage_snapshot.should be_nil end end diff --git a/client/specs/storage_volume_spec.rb b/client/specs/storage_volume_spec.rb index 7c5ced1..204e2b7 100644 --- a/client/specs/storage_volume_spec.rb +++ b/client/specs/storage_volume_spec.rb @@ -40,7 +40,7 @@ describe "storage volumes" do client.connect do |client| storage_volume = client.storage_volume( 'vol3' ) storage_volume.id.should eql( 'vol3' ) - storage_volume.uri.should eql( API_URL + '/storage/volumes/vol3' ) + storage_volume.uri.should eql( API_URL + '/storage_volumes/vol3' ) storage_volume.state.should eql( 'IN-USE' ) storage_volume.capacity.should eql( 1.0 ) storage_volume.device.should eql( '/dev/sda1' ) @@ -53,10 +53,10 @@ describe "storage volumes" do it "should allow fetching of storage volume by URI" do client = DeltaCloud.new( API_NAME, API_PASSWORD, API_URL ) client.connect do |client| - storage_volume = client.fetch_storage_volume( API_URL + '/storage/volumes/vol3' ) + storage_volume = client.fetch_storage_volume( API_URL + '/storage_volumes/vol3' ) storage_volume.should_not be_nil storage_volume.id.should eql( 'vol3' ) - storage_volume.uri.should eql( API_URL + '/storage/volumes/vol3' ) + storage_volume.uri.should eql( API_URL + '/storage_volumes/vol3' ) storage_volume.state.should eql( 'IN-USE' ) storage_volume.capacity.should eql( 1.0 ) storage_volume.device.should eql( '/dev/sda1' ) @@ -77,7 +77,7 @@ describe "storage volumes" do it "should return nil for unknown storage volume by URI" do client = DeltaCloud.new( API_NAME, API_PASSWORD, API_URL ) client.connect do |client| - storage_volume = client.fetch_storage_volume( API_URL + '/storage/volumes/bogus' ) + storage_volume = client.fetch_storage_volume( API_URL + '/storage_volumes/bogus' ) storage_volume.should be_nil end end