Skip to content

1.0.4

Choose a tag to compare

@alcalyn alcalyn released this 10 Nov 11:15
· 3 commits to 1.x-dev since this release
4b0b079

Add Timeout phrase:

Timeout

Used to test your code when a third party API is currently slow and timeout.

Example:

Given the request "GET" "/sso/users/1" will timeout

When I send a "GET" request on "/users/1"

Then ... (test that your API don't falls on timeout also)

Given the request "GET" "/users" will timeout

Payload sent to mockserver endpoint PUT /expectation:

{
    "httpRequest": {
        "method": "GET",
        "path": "/users"
    },
    "httpResponse": {
        "delay": {
            "timeUnit": "SECONDS",
            "value": 600
        }
    }
}