Inspired by mock-server and wiremock. Implementation of mock server in Python + Flask. All incoming requests are validated according saved expectations. One expectation can describe following behavior:
Add expectation
Remove expectation
Remove all expectations
Forward request
Send response to request
Add a response with http code 503 for all requests with tag label POST /flamock/add_expectation Body: { "key": "503", "request": { "body": "." }, "response": { "httpcode": 503, "body": "Answer from mock" }, "unlimited": true, "priority": 1 }
MIT © Travix International
docker pull travix/flamock:latest