Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: added v3 http interaction examples #773

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

amit828as
Copy link
Contributor

✈️ Pre-flight checklist

  • [x ] I have read the Contributing Guidelines on pull requests.
  • [x ] If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

📝 Summary

This PR has example usage of Pact-python version 3 HTTP interaction

🚨 Breaking Changes

🔥 Motivation

🔨 Test Plan

🔗 Related issues/PRs

Copy link
Contributor

@JP-Ellis JP-Ellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

There's a few minor things I think should be changed to make sure that the examples serve as a good learning tool for people who are otherwise unfamiliar with Pact.

There is also a bit of a change in the provider testing which I think is needed. While Pact performs the necessary verifications on the server's communications, it would be good to show how the test can be used to verify that side-effects have (or have not) taken place within the provider's internal logic.

Let me know what you think, and if you have any questions, let me know!

examples/tests/v3/test_v3_http_consumer.py Outdated Show resolved Hide resolved
examples/tests/v3/test_v3_http_consumer.py Outdated Show resolved Hide resolved
examples/tests/v3/test_v3_http_consumer.py Outdated Show resolved Hide resolved
examples/tests/v3/test_v3_http_consumer.py Outdated Show resolved Hide resolved
examples/tests/v3/test_v3_http_consumer.py Outdated Show resolved Hide resolved
examples/tests/v3/test_v3_http_consumer.py Outdated Show resolved Hide resolved
examples/tests/v3/test_v3_http_provider.py Outdated Show resolved Hide resolved
examples/tests/v3/test_v3_http_provider.py Outdated Show resolved Hide resolved
examples/tests/v3/test_v3_http_provider.py Outdated Show resolved Hide resolved
Copy link
Contributor

@JP-Ellis JP-Ellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🚀

Just cleaned up a few little things, mostly around the docs and typing 👍

Also rename the files to ensure they mirror the v2 examples more
closely.

Signed-off-by: JP-Ellis <josh@jpellis.me>
@JP-Ellis
Copy link
Contributor

There's an upstream with CFFI on Windows:

Will do a force merge later today as all the other tests are fine.

@JP-Ellis JP-Ellis merged commit c5a0dcd into pact-foundation:master Aug 30, 2024
26 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants