deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject [5/14] git commit: * tests/cimi/cep_test.rb: simplify/correct test for Accept: */*
Date Tue, 11 Dec 2012 03:48:25 GMT
* tests/cimi/cep_test.rb: simplify/correct test for Accept: */*


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

Branch: refs/heads/master
Commit: f715fa67f346a85a5d0f66f23975d76a5b8bbd3d
Parents: 3262537
Author: David Lutterkort <lutter@redhat.com>
Authored: Tue Dec 4 22:07:07 2012 -0800
Committer: David Lutterkort <lutter@redhat.com>
Committed: Mon Dec 10 17:08:49 2012 -0800

----------------------------------------------------------------------
 tests/cimi/cep_test.rb |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/f715fa67/tests/cimi/cep_test.rb
----------------------------------------------------------------------
diff --git a/tests/cimi/cep_test.rb b/tests/cimi/cep_test.rb
index fcac30d..24e19bf 100644
--- a/tests/cimi/cep_test.rb
+++ b/tests/cimi/cep_test.rb
@@ -66,7 +66,8 @@ class CloundEntryPointBehavior < CIMI::Test::Spec
 
   query_the_cep(ROOTS)
 
-  # Testing "*/*" Accept Headers returns json output
-  response = RestClient.get(api.cep_url, "Accept" => "*/*")
-  log.info( " */* accept headers return: " + response.json.to_s() )
+  it "should handle Accept of */*", :only => :json do
+    response = RestClient.get(api.cep_url, "Accept" => "*/*")
+    response.content_type.must_be_one_of CONTENT_TYPES.values
+  end
 end


Mime
View raw message