You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2013/04/24 13:38:52 UTC

[2/3] git commit: CIMI tests: fix minor nits

CIMI tests: fix minor nits

Some of the XML sent to the server was not correct


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/bff00865
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/bff00865
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/bff00865

Branch: refs/heads/master
Commit: bff0086533ad17b00c802358718c848bc60f4564
Parents: 61b4643
Author: David Lutterkort <lu...@redhat.com>
Authored: Tue Apr 23 16:40:34 2013 -0700
Committer: marios <ma...@redhat.com>
Committed: Wed Apr 24 14:34:57 2013 +0300

----------------------------------------------------------------------
 tests/cimi/system1_test.rb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/bff00865/tests/cimi/system1_test.rb
----------------------------------------------------------------------
diff --git a/tests/cimi/system1_test.rb b/tests/cimi/system1_test.rb
index 6102c37..6371653 100644
--- a/tests/cimi/system1_test.rb
+++ b/tests/cimi/system1_test.rb
@@ -71,10 +71,10 @@ class SystemTemplate < CIMI::Test::Spec
     system_add_uri = discover_uri_for("add", "systems")
   # 1.4 Create a new system from the systemTemplate
     system_created = post(system_add_uri,
-      "<systemCreate xmlns=\"#{CIMI::Test::CIMI_NAMESPACE}\">" +
+      "<SystemCreate xmlns=\"#{CIMI::Test::CIMI_NAMESPACE}\">" +
       "<name>test_system</name>" +
       "<systemTemplate href=\"" + get_a(cep_json, "systemTemplate") + "\"/>" +
-      "</systemCreate>", :content_type => :xml)
+      "</SystemCreate>", :content_type => :xml)
   end
 
   model :systems do |fmt|
@@ -137,7 +137,7 @@ class SystemTemplate < CIMI::Test::Spec
       uri = discover_uri_for("start", "", test_system_created.json["operations"])
       response = post( uri,
             "<Action xmlns=\"http://schemas.dmtf.org/cimi/1\">" +
-              "<action> http://http://schemas.dmtf.org/cimi/1/action/start</action>" +
+              "<action>http://schemas.dmtf.org/cimi/1/action/start</action>" +
             "</Action>",
             :accept => :xml, :content_type => :xml)
       response.code.must_equal 202