Sha256: eead7e206c0e2735046d80f53242ed818b3a5cedb5c1f6fa5b91ba525c28c302

Contents?: true

Size: 1.2 KB

Versions: 61

Compression:

Stored size: 1.2 KB

Contents

require 'pact_broker/client/pact_hash'
shared_context "pact broker" do

  let(:pact_hash) { PactBroker::Client::PactHash[consumer: {name: 'Condor'}, provider: {name: 'Pricing Service'}, interactions: []] }
  let(:consumer_contract) { Pact::ConsumerContract.from_hash pact_hash }
  let(:pact_json) { pact_hash.to_json }
  let(:pact_broker_client) { PactBroker::Client::PactBrokerClient.new(client_config) }
  let(:broker_base_url) { 'http://localhost:1234' }
  let(:client_config) { { base_url: broker_base_url } }
  let(:consumer_version) { '1.3.0' }
  let(:version) { '1.3.0' }
  let(:pact_broker_version) { Pact::Term.new(:matcher => /\d+\.\d+\.\d+/, :generate => '1.0.0') }
  let(:pact_broker_response_headers) { {'Content-Type' => 'application/hal+json;charset=utf-8'} }
  let(:default_request_headers) { { 'Content-Type' => 'application/json'} }
  let(:patch_request_headers)   { { 'Content-Type' => 'application/json'} }
  let(:put_request_headers)     { { 'Content-Type' => 'application/json', 'Accept' => 'application/hal+json'} }
  let(:post_request_headers)    { { 'Content-Type' => 'application/json', 'Accept' => 'application/hal+json'} }
  let(:get_request_headers)     { { 'Accept' => 'application/hal+json'} }

end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
pact_broker-client-1.15.0 spec/support/shared_context.rb