Skip to content

Deactivate mapping without deleting it #1421

@cezarypiatek

Description

@cezarypiatek

Hi,
I checked the documentation but couldn’t find anything related to this. It would be very helpful to have the ability to deactivate a mapping without deleting it. This would allow for proper post-test analysis.

In my case, many tests dispose of mappings as soon as they’re no longer needed to avoid collisions. After the tests finish, it becomes difficult to investigate why certain requests weren’t matched, because the mapping definitions have already been removed.

Instead of adding another attribute to the mapping itself, it might be better to extend the admin endpoint for returning mapping with new attribute that will allow to include deleted entries. I think this would be the simplest way to achieve the desired outcome.

This improvement would definitely improve WireMockInspector usability.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions