File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,9 +56,11 @@ def run_specs
5656
5757 def run_with_pact_url_string
5858 pact_repository_uri_options = { }
59+ pact_repository_uri_options [ :username ] = ENV [ 'PACT_BROKER_USERNAME' ] if ENV [ 'PACT_BROKER_USERNAME' ]
60+ pact_repository_uri_options [ :password ] = ENV [ 'PACT_BROKER_PASSWORD' ] if ENV [ 'PACT_BROKER_PASSWORD' ]
61+ pact_repository_uri_options [ :token ] = ENV [ 'PACT_BROKER_TOKEN' ]
5962 pact_repository_uri_options [ :username ] = options [ :pact_broker_username ] if options [ :pact_broker_username ]
6063 pact_repository_uri_options [ :password ] = options [ :pact_broker_password ] if options [ :pact_broker_password ]
61- pact_repository_uri_options [ :token ] = ENV [ 'PACT_BROKER_TOKEN' ]
6264 pact_uri = ::Pact ::Provider ::PactURI . new ( options [ :pact_uri ] , pact_repository_uri_options )
6365 Pact ::Provider ::PactSpecRunner . new ( [ pact_uri ] , pact_spec_options ) . run
6466 end
You can’t perform that action at this time.
0 commit comments