-
-
Notifications
You must be signed in to change notification settings - Fork 233
Description
Problem
I'm currently using static file mapping as the main source for development, integration-test and e2e testing with the same set of static file mapping. It has grow in size and number of files has become more difficult to manage, but the pros of it still appreciated. This have cause flakiness and harder to do mock in isolation. By forcing scenario state really help solve this problem.
I used to leverage stateful behaviour and manual setting individual state, not only for stability but for test data maintainability and make sure that the mock is in isolation as well. I do think this really help with mock data traceability and maintainability of the test.
Describe the solution you'd like
Java implementation of wiremock has this endpoint POST /__admin/scenarios/<scenario_name>/state available in admin api client. I was hoping this become available in this .Net version as well.
ref: https://wiremock.org/docs/stateful-behaviour/#setting-the-state-of-an-individual-scenario
Describe alternatives you've considered
We have tried to organise the static file by using "priority" but that become a nightmare to handle real quick.
Is your feature request supported by WireMock (java version)? Please provide details.
Yes. here is the clear doc https://wiremock.org/docs/stateful-behaviour/#setting-the-state-of-an-individual-scenario
Additional context
N/A
