KestrelMock
KestrelMock copied to clipboard
A .NET HTTP mock server.
Create a helper class for creating mocks via the API. Include methods such as AddObservableMock, AddMock, DeleteMock, and GetMock.
add .NET8 and AOT compilation to reduce image size? just an idea
Simple example project showing how to mock out external references to build automated acceptance tests.
The following command fails ``` docker run -p 5006:5000 -e ASPNETCORE_URLS=http://*:5000 jasonrowe/kestrelmock ``` Cannot use file stream for [/app/KestrelMockServer.deps.json]: No such file or directory A fatal error was encountered. The...
Right now for the path matches with BodyContains/Array/Regex, but the other Path(startswith or Regex) are kinda single operation. The PathStartsWith and PathRegex kinda do a Body match, but it's incorrect...
Additional error details in NotFound - TODO determine what details would be the most helpful such as current mocks didn't match and why.
With the library growing and supporting many different mocks and combination of mocks it would be great to generate the docs from proven passing test somehow.
 Initial POC for a embedded UI into the mock server.
POC is here https://github.com/JasonRowe/KestrelMock/pull/80