Joel Whalen
04/04/2024, 2:27 PM--entrypoint
with pact_verifier_cli [OPTIONS]
?Joel Whalen
04/04/2024, 2:40 PMpact-verification:
image: pactfoundation/pact-ref-verifier
depends_on:
- api
environment:
API_URL: <http://api:3000>
PACT_BROKER_BASE_URL: <http://my-broker-url.com|my-broker-url.com>
PACT_BROKER_TOKEN: ${PACTFLOW_TOKEN}
PACT_PROVIDER: ${PACT_PROVIDER}
PACT_PROVIDER_VERSION: ${PACT_PROVIDER_VERSION}
PACT_PROVIDER_VERSION_BRANCH: ${PACT_PROVIDER_VERSION_BRANCH}
PACT_CONSUMER_VERSION_SELECTORS_BRANCH: ${PACT_CONSUMER_VERSION_SELECTORS_BRANCH}
command: --broker-url $PACT_BROKER_BASE_URL --token $PACT_BROKER_TOKEN --hostname myApi --port 3000 --provider-name my-api --loglevel debug
It's unfortunate I can't see the response body in the debug logs, since the error I'm getting is in there đŸ˜•
pact_verifier::provider_client: Received response: HTTP Response ( status: 403, headers: Some({"content-length": ["5718"], "content-type": ["text/html; charset=UTF-8"], "vary": ["Origin"]}), body: Present(5718 bytes, text/html;charset=utf-8) )
Joel Whalen
04/04/2024, 2:41 PMMatt (pactflow.io / pact-js / pact-go)
Joel Whalen
04/04/2024, 10:49 PMMatt (pactflow.io / pact-js / pact-go)