diff options
author | rtkay123 <dev@kanjala.com> | 2025-08-08 08:59:43 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-08-08 08:59:43 +0200 |
commit | 7e03c0c7a30dca90e90a32918e3008c34d9f25cc (patch) | |
tree | 91cf240299f9861db9c1bf08cd244ba722c39894 | |
parent | 92d853e8c535d21c7e51200ba5ca2b8393fb0656 (diff) | |
download | warden-7e03c0c7a30dca90e90a32918e3008c34d9f25cc.tar.bz2 warden-7e03c0c7a30dca90e90a32918e3008c34d9f25cc.zip |
test(warden): http check
-rw-r--r-- | contrib/bruno/bruno.json | 9 | ||||
-rw-r--r-- | contrib/bruno/environments/warden.bru | 3 | ||||
-rw-r--r-- | contrib/bruno/health-check.bru | 19 |
3 files changed, 31 insertions, 0 deletions
diff --git a/contrib/bruno/bruno.json b/contrib/bruno/bruno.json new file mode 100644 index 0000000..24706f9 --- /dev/null +++ b/contrib/bruno/bruno.json @@ -0,0 +1,9 @@ +{ + "version": "1", + "name": "warden", + "type": "collection", + "ignore": [ + "node_modules", + ".git" + ] +}
\ No newline at end of file diff --git a/contrib/bruno/environments/warden.bru b/contrib/bruno/environments/warden.bru new file mode 100644 index 0000000..d4a366c --- /dev/null +++ b/contrib/bruno/environments/warden.bru @@ -0,0 +1,3 @@ +vars { + WARDEN_API_HOST: http://localhost:2210 +} diff --git a/contrib/bruno/health-check.bru b/contrib/bruno/health-check.bru new file mode 100644 index 0000000..0ef5178 --- /dev/null +++ b/contrib/bruno/health-check.bru @@ -0,0 +1,19 @@ +meta { + name: health-check + type: http + seq: 1 +} + +get { + url: {{WARDEN_API_HOST}} + body: none + auth: inherit +} + +assert { + res.status: eq 200 +} + +settings { + encodeUrl: true +} |