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

feat: Add interaction not found error #45

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

nicholas-lebrun-form3
Copy link
Contributor

The interaction details endpoint previously replied with a 400 if an interaction was not found. This PR changes it to a 404.

PactProxy now returns a defined error when a 404 is received from that endpoint, so that dependent tests can verify that the details were not returned due to the interaction not existing.

This allows tests using pact proxy to verify that a certain pact interaction was not registered with pact-proxy and gives confidence that the endpoint was not invoked.

The interactiond details endpoint previously replied with a 400 if an interaction was not found.
This is changed to a 404.

PactProxy now returns a defined error when a 404 is received from that endpoint, so that dependent tests
can verify that the details were not returned due to the interaction not existing.

This allows tests using pact proxy to verify that a certain pact interaction was not registered with pact-proxy
and gives confidence that the endpoint was not invoked.
@nicholas-lebrun-form3 nicholas-lebrun-form3 marked this pull request as ready for review October 5, 2023 19:24
@nicholas-lebrun-form3 nicholas-lebrun-form3 requested a review from a team as a code owner October 5, 2023 19:24
@nicholas-lebrun-form3 nicholas-lebrun-form3 merged commit 7388a82 into master Oct 6, 2023
2 checks passed
@nicholas-lebrun-form3 nicholas-lebrun-form3 deleted the nl-return-interaction-not-found branch October 6, 2023 16:22
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