|
|
@ -604,7 +604,7 @@ class Monitor extends BeanModel {
|
|
|
|
|
|
|
|
|
|
|
|
if (status) {
|
|
|
|
if (status) {
|
|
|
|
bean.status = UP;
|
|
|
|
bean.status = UP;
|
|
|
|
bean.msg = `JSON query passes (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`
|
|
|
|
bean.msg = `JSON query passes (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
throw new Error(`JSON query does not pass (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`);
|
|
|
|
throw new Error(`JSON query does not pass (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|