From: Ronelle Landy <[email protected]>
---
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