GitHub
04/11/2024, 1:58 AMGitHub
04/11/2024, 1:58 AMGitHub
04/11/2024, 4:31 AMGitHub
04/11/2024, 4:52 AMGitHub
04/11/2024, 6:16 AMGitHub
04/11/2024, 6:28 AMGitHub
04/11/2024, 6:31 AMGitHub
04/11/2024, 6:32 AMGitHub
04/11/2024, 6:40 AMMatt (pactflow.io / pact-js / pact-go)
GitHub
04/11/2024, 7:01 AMMatt (pactflow.io / pact-js / pact-go)
GitHub
04/11/2024, 7:01 AMJo Laing
04/11/2024, 3:55 PMv2.2
release
• New docs site
• A sneak peek into the future as to how Pact-Python aims to bring full support for Pact Specifications v3
and v4
and how you can try it out
Be sure to give it a read 📖aofadero
04/11/2024, 9:26 PMGitHub
04/11/2024, 10:53 PMGitHub
04/11/2024, 10:53 PMGitHub
04/11/2024, 10:53 PMDavid Mondejar
04/12/2024, 10:10 AMdef test_against_broker(verifier: Verifier) -> None:
code, _ = verifier.verify_with_broker(
broker_url=os.environ.get("PACT_BROKER_BASE_URL"),
broker_token=os.environ.get("PACT_BROKER_TOKEN"),
publish_version=os.environ.get("GIT_COMMIT", "unknown_version"),
provider_version_branch=os.environ.get("GIT_BRANCH", "unknown_branch"),
publish_verification_results=os.environ.get(
"PUBLISH_VERIFICATION_RESULTS", "False"
),
provider_states_setup_url=str(PROVIDER_URL / "_pact" / "provider_states"),
)
assert code == 0
The provider verification is being called from a GH action with something along these lines:
- name: Pact provider Tests
run: python3 -m pytest provider_tests/
env:
PACT_BROKER_BASE_URL: ${{ env.PACT_BROKER_BASE_URL }}
PACT_BROKER_TOKEN: ${{ env.PACT_BROKER_TOKEN }}
GIT_BRANCH: ${{ env.GIT_BRANCH }}
GIT_COMMIT: ${{ env.GIT_COMMIT }}
PUBLISH_VERIFICATION_RESULTS: "True"
Our doubt is for 2) when we get a PACT_URL from the webhook, how do we pass that to the provider? We don't see any argument we can use on the verify_with_broker
method. When implementing the equivalent with pact-jvm we just had to annotate the provider with @AllowOverridePactUrl
and then set a system property pact.filter.pacturl
. Is there a similar mechanism on pact-python ?
Thanks in advance for the help!GitHub
04/12/2024, 9:41 PMGitHub
04/17/2024, 4:33 AMGitHub
04/17/2024, 4:34 AMGitHub
04/17/2024, 4:34 AMGitHub
04/17/2024, 9:01 PMGitHub
04/18/2024, 10:21 PMGitHub
04/18/2024, 10:21 PMGitHub
04/18/2024, 10:24 PMGitHub
04/18/2024, 10:59 PMGitHub
04/18/2024, 11:08 PMMichael Strasser
04/19/2024, 5:33 AM