You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 returns501
. 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.
The text was updated successfully, but these errors were encountered: