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

Add configuration to disable remock feature #2553

Open
aleung opened this issue Jul 3, 2024 · 1 comment
Open

Add configuration to disable remock feature #2553

aleung opened this issue Jul 3, 2024 · 1 comment

Comments

@aleung
Copy link
Contributor

aleung commented Jul 3, 2024

Prism has a remock feature that it mock the response in proxy mode if the server returns 501. The issue/PR that implemented this feature were #1273 and #1426.

This is a nice feature but not always wanted in all scenarios. Better to have a configuration to switch this feature on or off.

Context

We deploy Prism proxy in between our test suit and the service under test to validate if the service has implemented the API following OpenAPI definition. In this scenario, we just want the Prism to act purely as a proxy, not a mock server.

Current Behavior

In a negative test case to verify server response for unimplemented feature, test suit received a remocked 200 response when server returns 501. The remock response made the test case failed.

Expected Behavior

Receive the original response code from server.

Possible Solution(s)

Add configuration to disable remock feature.
There was a discussion in #1862 for different requirement, the purpose of adding configure for response codes that triggering remock can be a solution candidate.

@tesanchez
Copy link

Hey thank you for your input. We would welcome any suggested solutions here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants