You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2011/08/09 22:41:49 UTC
svn commit: r1155556 - in /incubator/deltacloud/trunk:
server/tests/drivers/mock/api_test.rb server/tests/rabbit_test.rb
tests/mock/api.feature
Author: mfojtik
Date: Tue Aug 9 20:41:48 2011
New Revision: 1155556
URL: http://svn.apache.org/viewvc?rev=1155556&view=rev
Log:
Mock: Added user_data into test suite
Modified:
incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb
incubator/deltacloud/trunk/server/tests/rabbit_test.rb
incubator/deltacloud/trunk/tests/mock/api.feature
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=1155556&r1=1155555&r2=1155556&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/drivers/mock/api_test.rb Tue Aug 9 20:41:48 2011
@@ -126,7 +126,7 @@ module DeltacloudUnitTest
(last_xml_response/'api/link[@rel="instances"]/feature[@name="user_data"]').first.should_not == nil
get_auth_url "/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
+ (last_xml_response/'api/link[@rel="instances"]/feature[@name="firewalls"]').first.should == nil
end
end
Modified: incubator/deltacloud/trunk/server/tests/rabbit_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/tests/rabbit_test.rb?rev=1155556&r1=1155555&r2=1155556&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/tests/rabbit_test.rb (original)
+++ incubator/deltacloud/trunk/server/tests/rabbit_test.rb Tue Aug 9 20:41:48 2011
@@ -41,10 +41,10 @@ module DeltacloudUnitTest
def test_effective_params
features = @driver.features(:instances).collect { |f| f.name }
- features.should =~ [:hardware_profiles, :user_name, :authentication_key]
+ features.should =~ [:hardware_profiles, :user_name, :authentication_key, :user_data]
op = @app.collections[:instances].operations[:create]
- op.effective_params(@driver).keys.should =~ [:image_id, :hwp_memory, :hwp_id, :keyname, :name, :hwp_storage, :realm_id]
+ op.effective_params(@driver).keys.should =~ [:image_id, :hwp_memory, :hwp_id, :keyname, :name, :hwp_storage, :realm_id, :user_data]
op.params.keys =~ [:realm_id, :image_id, :hwp_id]
end
Modified: incubator/deltacloud/trunk/tests/mock/api.feature
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/tests/mock/api.feature?rev=1155556&r1=1155555&r2=1155556&view=diff
==============================================================================
--- incubator/deltacloud/trunk/tests/mock/api.feature (original)
+++ incubator/deltacloud/trunk/tests/mock/api.feature Tue Aug 9 20:41:48 2011
@@ -51,5 +51,6 @@ Feature: Accessing API entry points
When client access this URI
Then client should get list of features inside 'instances':
| user_name |
+ | user_data |
| authentication_key |
| hardware_profiles |