where can I find the image definition for the stan...
# general
j
where can I find the image definition for the standalone pact verifier? https://hub.docker.com/r/pactfoundation/pact-ref-verifier also are there usage instructions with this container, or do I just overwrite
--entrypoint
with
pact_verifier_cli [OPTIONS]
?
answered my own question! I got it to work in docker compose like so
Copy code
pact-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 đŸ˜•
Copy code
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) )
since it's a 403 I'm probably just missing the authentication token but still it would be nice to see the error messages my application is throwing
m
Hmm trace level might give it to you
j
it did, and wow that's a lot of logs. The response didn't have an intelligible error, it's just a huge HTML dump
m
Yeah it is. I should be visible at the DEBUG level so it’s a bit surprising it’s not there. HTML is the response it seems, does it not show the request? Albeit that’s probably not a big issue, because the request is already documented in the pact file. Do you know what interaction is failing?