Sha256: 77b3efd6a495b51365822a755364009b634d5ebbdcda9da3f2508b7440028324

Contents?: true

Size: 694 Bytes

Versions: 7

Compression:

Stored size: 694 Bytes

Contents

require 'rubygems'
require 'require_relative' if RUBY_VERSION < '1.9'
require 'minitest/autorun'

require_relative File.join('..', '..', 'lib', 'deltacloud_rack.rb')
require_relative '../test_helper.rb'

# Setup Deltacloud::API Sinatra instance
#

Deltacloud::configure(:ec2) do |server|
  server.root_url '/ec2'
  server.version '2012-04-01'
  server.klass 'Deltacloud::EC2::API'
  server.logger Rack::DeltacloudLogger.setup(ENV['API_LOG'], ENV['API_VERBOSE'])
  server.default_driver :mock
end

Deltacloud[:ec2].require!
Deltacloud[:ec2].default_frontend!

# The root_url here is '/' because the application is not
# mounted and so by default Sinatra mounts it on '/'

def root_url; '/'; end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
deltacloud-core-1.1.3 tests/ec2/common.rb
deltacloud-core-1.1.2 tests/ec2/common.rb
deltacloud-core-1.1.1 tests/ec2/common.rb
deltacloud-core-1.1.0 tests/ec2/common.rb
deltacloud-core-1.0.5 tests/ec2/common.rb
deltacloud-core-1.0.4 tests/ec2/common.rb
deltacloud-core-1.0.3 tests/ec2/common.rb