From cf6ba6e57933c646aa2f1e0ecef600f5d1751b45 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 4 Jun 2021 10:33:54 +1000 Subject: [PATCH] test: add config for verifying pacts from broker --- spec/service_consumers/pact_helper.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/spec/service_consumers/pact_helper.rb b/spec/service_consumers/pact_helper.rb index 19b49d224..f60b09a19 100644 --- a/spec/service_consumers/pact_helper.rb +++ b/spec/service_consumers/pact_helper.rb @@ -39,8 +39,19 @@ def do_not_rollback? _response app { HalRelationProxyApp.new(app_to_verify) } + + # honours_pacts_from_pact_broker do + # pact_broker_base_url "https://pact-oss.pactflow.io", token: ENV["PACT_BROKER_TOKEN"] + # consumer_version_selectors [ + # { branch: 'master' } + # ] + # enable_pending true + # include_wip_pacts_since "2000-01-01" + # verbose true + # end + + honours_pact_with "Pact Broker Client" do pact_uri "https://raw.githubusercontent.com/pact-foundation/pact_broker-client/master/spec/pacts/pact_broker_client-pact_broker.json" end - end