55 lines
1.8 KiB
JSON
55 lines
1.8 KiB
JSON
{
|
|
"title": "Testing exceptions",
|
|
"description": "Testing exceptions!",
|
|
"tags": [],
|
|
"steady-state-hypothesis": {
|
|
"title": "Hypothesis",
|
|
"probes": []
|
|
},
|
|
"method": [
|
|
{
|
|
"name": "enable_chaosmonkey",
|
|
"provider": {
|
|
"arguments": {
|
|
"base_url": "http://localhost:8081/actuator"
|
|
},
|
|
"func": "enable_chaosmonkey",
|
|
"module": "chaosspring.actions",
|
|
"type": "python"
|
|
},
|
|
"type": "action"
|
|
},
|
|
{
|
|
"name": "configure_assaults",
|
|
"provider": {
|
|
"arguments": {
|
|
"base_url": "http://localhost:8081/actuator",
|
|
"assaults_configuration": {
|
|
"level": 5,
|
|
"latencyRangeStart": 2000,
|
|
"latencyRangeEnd": 15000,
|
|
"latencyActive": false,
|
|
"killApplicationActive": false,
|
|
"restartApplicationActive": false,
|
|
"exceptionsActive": true,
|
|
"exception": {
|
|
"type": "java.lang.RuntimeException",
|
|
"arguments": [
|
|
{
|
|
"className": "java.lang.String",
|
|
"value": "Exception assault has been carried out"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"func": "change_assaults_configuration",
|
|
"module": "chaosspring.actions",
|
|
"type": "python"
|
|
},
|
|
"type": "action"
|
|
}
|
|
],
|
|
"rollbacks": []
|
|
}
|