incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1083756 - /incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb
Date Mon, 21 Mar 2011 12:22:29 GMT
Author: mfojtik
Date: Mon Mar 21 12:22:29 2011
New Revision: 1083756

URL: http://svn.apache.org/viewvc?rev=1083756&view=rev
Log:
Added unit tests to check features after driver switch

Modified:
    incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb

Modified: incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb?rev=1083756&r1=1083755&r2=1083756&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb Mon Mar 21 12:22:29 2011
@@ -100,5 +100,14 @@ module DeltacloudUnitTest
       last_response.status.should == 200
     end
 
+    def test_it_change_features_after_driver_change
+      do_xml_request "/api;driver=ec2"
+      (last_xml_response/'api/link[@rel="instances"]/feature[@name="user_name"]').first.should
== nil
+      (last_xml_response/'api/link[@rel="instances"]/feature[@name="user_data"]').first.should_not
== nil
+      do_xml_request "/api;driver=mock"
+      (last_xml_response/'api/link[@rel="instances"]/feature[@name="user_name"]').first.should_not
== nil
+      (last_xml_response/'api/link[@rel="instances"]/feature[@name="user_data"]').first.should
== nil
+    end
+
   end
 end



Mime
View raw message