Skip to content

Commit

Permalink
add postman collection to show health check endpoints for Dashboard a…
Browse files Browse the repository at this point in the history
…nd Gateway
  • Loading branch information
davegarvey committed Jan 15, 2025
1 parent 5e88cf0 commit 0a987ca
Showing 1 changed file with 120 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"info": {
"_postman_id": "d59cf9bc-11fb-4b8c-a77e-ee7bf40708d1",
"name": "Tyk Demo - Health Check Blackbox",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "6131676"
},
"item": [
{
"name": "Tyk Dashboard Health Check Endpoint",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Status is ok\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.status).to.eql(\"ok\");",
"});"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://{{tyk-dashboard.host}}/hello",
"protocol": "http",
"host": [
"{{tyk-dashboard.host}}"
],
"path": [
"hello"
]
},
"description": "Demonstates the Tyk Dashboard health check endpoint, which by default is available via the `/hello` path.\n\nRetuns a simple JSON document that contains the system status."
},
"response": []
},
{
"name": "Tyk Gateway Health Check",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Status is pass\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.status).to.eql(\"pass\");",
"});"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://{{tyk-gateway.host}}/hello",
"protocol": "http",
"host": [
"{{tyk-gateway.host}}"
],
"path": [
"hello"
]
},
"description": "Demonstates the Tyk Gateway health check endpoint, which by default is available via the `/hello` path.\n\nRetuns a simple JSON document that contains the system status."
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
}
],
"variable": [
{
"key": "tyk-gateway.host",
"value": "tyk-gateway.localhost:8080",
"type": "string"
},
{
"key": "tyk-dashboard.host",
"value": "tyk-dashboard.localhost:3000",
"type": "string"
}
]
}

0 comments on commit 0a987ca

Please sign in to comment.