Merge branch 'master' of gs-gitlab:tools/heimdall
This commit is contained in:
commit
1db55f698f
|
|
@ -240,7 +240,13 @@ namespace _heimdall.check_kinds.http_request
|
||||||
"info": {
|
"info": {
|
||||||
"request": parameters.request,
|
"request": parameters.request,
|
||||||
"faults": [
|
"faults": [
|
||||||
lib_plankton.translate.get("checks.http_request.request_failed", {"reason": error.toString()}),
|
lib_plankton.translate.get(
|
||||||
|
"checks.http_request.request_failed",
|
||||||
|
{
|
||||||
|
// "reason": error.toString(),
|
||||||
|
"reason": JSON.stringify(error),
|
||||||
|
}
|
||||||
|
),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
@ -313,7 +319,7 @@ namespace _heimdall.check_kinds.http_request
|
||||||
"checks.http_request.header_value_mismatch",
|
"checks.http_request.header_value_mismatch",
|
||||||
{
|
{
|
||||||
"key": header_key,
|
"key": header_key,
|
||||||
"value_actual": http_response.headers[header_key],
|
"value_actual": http_response.headers[header_key.toLowerCase()],
|
||||||
"value_expected": header_value,
|
"value_expected": header_value,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -374,7 +374,7 @@ namespace _heimdall.order
|
||||||
throw new Error("invalid check kind: " + node.kind);
|
throw new Error("invalid check kind: " + node.kind);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const node_ : type_check = Object.assign(
|
const node_ : type_check = (Object.assign(
|
||||||
lib_plankton.object.patched(
|
lib_plankton.object.patched(
|
||||||
defaults,
|
defaults,
|
||||||
{
|
{
|
||||||
|
|
@ -384,7 +384,7 @@ namespace _heimdall.order
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
node
|
node
|
||||||
);
|
) as type_check);
|
||||||
let check : type_check = {
|
let check : type_check = {
|
||||||
"name": node_.name,
|
"name": node_.name,
|
||||||
"title": node_.title,
|
"title": node_.title,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue