You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by rl...@redhat.com on 2012/11/30 07:24:01 UTC
[PATCH] CIMI - tests changing volume_attach to use post, following tracker set 166
From: Ronelle Landy <rl...@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