From 3e3e9b81c0a30ed11a02a622a7c9cba643a8494d Mon Sep 17 00:00:00 2001 From: thomas loubrieu Date: Fri, 2 Aug 2024 17:24:13 -0400 Subject: [PATCH] add welcome page test --- docker/postman/postman_collection.json | 52 +++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/docker/postman/postman_collection.json b/docker/postman/postman_collection.json index 13eb9cd..1e171b0 100644 --- a/docker/postman/postman_collection.json +++ b/docker/postman/postman_collection.json @@ -2552,6 +2552,43 @@ } }, "response": [] + }, + { + "name": "NASA-PDS/registry-api#516 Welcome page", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "", + "", + "pm.test(\"C4439829 Welcome page, base URL returns documentation\", () => {", + " var response = pm.response.text();", + " pm.expect(response).to.contain('
');", + "});" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "text/html", + "type": "text" + } + ], + "url": { + "raw": "{{baseUrl}}", + "host": [ + "{{baseUrl}}" + ] + } + }, + "response": [] } ] }, @@ -2992,7 +3029,18 @@ "});", "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "pm.execution.skipRequest()" + ], + "type": "text/javascript", + "packages": {} } } ], @@ -3165,4 +3213,4 @@ "type": "string" } ] -} \ No newline at end of file +}