Skip to content

Commit

Permalink
Merge pull request #308 from NASA-PDS/test_welcome_page
Browse files Browse the repository at this point in the history
Add welcome page test
  • Loading branch information
jordanpadams authored Aug 6, 2024
2 parents dc611d8 + 3e3e9b8 commit fffad99
Showing 1 changed file with 50 additions and 2 deletions.
52 changes: 50 additions & 2 deletions docker/postman/postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -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('<div id=\"swagger-ui\"></div>');",
"});"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "text/html",
"type": "text"
}
],
"url": {
"raw": "{{baseUrl}}",
"host": [
"{{baseUrl}}"
]
}
},
"response": []
}
]
},
Expand Down Expand Up @@ -2992,7 +3029,18 @@
"});",
""
],
"type": "text/javascript"
"type": "text/javascript",
"packages": {}
}
},
{
"listen": "prerequest",
"script": {
"exec": [
"pm.execution.skipRequest()"
],
"type": "text/javascript",
"packages": {}
}
}
],
Expand Down Expand Up @@ -3165,4 +3213,4 @@
"type": "string"
}
]
}
}

0 comments on commit fffad99

Please sign in to comment.