Files

51 lines
910 B
YAML
Raw Permalink Normal View History

2026-03-10 15:44:48 +01:00
info:
name: Health check
type: http
seq: 1
http:
method: GET
url: "{{baseUrl}}/health"
auth: inherit
2026-03-10 16:34:04 +01:00
runtime:
scripts:
- type: tests
code: |-
test("Should return 200", () => {
const body = res.getBody()
expect(res.getStatus()).to.equal(200)
})
test("Body should be ok:true", () => {
const body = res.getBody()
expect(body).to.eql({
ok:true
})
})
2026-03-10 15:44:48 +01:00
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
examples:
- name: 200 Response
description: Server is healthy
request:
url: "{{baseUrl}}/health"
method: GET
response:
status: 200
statusText: OK
headers:
- name: Content-Type
value: application/json
body:
type: json
data: |-
{
"ok": false
}