deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject [4/5] git commit: CIMI tests (system1_test): less noisy output; small simplification
Date Thu, 25 Apr 2013 00:10:21 GMT
CIMI tests (system1_test): less noisy output; small simplification


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

Branch: refs/heads/master
Commit: 157117880ad26085df48d10d9bcb4f39d5e8b06e
Parents: 119a7e1
Author: David Lutterkort <lutter@redhat.com>
Authored: Wed Apr 24 14:04:57 2013 -0700
Committer: David Lutterkort <lutter@redhat.com>
Committed: Wed Apr 24 14:04:57 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/15711788/tests/cimi/system1_test.rb
----------------------------------------------------------------------
diff --git a/tests/cimi/system1_test.rb b/tests/cimi/system1_test.rb
index 6c91ba7..b3681bf 100644
--- a/tests/cimi/system1_test.rb
+++ b/tests/cimi/system1_test.rb
@@ -62,7 +62,7 @@ class SystemTemplate < CIMI::Test::Spec
       model.attribute_values[r][0].id.must_be_uri
 
        # 1.3 Select or Create a System Template
-       puts "System Template: " + get_a(cep_json, "systemTemplate")
+       log.info "Picked SystemTemplate " + get_a(cep_json, "systemTemplate")
      end
   rescue RuntimeError =>e
   end
@@ -98,11 +98,10 @@ class SystemTemplate < CIMI::Test::Spec
 
   # 1.5 Query the new System
   it "should return a representation of a system", :only => :json do
-    puts fetch(system_created.headers[:location]).id
-    #test_system_created
-    test_system_created = get(fetch(system_created.headers[:location]).id, :accept =>
:json)
-    test_system_created.code.must_equal 200
-    test_system_created.json["resourceURI"].must_equal RESOURCE_URI
+    test_system_created = fetch(system_created.headers[:location]).id
+    log.info "Created system #{test_system_created}"
+    last_response.code.must_equal 200
+    last_response.json["resourceURI"].must_equal RESOURCE_URI
   end
 
   # 1.6 Query the System SystemMachine collection


Mime
View raw message