deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 4/5] Core: Minor tweak to deltacloud test helper
Date Tue, 31 Jul 2012 12:33:28 GMT
From: Michal Fojtik <mfojtik@redhat.com>

* The 'root_url' can be now used in this way:

  get root_url '/url'

Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/tests/deltacloud/common.rb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/server/tests/deltacloud/common.rb b/server/tests/deltacloud/common.rb
index d2f59e5..98b9884 100644
--- a/server/tests/deltacloud/common.rb
+++ b/server/tests/deltacloud/common.rb
@@ -1,3 +1,5 @@
+ENV['API_FRONTEND'] = 'cimi'
+
 require_relative File.join('..', '..', 'lib', 'deltacloud_rack.rb')
 
 # Set the default driver used for server API tests
@@ -17,4 +19,4 @@ unless Deltacloud::config[:deltacloud]
   Deltacloud.require_frontend!
 end
 
-def root_url; Deltacloud.config[:deltacloud].root_url; end
+def root_url; Deltacloud.config[:cimi].root_url; end
-- 
1.7.10.2


Mime
View raw message