From 0bec37b2cbaf228097b7c856d6435dd5e2639d77 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Mon, 6 Nov 2023 14:20:07 +0000 Subject: [PATCH] Update Pact Broker URL We are currently migrating our Pact Broker instance from PaaS to Heroku. `gds-api-adapters` has already been updated to publish pacts to both instances, now we need to update each of our API providers to fetch from the new instance instead of the old one. --- spec/service_consumers/pact_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/service_consumers/pact_helper.rb b/spec/service_consumers/pact_helper.rb index 7bd95377..7172e477 100644 --- a/spec/service_consumers/pact_helper.rb +++ b/spec/service_consumers/pact_helper.rb @@ -23,7 +23,7 @@ def url_encode(str) if ENV["PACT_URI"] pact_uri(ENV["PACT_URI"]) else - base_url = ENV.fetch("PACT_BROKER_BASE_URL", "https://pact-broker.cloudapps.digital") + base_url = ENV.fetch("PACT_BROKER_BASE_URL", "https://govuk-pact-broker-6991351eca05.herokuapp.com") url = "#{base_url}/pacts/provider/#{url_encode(name)}/consumer/#{url_encode(consumer_name)}" pact_uri "#{url}/versions/#{url_encode(ENV.fetch('PACT_CONSUMER_VERSION', 'branch-main'))}"