Reset resets only mappings and logentries, not scenarios. #558

Closed
opened 2025-12-29 08:30:07 +01:00 by adam · 3 comments
Owner

Originally created by @MJLHThomassenHadrian on GitHub (Dec 7, 2023).

Originally assigned to: @StefH on GitHub.

Describe the bug

Calling WireMockServer.Reset() only resets Mappings and LogEntries, not scenarios. Since there are 3 methods for resetting them all seeprately (WireMockServer.ResetLogEntries(), WireMockServer.ResetMappings() and WireMockServer.ResetScenarios()) i would expet Reset() to reset everything, not just 2 of the 3.

Expected behavior:

Scenarios are also reset.

Originally created by @MJLHThomassenHadrian on GitHub (Dec 7, 2023). Originally assigned to: @StefH on GitHub. ### Describe the bug Calling `WireMockServer.Reset()` only resets Mappings and LogEntries, not scenarios. Since there are 3 methods for resetting them all seeprately (`WireMockServer.ResetLogEntries()`, `WireMockServer.ResetMappings()` and `WireMockServer.ResetScenarios()`) i would expet `Reset()` to reset everything, not just 2 of the 3. ### Expected behavior: Scenarios are also reset.
adam added the bug label 2025-12-29 08:30:07 +01:00
adam closed this issue 2025-12-29 08:30:07 +01:00
Author
Owner

@StefH commented on GitHub (Dec 7, 2023):

good point

@StefH commented on GitHub (Dec 7, 2023): good point
Author
Owner

@StefH commented on GitHub (Dec 7, 2023):

https://github.com/WireMock-Net/WireMock.Net/pull/1031

@StefH commented on GitHub (Dec 7, 2023): https://github.com/WireMock-Net/WireMock.Net/pull/1031
Author
Owner

@MJLHThomassenHadrian commented on GitHub (Dec 11, 2023):

@StefH thanks!

@MJLHThomassenHadrian commented on GitHub (Dec 11, 2023): @StefH thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#558