Skip to content

Commit

Permalink
fix(example): publish message pact
Browse files Browse the repository at this point in the history
Building on the work from @neringaalt, I have updated the message pact
example so as to publish the verification of the pact back to the pact
broker.

Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
JP-Ellis committed Nov 6, 2023
1 parent 1c89522 commit 9d3bc76
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/tests/test_03_message_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,12 @@ def test_verify(broker: URL) -> None:
)

with provider:
provider.verify_with_broker(broker_url=str(broker))
provider.verify_with_broker(
broker_url=str(broker),
# Despite the auth being set in the broker URL, we still need to pass
# the username and password to the verify_with_broker method.
broker_username=broker.user,
broker_password=broker.password,
publish_version="0.0.0",
publish_verification_results=True,
)

0 comments on commit 9d3bc76

Please sign in to comment.