deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rla...@redhat.com
Subject [PATCH 1/4] CIMI: Tests - minor changes to support other providers
Date Wed, 20 Feb 2013 22:04:18 GMT
From: Ronelle Landy <rlandy@redhat.com>

---
 tests/cimi/part5_test.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/cimi/part5_test.rb b/tests/cimi/part5_test.rb
index 566ef26..8f2eea2 100644
--- a/tests/cimi/part5_test.rb
+++ b/tests/cimi/part5_test.rb
@@ -79,7 +79,7 @@ class ManipulateAMachine < CIMI::Test::Spec
   end
 
   it "should have a valid state" do
-    s = Set.new ["RUNNING", "NEW", "PAUSED", "STOPPED", "STARTED"]
+    s = Set.new ["RUNNING", "NEW", "PAUSED", "STOPPED", "STARTED", "CREATING"]
     log.info("machine state: " + machine.state.upcase)
     s.must_include machine.state.upcase
   end
@@ -109,7 +109,7 @@ class ManipulateAMachine < CIMI::Test::Spec
       assert_silent { discover_uri_for("stop","", machine.operations) }
       assert_silent { discover_uri_for("capture","", machine.operations) }
     elsif machine.state.upcase.eql?("STOPPED")
-      assert_silent { discover_uri_for(/\/start/,"", machine.operations) }
+      assert_silent { discover_uri_for("start","", machine.operations) }
       assert_silent  { discover_uri_for("delete","", machine.operations) }
       assert_silent { discover_uri_for("capture","", machine.operations) }
     else
-- 
1.7.7.6


Mime
View raw message