Skip to content

Commit

Permalink
add test request from browser
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas loubrieu committed Aug 21, 2024
1 parent 19b0bd0 commit e6da4ae
Showing 1 changed file with 56 additions and 7 deletions.
63 changes: 56 additions & 7 deletions docker/postman/postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"info": {
"_postman_id": "6ee727e9-b4e3-4a72-8181-abd7d2d312e5",
"name": "Planetary Data System API Reference Tests Copy 9",
"description": "Federated PDS API which provides actionable end points standardized\nbetween the different nodes.\n\n\nContact Support:\n Email: pds-operator@jpl.nasa.gov",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "11337552",
"_collection_link": "https://interstellar-satellite-406261.postman.co/workspace/My-Workspace~2ee1fece-93c6-4f38-806d-fa321e2e92d5/collection/11337552-6ee727e9-b4e3-4a72-8181-abd7d2d312e5?action=share&source=collection_link&creator=11337552"
"info": {
"_postman_id": "6ee727e9-b4e3-4a72-8181-abd7d2d312e5",
"name": "Planetary Data System API Reference Tests Copy 9",
"description": "Federated PDS API which provides actionable end points standardized\nbetween the different nodes.\n\n\nContact Support:\n Email: pds-operator@jpl.nasa.gov",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "11337552",
"_collection_link": "https://interstellar-satellite-406261.postman.co/workspace/My-Workspace~2ee1fece-93c6-4f38-806d-fa321e2e92d5/collection/11337552-6ee727e9-b4e3-4a72-8181-abd7d2d312e5?action=share&source=collection_link&creator=11337552"
},
"item": [
{
Expand Down Expand Up @@ -3200,6 +3200,55 @@
}
},
"response": []
},
{
"name": "NASA-PDS/registry-api#439 I get application/json results from my browser",
"event": [
{
"listen": "test",
"script": {
"exec": [
"const testrailId = \"C4446492\";",
"pm.test(`${testrailId} Status code is 200`, () => {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Content-Type is application/json\", function () {",
" pm.response.to.have.header(\"Content-Type\");",
" pm.response.to.be.header(\"Content-Type\", \"application/json\");",
"});",
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"accept": true
}
},
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"type": "text"
}
],
"url": {
"raw": "{{baseUrl}}/products",
"host": [
"{{baseUrl}}"
],
"path": [
"products"
]
}
},
"response": []
}
]
},
Expand Down

0 comments on commit e6da4ae

Please sign in to comment.