Ganesh
07/06/2022, 7:02 PM$Headers = @{
Authorization = "Basic $([System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("dXfltyFMgNOFZAxr8io9wJ37iUpY42M:O5AIZWxelWbLvqMd8PkAVycBJh2Psyg1")))"
}
$res = Invoke-WebRequest -Uri "https://test.pactflow.io/pacts/provider/Animal%20Profile%20Service/consumer/Matching%20Service/version/1.0.0" -Headers $Headers -Method Put -InFile .\matching_service-animal_profile_service.json -ContentType "application/json"Matt (pactflow.io / pact-js / pact-go)
Ganesh
07/07/2022, 9:50 AMpactflow publish-provider-contract C:\pact-workshop-dotnet-core-v3\pacts\ApiClient-ProductService.json --broker-token=myAuthenticationtoken --broker-base-url=<https://mydomain.pactflow.io> --provider ProductService --provider-app-version 1.0 --branch main --content-type application/json --verification-exit-code=0
Ganesh
07/07/2022, 9:55 AMGanesh
07/07/2022, 9:56 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Ganesh
07/07/2022, 10:05 AMopening connection to <http://mydomain.pactflow.io:443|mydomain.pactflow.io:443>...
opened
starting SSL for <http://mydomain.pactflow.io:443|mydomain.pactflow.io:443>...
Conn close because of connect error SSL_connect returned=1 errno=0 state=error: certificate verify failed
OpenSSL::SSL::SSLError - SSL_connect returned=1 errno=0 state=error: certificate verify failed
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/ruby/lib/ruby/2.4.0/net/protocol.rb:44:in `connect_nonblock'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/ruby/lib/ruby/2.4.0/net/protocol.rb:44:in `ssl_socket_connect'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/ruby/lib/ruby/2.4.0/net/http.rb:948:in `connect'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/ruby/lib/ruby/2.4.0/net/http.rb:887:in `do_start'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/ruby/lib/ruby/2.4.0/net/http.rb:876:in `start'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/hal/http_client.rb:79:in `block in perform_request'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/hal/http_client.rb:93:in `until_truthy_or_max_times'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/hal/http_client.rb:64:in `perform_request'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/hal/http_client.rb:25:in `get'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/hal/link.rb:41:in `get'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/hal/link.rb:45:in `get!'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/hal_client_methods.rb:24:in `index_resource'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/versions/create.rb:48:in `branch_versions_supported?'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/versions/create.rb:11:in `do_call'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/base_command.rb:25:in `call'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/base_command.rb:13:in `call'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pactflow/client/provider_contracts/publish.rb:37:in `create_branch_version_and_tags'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pactflow/client/provider_contracts/publish.rb:24:in `do_call'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/base_command.rb:25:in `call'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/base_command.rb:13:in `call'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pactflow/client/cli/provider_contract_commands.rb:36:in `publish_provider_contract'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/vendor/ruby/2.4.0/gems/pact_broker-client-1.65.0/lib/pact_broker/client/cli/custom_thor.rb:23:in `start'
C:/Users/testuser/Downloads/pact-1.89.02-rc1-win32/pact/lib/app/pactflow.rb:28:in `<main>'
Ganesh
07/07/2022, 11:05 AMMatt (pactflow.io / pact-js / pact-go)
http_proxy
and https_proxy
environment variables. If you don’t know what these are, find somebody in your organisation that does. They’ll be able to advise what to do with them. If not this, you’ll need to get a copy of the intermediate proxy SSL certificate and get that into your trust store (the docs above you linked are the right ones). This is unlikely the problem though, so start with the env vars
2. You don’t publish the consumer with your provider contract - each of your consumers publish contracts, and when they do, there will be an integration in the left nav for each consumer that says ProductService
is a providerGanesh
07/07/2022, 1:46 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Ganesh
07/07/2022, 1:50 PMGanesh
07/07/2022, 1:57 PMGanesh
07/07/2022, 1:59 PM