Skip to content

Commit

Permalink
feat: pass verbose flag through to HAL client when fetching pacts
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 15, 2018
1 parent 18a3f6c commit d3acd1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pact/provider_verifier/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def reset_pact_configuration
end

def all_pact_urls
http_client_options = { username: options.broker_username, password: options.broker_password }
http_client_options = { username: options.broker_username, password: options.broker_password, verbose: options.verbose }
AggregatePactConfigs.call(pact_urls, options.provider, consumer_version_tags, options.pact_broker_base_url, http_client_options)
end

Expand Down
4 changes: 2 additions & 2 deletions spec/integration_with_pact_broker_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
end

it "fetches the pact URIs from the broker" do
expect(pact_broker_api).to receive(:fetch_pact_uris).with("Foo", ["master", "prod"], "http://localhost:5738", { username: "username", password: "password" })
expect(pact_broker_api).to receive(:fetch_pact_uris).with("Foo", ["master", "prod"], "http://localhost:5738", { username: "username", password: "password", verbose: nil })
subject
end

it "fetches the pending pacts URIs from the broker" do
expect(pact_broker_api).to receive(:fetch_pending_pact_uris).with("Foo", "http://localhost:5738", { username: "username", password: "password" })
expect(pact_broker_api).to receive(:fetch_pending_pact_uris).with("Foo", "http://localhost:5738", { username: "username", password: "password", verbose: nil })
subject
end

Expand Down

0 comments on commit d3acd1a

Please sign in to comment.