deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [11/50] [abbrv] git commit: SBC: Fixed Cucumber tests for the SBC driver
Date Tue, 22 May 2012 20:19:37 GMT
SBC: Fixed Cucumber tests for the SBC driver


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/ceb0d7d9
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/ceb0d7d9
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/ceb0d7d9

Branch: refs/heads/master
Commit: ceb0d7d91d1c6ef7e1e2211881bece73b08c1f8d
Parents: 866c0e3
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Wed May 16 15:16:12 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Tue May 22 22:17:38 2012 +0200

----------------------------------------------------------------------
 tests/sbc/support/env.rb |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/ceb0d7d9/tests/sbc/support/env.rb
----------------------------------------------------------------------
diff --git a/tests/sbc/support/env.rb b/tests/sbc/support/env.rb
index fe27329..a7bf373 100644
--- a/tests/sbc/support/env.rb
+++ b/tests/sbc/support/env.rb
@@ -1,20 +1,16 @@
 require 'rubygems'
 require 'nokogiri'
-
-SERVER_DIR = File::expand_path(File::join(File::dirname(__FILE__), "../../../server"))
-$top_srcdir = SERVER_DIR
-$:.unshift File::join($top_srcdir, 'lib')
-Dir.chdir(SERVER_DIR)
-
-API_VERSION = "9.9.9"
-API_ROOT_URL = "/api"
+require 'rack/test'
 
 ENV['API_DRIVER'] = 'sbc'
-ENV.delete('API_VERBOSE')
 
-load File.join($top_srcdir, 'lib', 'deltacloud', 'server.rb')
+load File.join(File.dirname(__FILE__), '..', '..', '..', 'server', 'lib', 'deltacloud_rack.rb')
 
-require 'rack/test'
+Deltacloud::configure do |server|
+  server.root_url '/api'
+  server.version '0.5.0'
+  server.klass 'Deltacloud::API'
+end.require_frontend!
 
 module Rack
   module Test


Mime
View raw message