deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject [7/14] git commit: * tests/cimi/cep_test.rb: remove duplicate tests and assertions not required by CIMI
Date Tue, 11 Dec 2012 03:48:25 GMT
* tests/cimi/cep_test.rb: remove duplicate tests and assertions not required by CIMI


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

Branch: refs/heads/master
Commit: d203c8d65abc8e4b04765957655749eb58dbd6f1
Parents: f72ea2d
Author: David Lutterkort <lutter@redhat.com>
Authored: Tue Dec 4 20:40:48 2012 -0800
Committer: David Lutterkort <lutter@redhat.com>
Committed: Mon Dec 10 17:08:48 2012 -0800

----------------------------------------------------------------------
 tests/cimi/cep_test.rb |   26 ++------------------------
 1 files changed, 2 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/d203c8d6/tests/cimi/cep_test.rb
----------------------------------------------------------------------
diff --git a/tests/cimi/cep_test.rb b/tests/cimi/cep_test.rb
index cc488a3..fcac30d 100644
--- a/tests/cimi/cep_test.rb
+++ b/tests/cimi/cep_test.rb
@@ -45,12 +45,9 @@ class CloundEntryPointBehavior < CIMI::Test::Spec
     cep(:accept => fmt)
   end
 
-  it "should have an id equal to the CEP URL" do
-    subject.id.must_equal api.cep_url
-  end
-
-  it "should have a baseURI" do
+  it "should have a valid baseURI" do
     subject.base_uri.must_be_uri
+    subject.base_uri.must_match %r{/$}
   end
 
   it "should have a name" do
@@ -72,23 +69,4 @@ class CloundEntryPointBehavior < CIMI::Test::Spec
   # Testing "*/*" Accept Headers returns json output
   response = RestClient.get(api.cep_url, "Accept" => "*/*")
   log.info( " */* accept headers return: " + response.json.to_s() )
-
-  it "should return json response", :only => "*/*" do
-    response.wont_be_nil
-    response.headers[:content_type].eql?("application/json")
-  end
-
-  it "should have a response code equal to 200", :only => "*/*" do
-    response.code.must_equal 200
-  end
-
-  it "should have an id equal to the CEP URL" , :only => "*/*" do
-    response.json["id"].must_equal api.cep_url
-  end
-
-  it "should have a baseURI" do
-    response.json["baseURI"].must_be_uri
-  end
-
 end
-


Mime
View raw message