You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by lu...@redhat.com on 2012/12/06 03:42:49 UTC
[PATCH 05/13] * tests/cimi/cep_test.rb: remove duplicate tests and assertions not required by CIMI
From: David Lutterkort <lu...@redhat.com>
---
tests/cimi/cep_test.rb | 26 ++------------------------
1 files changed, 2 insertions(+), 24 deletions(-)
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
-
--
1.7.7.6