Chaos mode

In order to build rock-solid software, you need the ability to tolerate failures.

However, development teams often fail to meet this requirement when we talk about external services, assuming that those will work flawless always.

With Monster Mock you will be available to inject faulty behavior that might be difficult to get the real service and test complex scenarios where the external services are not working as expected.

Delays

Adding 10 second delay to the answers:

{
    "request":{
       "method":"GET",
       "path":"/hello",
    },
    "response":{
       "statusCode":200,
       "body":"Hello monster!"
    },
    "control":{
       "delay":10
    }
 }

This is the perfect scenario to simulate timeout or retries your system.

Random errors

Adding random HTTP 500 errors:

{
    "request":{
       "method":"GET",
       "path":"/hello",
    },
    "response":{
       "statusCode":200,
       "body":"Hello monster!"
    },
    "control":{
       "crazy":true
    }
 }

This is the perfect scenario to test your circuit breakers.

For sure, you can combine both features.

{
    "request":{
       "method":"GET",
       "path":"/hello",
    },
    "response":{
       "statusCode":200,
       "body":"Hello monster!"
    },
    "control":{
       "delay":3,
       "crazy":true,
    }
 }