-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add postman collection to show health check endpoints for Dashboard a…
…nd Gateway
- Loading branch information
1 parent
5e88cf0
commit 0a987ca
Showing
1 changed file
with
120 additions
and
0 deletions.
There are no files selected for viewing
120 changes: 120 additions & 0 deletions
120
deployments/healthcheck-blackbox/tyk_demo_healthcheck_blackbox.postman_collection.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |