You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2012/08/16 12:05:39 UTC

[PATCH core 3/3] CIMI: Added unit tests for DTACLOUD-302

From: Michal Fojtik <mf...@redhat.com>


Signed-off-by: Michal fojtik <mf...@redhat.com>
---
 server/tests/cimi/collections/cloud_entry_point_test.rb |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/server/tests/cimi/collections/cloud_entry_point_test.rb b/server/tests/cimi/collections/cloud_entry_point_test.rb
index 3f60d0d..3a01fb7 100644
--- a/server/tests/cimi/collections/cloud_entry_point_test.rb
+++ b/server/tests/cimi/collections/cloud_entry_point_test.rb
@@ -43,4 +43,13 @@ describe CIMI::Collections::CloudEntryPoint do
     status.must_equal 200
   end
 
+  it 'advertise only supported CIMI collections by driver' do
+    header 'X-Deltacloud-Driver', 'ec2'
+    get root_url + '/cloudEntryPoint'
+    (xml/'CloudEntryPoint/routingGroups').must_be_empty
+    header 'X-Deltacloud-Driver', 'mock'
+    get root_url + '/cloudEntryPoint'
+    (xml/'CloudEntryPoint/routingGroups').wont_be_empty
+  end
+
 end
-- 
1.7.10.2