Sha256: 40e678c3bea4803ced30b2321dfa9e0e3efc154bb78b3603382c949387c3a438
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
$:.unshift File.expand_path('../pacto', File.dirname(__FILE__)) require 'polytrix/rspec' require 'webmock/rspec' require 'matrix_formatter' require 'helpers/pacto_helper' require 'pacto/extensions/matchers' require 'pacto/extensions/loaders/simple_loader' require 'pacto/extensions/loaders/api_blueprint_loader' require 'helpers/teardown_helper' require 'helpers/cloudfiles_helper' SDKs = Dir['sdks/*'].map{|sdk| File.basename sdk} Polytrix.implementors = SDKs.map{ |sdk| Polytrix::Implementor.new :name => sdk #, :language => lang } require 'polytrix/runners/middleware/pacto' Polytrix.configure do |c| c.middleware.insert 0, Polytrix::Runners::Middleware::Pacto, {} end RSpec.configure do |c| c.matrix_implementors = SDKs c.treat_symbols_as_metadata_keys_with_true_values = true c.include Polytrix::RSpec::Helper end def standard_env_vars @standard_env_vars ||= { 'RAX_USERNAME' => ENV['RAX_USERNAME'], 'RAX_API_KEY' => ENV['RAX_API_KEY'], 'RAX_REGION' => 'ORD', # FIXME: stubbing multiple hosts # 'RAX_REGION' => ENV['RAX_REGION'] || %w{DFW ORD IAD SYD HKG}.sample, # omitted LON since it requires UK account 'RAX_AUTH_URL' => PACTO_SERVER || 'https://identity.api.rackspacecloud.com' } end def redact(data) Hash[data.map do |k,v| if k =~ /password|api_key/i v = '******' end [k, v] end] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.0.1 | features/features_helper.rb |