* Add near-miss diagnostics and request count/unmatched admin endpoints (#171)
Add IWireMockServer.FindUnmatchedLogEntries, FindNearMisses and
FindNearMissesForUnmatchedRequests, which rank the mappings that
partially match a request by score.
Expose them through the admin API (POST requests/count,
GET requests/unmatched, GET requests/unmatched/near-misses and
GET requests/{guid}/near-misses), the RestClient and the OpenAPI document.
* Make scenario delay tests independent of server warm-up time
The two *_StateTransitions_BeforeDelayCompletes tests waited a fixed
100 ms for the scenario state to change, which fails on a cold server.
Poll server.Scenarios until the expected state is reached instead.
---------
Co-authored-by: Mattias <13809209+Quattordici@users.noreply.github.com>
* feat/1421 added feature to enable and disable mappings
* feat/1421 updated test constants to reflect 2 new admin endpoints /enable and /disable
* feat/1421 updated tests to fix flakyness - removed delay before assertion that is causing upstream connection from proxy to teardown prematurely before test ends
* feat/1421 addressing PR comments - Updated logic to represent IsDisable insted of IsEnabled
* Fix new Delete with body missing from IWireMockAdminApi interface
* Admin Delete with mappings in body (#409)
* Add unit test for delete with body
* change order of checks for readability. looks nicer.
* Allow body in DELETE requests
* Fix unit tests according to DELETE supporting body
* Re-run CI
* Fix DELETE with body unit test
* Fix ElementAt index in mappings list
* Fix DELETE with body unit test
* Fix theory tag must be accompanied by some InlineData or Member
* Fix didn't use correct checking syntax
* Fix wrap entire unit test in if region