forked from mtusi2026/mtusi2026lab2
27 lines
503 B
Plaintext
27 lines
503 B
Plaintext
meta {
|
|
name: Health ready
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
get {
|
|
url: {{baseUrl}}/health/ready
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
docs {
|
|
Readiness: 200 только если доступны PostgreSQL и Redis.
|
|
При остановленном Redis или PostgreSQL вернётся 503 в общем формате ошибки.
|
|
}
|
|
|
|
tests {
|
|
test("status 200", function() {
|
|
expect(res.status).to.equal(200);
|
|
});
|
|
|
|
test("status ok", function() {
|
|
expect(res.body.status).to.equal("ok");
|
|
});
|
|
}
|