Highly flexible and customisable stub for you testing needs.
320
Highly flexible and customisable stub for you testing needs.
The idea behind this stub is that it 0 configuration or setup, the responses for each path configured before a call (per client), the intended use would be something like this:
0. I am testing an application that sends a request to the server on the GET /ping endpoint and the correct behaviour of the server is to send back { "message": "pong" }. What happens to my app if the server times out, crashes or sends back the completely wrong data?
POST /private/configure with the data expected by the app (see API).
B. the test then triggers the required actions and the app therefore makes a request to the stub, the stub then responds with the data that the test primed above, this in turn is received by the app and we can test what the app does.The entire stub is like 150 lines long and is extremely simple, the entirety of the documentation for the server can be found in API.
Content type
Image
Digest
sha256:435badd85…
Size
350.1 MB
Last updated
almost 3 years ago
docker pull hamolicious/configuration-less-generic-stub:1.0.7