Skip to content

Commit

Permalink
updated postman collection file
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelp1986 committed Feb 2, 2024
1 parent 95e4dde commit e0a529f
Showing 1 changed file with 63 additions and 45 deletions.
108 changes: 63 additions & 45 deletions docker/postman/postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@
"response": []
},
{
"name": "NASA-PDS/registry-api#349",
"name": "NASA-PDS/registry-api#349 Request for json+pds4 response fails in production",
"event": [
{
"listen": "test",
Expand Down Expand Up @@ -727,44 +727,6 @@
},
"response": []
},
{
"name": "NASA-PDS/registry-api#262",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 400\", () => {",
" pm.response.to.have.status(400);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/classes/collections?q=\"\"",
"host": [
"{{baseUrl}}"
],
"path": [
"",
"classes",
"collections"
],
"query": [
{
"key": "q",
"value": "\"\""
}
]
}
},
"response": []
},
{
"name": "NASA-PDS/registry-api#336 As a PDS operator, I want to know the health of the registry API service",
"event": [
Expand Down Expand Up @@ -1130,6 +1092,12 @@
"exec": [
"pm.test(\"Status code is 200\", () => {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Content-Type should be 'application/json'\", () => {",
" let expectedContentType = \"application/json\";",
" let actualContentType = pm.response.headers.get(\"Content-Type\");",
" pm.expect(actualContentType).to.include(expectedContentType);",
"});"
],
"type": "text/javascript"
Expand All @@ -1140,13 +1108,13 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/products/urn:nasa:pds:mars2020_sherloc::1.0",
"raw": "{{baseUrl}}/products/urn:nasa:pds:mars2020.spice::1.0",
"host": [
"{{baseUrl}}"
],
"path": [
"products",
"urn:nasa:pds:mars2020_sherloc::1.0"
"urn:nasa:pds:mars2020.spice::1.0"
]
}
},
Expand All @@ -1159,8 +1127,8 @@
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", () => {",
" pm.response.to.have.status(200);",
"pm.test(\"Status code is 404\", () => {",
" pm.response.to.have.status(404);",
"});"
],
"type": "text/javascript"
Expand All @@ -1171,18 +1139,19 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/classes/collections?q=",
"raw": "{{baseUrl}}/classes//collections?q=\"\"",
"host": [
"{{baseUrl}}"
],
"path": [
"classes",
"",
"collections"
],
"query": [
{
"key": "q",
"value": ""
"value": "\"\""
}
]
}
Expand Down Expand Up @@ -1252,6 +1221,55 @@
}
},
"response": []
},
{
"name": "NASA-PDS/registry-api#343 API falsely reports 10000 hits for hits>10000",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", () => {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Hits are less than 10,000\", () => {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.summary.hits).to.be.below(10000);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/products?limit=100&q=product_class%20eq%20\"Product_Observational\"&start=0",
"host": [
"{{baseUrl}}"
],
"path": [
"products"
],
"query": [
{
"key": "limit",
"value": "100"
},
{
"key": "q",
"value": "product_class%20eq%20\"Product_Observational\""
},
{
"key": "start",
"value": "0"
}
]
}
},
"response": []
}
]
},
Expand Down

0 comments on commit e0a529f

Please sign in to comment.