incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r962203 - in /incubator/deltacloud/trunk/client/specs: initialization_spec.rb storage_snapshot_spec.rb storage_volume_spec.rb
Date Thu, 08 Jul 2010 23:36:26 GMT
Author: lutter
Date: Thu Jul  8 23:36:26 2010
New Revision: 962203

URL: http://svn.apache.org/viewvc?rev=962203&view=rev
Log:
Adjust tests to change in URL structure

We changed storage/snapshots and storage/volumes to storage_snapshots and
storage_volumes respectively.

Modified:
    incubator/deltacloud/trunk/client/specs/initialization_spec.rb
    incubator/deltacloud/trunk/client/specs/storage_snapshot_spec.rb
    incubator/deltacloud/trunk/client/specs/storage_volume_spec.rb

Modified: incubator/deltacloud/trunk/client/specs/initialization_spec.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/client/specs/initialization_spec.rb?rev=962203&r1=962202&r2=962203&view=diff
==============================================================================
--- incubator/deltacloud/trunk/client/specs/initialization_spec.rb (original)
+++ incubator/deltacloud/trunk/client/specs/initialization_spec.rb Thu Jul  8 23:36:26 2010
@@ -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
 

Modified: incubator/deltacloud/trunk/client/specs/storage_snapshot_spec.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/client/specs/storage_snapshot_spec.rb?rev=962203&r1=962202&r2=962203&view=diff
==============================================================================
--- incubator/deltacloud/trunk/client/specs/storage_snapshot_spec.rb (original)
+++ incubator/deltacloud/trunk/client/specs/storage_snapshot_spec.rb Thu Jul  8 23:36:26 2010
@@ -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

Modified: incubator/deltacloud/trunk/client/specs/storage_volume_spec.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/client/specs/storage_volume_spec.rb?rev=962203&r1=962202&r2=962203&view=diff
==============================================================================
--- incubator/deltacloud/trunk/client/specs/storage_volume_spec.rb (original)
+++ incubator/deltacloud/trunk/client/specs/storage_volume_spec.rb Thu Jul  8 23:36:26 2010
@@ -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



Mime
View raw message