generated from NASA-PDS/template-repo-java
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
thomas loubrieu
committed
Jul 24, 2024
1 parent
8804267
commit 43d5f72
Showing
1 changed file
with
4 additions
and
274 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "147b1883-bab2-452e-8bb0-58bdab0c8e75", | ||
"name": "Planetary Data System API Reference Tests Copy 5", | ||
"_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: [email protected]", | ||
"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-147b1883-bab2-452e-8bb0-58bdab0c8e75?action=share&source=collection_link&creator=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": [ | ||
{ | ||
|
@@ -1777,77 +1777,6 @@ | |
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "direct DSL", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"exec": [ | ||
"pm.test(\"C4332661 Status code is 400\", () => {", | ||
" pm.response.to.have.status(400);", | ||
"});", | ||
"", | ||
"pm.test(\"C4332661 Response takes less than 1s\", () => {", | ||
" pm.expect(pm.response.responseTime).to.be.below(1000); ", | ||
"});", | ||
"", | ||
"" | ||
], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
} | ||
], | ||
"protocolProfileBehavior": { | ||
"disabledSystemHeaders": { | ||
"accept": true | ||
} | ||
}, | ||
"request": { | ||
"method": "GET", | ||
"header": [ | ||
{ | ||
"key": "Accept", | ||
"value": "application/json", | ||
"type": "text" | ||
} | ||
], | ||
"url": { | ||
"raw": "{{baseUrl}}/products/:lid/all?limit=2&search-after=2024-04-30T19:15:08.324465Z", | ||
"host": [ | ||
"{{baseUrl}}" | ||
], | ||
"path": [ | ||
"products", | ||
":lid", | ||
"all" | ||
], | ||
"query": [ | ||
{ | ||
"key": "limit", | ||
"value": "2" | ||
}, | ||
{ | ||
"key": "sort", | ||
"value": "ops:Harvest_Info.ops:harvest_date_time", | ||
"disabled": true | ||
}, | ||
{ | ||
"key": "search-after", | ||
"value": "2024-04-30T19:15:08.324465Z" | ||
} | ||
], | ||
"variable": [ | ||
{ | ||
"key": "lid", | ||
"value": "urn:nasa:pds:mars2020.spice:spice_kernels:mk_m2020" | ||
} | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "NASA-PDS/registry-api#223 products/{id}/members", | ||
"event": [ | ||
|
@@ -2623,103 +2552,6 @@ | |
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "NASA-PDS/registry-api#461 classes basic behaviour", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"exec": [ | ||
"pm.test(\"4438495 Status code is 200\", () => {pm.response.to.have.status(200)});", | ||
"const content = pm.response.json();", | ||
"", | ||
"pm.test(\"4438495 Correct content count returned\", () => { pm.expect(content.length).to.eql(35) });" | ||
], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
} | ||
], | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "{{baseUrl}}/classes", | ||
"host": [ | ||
"{{baseUrl}}" | ||
], | ||
"path": [ | ||
"classes" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "NASA-PDS/registry-api#511 classes/{class} basic behaviour", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"exec": [ | ||
"pm.test(\"C4438483 Status code is 200\", () => {pm.response.to.have.status(200)});", | ||
"const content = pm.response.json();", | ||
"pm.test(\"C4438483 only bundles returned\", () => {pm.expect(content.data.every(hit => hit.properties[\"pds:Identification_Area.pds:product_class\"][0] === \"Product_Bundle\")).to.be.true})" | ||
], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
} | ||
], | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "{{baseUrl}}/classes/bundle", | ||
"host": [ | ||
"{{baseUrl}}" | ||
], | ||
"path": [ | ||
"classes", | ||
"bundle" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "NASA-PDS/registry-api#488 classes/{class} default to latest-only", | ||
"event": [ | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"exec": [ | ||
"const content = pm.response.json();", | ||
"const relevantHits = content.data.filter(hit => hit.properties.lid[0] === \"urn:nasa:pds:mars2020.spice\")", | ||
"pm.test(\"C4438484 Correct hits returned\", () => { pm.expect(relevantHits.length).to.eql(1) }); // will be 3 if not only latest", | ||
"pm.test(\"C4438484 Correct data returned\", () => {pm.expect(relevantHits[0].id).to.eql(\"urn:nasa:pds:mars2020.spice::3.0\")});" | ||
], | ||
"type": "text/javascript", | ||
"packages": {} | ||
} | ||
} | ||
], | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "{{baseUrl}}/classes/bundle", | ||
"host": [ | ||
"{{baseUrl}}" | ||
], | ||
"path": [ | ||
"classes", | ||
"bundle" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
}, | ||
|
@@ -3194,81 +3026,6 @@ | |
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "New Request", | ||
"protocolProfileBehavior": { | ||
"disableBodyPruning": true | ||
}, | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"query\": {\n \"wildcard\": {\n \"lid\": {\n \"value\": \"urn:nasa:pds:insight_*\"\n }\n }\n }\n}\nCopy", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "{{opensearchUrl}}/registry/_search", | ||
"host": [ | ||
"{{opensearchUrl}}" | ||
], | ||
"path": [ | ||
"registry", | ||
"_search" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "New Request Copy", | ||
"protocolProfileBehavior": { | ||
"disableBodyPruning": true | ||
}, | ||
"request": { | ||
"auth": { | ||
"type": "basic", | ||
"basic": [ | ||
{ | ||
"key": "password", | ||
"value": "admin", | ||
"type": "string" | ||
}, | ||
{ | ||
"key": "username", | ||
"value": "admin", | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"method": "GET", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"query\": {\n \"simple_query_string\": {\n \"query\": \"urn*\",\n \"fields\": [\"lid\"],\n \"fuzzy_max_expansions\": 0\n }\n },\n \"fields\": [\"pds:Bundle_Member_Entry/pds:lid_reference\"]\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "{{opensearchUrl}}/registry/_search", | ||
"host": [ | ||
"{{opensearchUrl}}" | ||
], | ||
"path": [ | ||
"registry", | ||
"_search" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
}, | ||
|
@@ -3356,33 +3113,6 @@ | |
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "investigations Copy", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "{{baseUrl}}/products?q=product_class eq \"Product_Context\"&limit=9999", | ||
"host": [ | ||
"{{baseUrl}}" | ||
], | ||
"path": [ | ||
"products" | ||
], | ||
"query": [ | ||
{ | ||
"key": "q", | ||
"value": "product_class eq \"Product_Context\"" | ||
}, | ||
{ | ||
"key": "limit", | ||
"value": "9999" | ||
} | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} | ||
|
@@ -3435,4 +3165,4 @@ | |
"type": "string" | ||
} | ||
] | ||
} | ||
} |