deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rla...@redhat.com
Subject [PATCH] CIMI - tests changing volume_attach to use post, following tracker set 166
Date Fri, 30 Nov 2012 06:24:01 GMT
From: Ronelle Landy <rlandy@redhat.com>

---
 tests/cimi/part4_test.rb |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/cimi/part4_test.rb b/tests/cimi/part4_test.rb
index e5c1433..69e92d0 100644
--- a/tests/cimi/part4_test.rb
+++ b/tests/cimi/part4_test.rb
@@ -116,7 +116,7 @@ class AddVolumeToMachine < CIMI::Test::Spec
   log.info(volume.json["id"].to_s() + " is the volume id")
 
   model :machineWithVolume, :only => :xml do
-    RestClient.put(machine.json["id"] + "/volume_attach",
+    RestClient.post(machine.json["id"] + "/volume_attach",
     "<MachineVolume xmlns=\"http://schemas.dmtf.org/cimi/1/MachineVolume\">" +
     "<initialLocation>/dev/sdf</initialLocation>" +
     "<volume href=\"" + volume.json["id"] + "\"/>" +
@@ -129,8 +129,7 @@ class AddVolumeToMachine < CIMI::Test::Spec
     last_response.code.must_equal 201
   end
 
-  it "should have delete and edit operations", :only => :xml do
-    # no edit
+  it "should have a delete operation", :only => :xml do
     machineWithVolume[:operations][0][0].must_include "delete"
   end
 
-- 
1.7.7.6


Mime
View raw message