|
1 | 1 | { |
2 | 2 | "info": { |
3 | | - "_postman_id": "b0848a20-c13c-42f4-85c4-9eb4e9139209", |
| 3 | + "_postman_id": "86043a81-a2ba-499c-a9ff-2e5b0cb5ebce", |
4 | 4 | "name": "Planetary Data System API Reference Tests Copy 14", |
5 | 5 | "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", |
6 | 6 | "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json", |
7 | 7 | "_exporter_id": "49802443", |
8 | | - "_collection_link": "https://niessner-6751938.postman.co/workspace/Never-U-Mind's-Workspace~724116f1-e19a-4850-8bcf-678285afbbb8/collection/49802443-b0848a20-c13c-42f4-85c4-9eb4e9139209?action=share&source=collection_link&creator=49802443" |
| 8 | + "_collection_link": "https://niessner-6751938.postman.co/workspace/Never-U-Mind's-Workspace~724116f1-e19a-4850-8bcf-678285afbbb8/collection/49802443-86043a81-a2ba-499c-a9ff-2e5b0cb5ebce?action=share&source=collection_link&creator=49802443" |
9 | 9 | }, |
10 | 10 | "item": [ |
11 | 11 | { |
|
2347 | 2347 | "listen": "test", |
2348 | 2348 | "script": { |
2349 | 2349 | "exec": [ |
2350 | | - "pm.test.skip(\"C4438463 Status code is 200\", () => {pm.response.to.have.status(200)});", |
| 2350 | + "pm.test(\"C4438463 Status code is 200\", () => {pm.response.to.have.status(200)});", |
2351 | 2351 | "const content = pm.response.json();", |
2352 | | - "pm.test.skip(\"C4438463 Correct hits returned\", () => {pm.expect(content.summary.hits).to.eql(1)});", |
2353 | | - "pm.test.skip(\"C4438463 Correct data returned\", () => {pm.expect(content.data[0].id).to.eql(\"urn:nasa:pds:mars2020.spice:spice_kernels::3.0\")});", |
| 2352 | + "pm.test(\"C4438463 Correct hits returned\", () => {pm.expect(content.summary.hits).to.eql(1)});", |
| 2353 | + "pm.test(\"C4438463 Correct data returned\", () => {pm.expect(content.data[0].id).to.eql(\"urn:nasa:pds:mars2020.spice:spice_kernels::3.0\")});", |
2354 | 2354 | "", |
2355 | | - "pm.test.skip(\"C4443905 Data match the q param\", () => {pm.expect(content.data[0]['properties'][\"pds:Collection.pds:collection_type\"][0]).to.eql(\"SPICE Kernel\")});", |
| 2355 | + "pm.test(\"C4443905 Data match the q param\", () => {pm.expect(content.data[0]['properties'][\"pds:Collection.pds:collection_type\"][0]).to.eql(\"SPICE Kernel\")});", |
2356 | 2356 | "" |
2357 | 2357 | ], |
2358 | 2358 | "type": "text/javascript", |
|
2391 | 2391 | "listen": "test", |
2392 | 2392 | "script": { |
2393 | 2393 | "exec": [ |
2394 | | - "pm.test.skip(\"C4438479 Status code is 200\", () => {pm.response.to.have.status(200)});", |
| 2394 | + "pm.test(\"C4438479 Status code is 200\", () => {pm.response.to.have.status(200)});", |
2395 | 2395 | "const content = pm.response.json();", |
2396 | 2396 | "const relevantHits = content.data.filter(hit => hit.properties.lid[0] === \"urn:nasa:pds:mars2020.spice:spice_kernels\")", |
2397 | | - "pm.test.skip(\"C4438479 Correct hits returned\", () => { pm.expect(relevantHits.length).to.eql(1) });", |
2398 | | - "pm.test.skip(\"C4438479 Correct data returned\", () => {pm.expect(relevantHits[0].id).to.eql(\"urn:nasa:pds:mars2020.spice:spice_kernels::3.0\")});" |
| 2397 | + "pm.test(\"C4438479 Correct hits returned\", () => { pm.expect(relevantHits.length).to.eql(1) });", |
| 2398 | + "pm.test(\"C4438479 Correct data returned\", () => {pm.expect(relevantHits[0].id).to.eql(\"urn:nasa:pds:mars2020.spice:spice_kernels::3.0\")});" |
2399 | 2399 | ], |
2400 | 2400 | "type": "text/javascript", |
2401 | 2401 | "packages": {}, |
|
2417 | 2417 | "listen": "test", |
2418 | 2418 | "script": { |
2419 | 2419 | "exec": [ |
2420 | | - "pm.test.skip(\"C4438464 Status code is 200\", () => {pm.response.to.have.status(200)});", |
| 2420 | + "pm.test(\"C4438464 Status code is 200\", () => {pm.response.to.have.status(200)});", |
2421 | 2421 | "const content = pm.response.json();", |
2422 | 2422 | "pm.test.skip(\"C4438464 Correct hits returned\", () => {pm.expect(content.summary.hits).to.eql(5)});", |
2423 | 2423 | "", |
|
2461 | 2461 | "listen": "test", |
2462 | 2462 | "script": { |
2463 | 2463 | "exec": [ |
2464 | | - "pm.test.skip(\"C4438481 Status code is 200\", () => { pm.response.to.have.status(200) });", |
| 2464 | + "pm.test(\"C4438481 Status code is 200\", () => { pm.response.to.have.status(200) });", |
2465 | 2465 | "const content = pm.response.json();", |
2466 | 2466 | "const relevantHits = content.data.filter(hit => hit.properties.lid[0] === \"urn:nasa:pds:mars2020.spice:spice_kernels:mk_m2020\")", |
2467 | 2467 | "pm.test.skip(\"C4438481 Correct hits returned\", () => { pm.expect(relevantHits.length).to.eql(1) });", |
|
2488 | 2488 | "listen": "test", |
2489 | 2489 | "script": { |
2490 | 2490 | "exec": [ |
2491 | | - "pm.test.skip(\"C4438465 Status code is 200\", () => {pm.response.to.have.status(200)});", |
| 2491 | + "pm.test(\"C4438465 Status code is 200\", () => {pm.response.to.have.status(200)});", |
2492 | 2492 | "const content = pm.response.json();", |
2493 | | - "pm.test.skip(\"C4438465 Correct hits returned\", () => {pm.expect(content.summary.hits).to.eql(1)});", |
2494 | | - "pm.test.skip(\"C4438465 Correct data returned\", () => {pm.expect(content.data[0].id).to.eql(\"urn:nasa:pds:mars2020.spice:spice_kernels::3.0\")});", |
2495 | | - "pm.test.skip(\"C4443891 data match q param\", () => {pm.expect(content.data[0][\"properties\"][\"pds:Time_Coordinates.pds:start_date_time\"][0]).to.eql(\"2020-07-30T12:51:34Z\")});", |
| 2493 | + "pm.test(\"C4438465 Correct hits returned\", () => {pm.expect(content.summary.hits).to.eql(1)});", |
| 2494 | + "pm.test(\"C4438465 Correct data returned\", () => {pm.expect(content.data[0].id).to.eql(\"urn:nasa:pds:mars2020.spice:spice_kernels::3.0\")});", |
| 2495 | + "pm.test(\"C4443891 data match q param\", () => {pm.expect(content.data[0][\"properties\"][\"pds:Time_Coordinates.pds:start_date_time\"][0]).to.eql(\"2020-07-30T12:51:34Z\")});", |
2496 | 2496 | "" |
2497 | 2497 | ], |
2498 | 2498 | "type": "text/javascript", |
|
2531 | 2531 | "listen": "test", |
2532 | 2532 | "script": { |
2533 | 2533 | "exec": [ |
2534 | | - "pm.test.skip(\"C4438482 Status code is 200\", () => {pm.response.to.have.status(200)});", |
| 2534 | + "pm.test(\"C4438482 Status code is 200\", () => {pm.response.to.have.status(200)});", |
2535 | 2535 | "const content = pm.response.json();", |
2536 | 2536 | "const relevantHits = content.data.filter(hit => hit.properties.lid[0] === \"urn:nasa:pds:mars2020.spice:spice_kernels\")", |
2537 | | - "pm.test.skip(\"C4438482 Correct hits returned\", () => { pm.expect(relevantHits.length).to.eql(1) });", |
2538 | | - "pm.test.skip(\"C4438482 Correct data returned\", () => {pm.expect(relevantHits[0].id).to.eql(\"urn:nasa:pds:mars2020.spice:spice_kernels::3.0\")});" |
| 2537 | + "pm.test(\"C4438482 Correct hits returned\", () => { pm.expect(relevantHits.length).to.eql(1) });", |
| 2538 | + "pm.test(\"C4438482 Correct data returned\", () => {pm.expect(relevantHits[0].id).to.eql(\"urn:nasa:pds:mars2020.spice:spice_kernels::3.0\")});" |
2539 | 2539 | ], |
2540 | 2540 | "type": "text/javascript", |
2541 | 2541 | "packages": {}, |
|
2559 | 2559 | "exec": [ |
2560 | 2560 | "pm.test(\"C4438466 Status code is 200\", () => {pm.response.to.have.status(200)});", |
2561 | 2561 | "const content = pm.response.json();", |
2562 | | - "pm.test(\"C4438466 Correct hits returned\", () => {pm.expect(content.summary.hits).to.eql(1)});", |
2563 | | - "pm.test(\"C4438466 Correct data returned\", () => {pm.expect(content.data[0].id).to.eql(\"urn:nasa:pds:mars2020.spice::3.0\")});", |
| 2562 | + "pm.test.skip(\"C4438466 Correct hits returned\", () => {pm.expect(content.summary.hits).to.eql(1)});", |
| 2563 | + "pm.test.skip(\"C4438466 Correct data returned\", () => {pm.expect(content.data[0].id).to.eql(\"urn:nasa:pds:mars2020.spice::3.0\")});", |
2564 | 2564 | "", |
2565 | | - "pm.test(\"C4443890 Correct data returned according to q param\", () => {pm.expect(content.data[0][\"properties\"][\"pds:Time_Coordinates.pds:start_date_time\"][0]).to.eql(\"2020-07-30T12:51:34Z\")});" |
| 2565 | + "pm.test.skip(\"C4443890 Correct data returned according to q param\", () => {pm.expect(content.data[0][\"properties\"][\"pds:Time_Coordinates.pds:start_date_time\"][0]).to.eql(\"2020-07-30T12:51:34Z\")});" |
2566 | 2566 | ], |
2567 | 2567 | "type": "text/javascript", |
2568 | | - "packages": {} |
| 2568 | + "packages": {}, |
| 2569 | + "requests": {} |
2569 | 2570 | } |
2570 | 2571 | } |
2571 | 2572 | ], |
|
2603 | 2604 | "pm.test(\"C4438483 Status code is 200\", () => {pm.response.to.have.status(200)});", |
2604 | 2605 | "const content = pm.response.json();", |
2605 | 2606 | "const relevantHits = content.data.filter(hit => hit.properties.lid[0] === \"urn:nasa:pds:mars2020.spice\")", |
2606 | | - "pm.test(\"C4438483 Correct hits returned\", () => { pm.expect(relevantHits.length).to.eql(1) });", |
2607 | | - "pm.test(\"C4438483 Correct data returned\", () => {pm.expect(relevantHits[0].id).to.eql(\"urn:nasa:pds:mars2020.spice::3.0\")});" |
| 2607 | + "pm.test.skip(\"C4438483 Correct hits returned\", () => { pm.expect(relevantHits.length).to.eql(1) });", |
| 2608 | + "pm.test.skip(\"C4438483 Correct data returned\", () => {pm.expect(relevantHits[0].id).to.eql(\"urn:nasa:pds:mars2020.spice::3.0\")});" |
2608 | 2609 | ], |
2609 | 2610 | "type": "text/javascript", |
2610 | | - "packages": {} |
| 2611 | + "packages": {}, |
| 2612 | + "requests": {} |
2611 | 2613 | } |
2612 | 2614 | } |
2613 | 2615 | ], |
|
3928 | 3930 | "", |
3929 | 3931 | "pm.test(\"C2488844 Response contains same number of properties\", () => {", |
3930 | 3932 | " const responseJson = pm.response.json();", |
3931 | | - " pm.expect(responseJson.length).to.be.eql(146);", |
| 3933 | + " pm.expect(responseJson.length).to.be.eql(169);", |
3932 | 3934 | "});", |
3933 | 3935 | "", |
3934 | 3936 | "pm.test(\"C2488844 Response property objects follow expected schema\", () => {", |
|
3943 | 3945 | "// Some additional tests may be warranted in future based on presence of particular keys, key formats, or types." |
3944 | 3946 | ], |
3945 | 3947 | "type": "text/javascript", |
3946 | | - "packages": {} |
| 3948 | + "packages": {}, |
| 3949 | + "requests": {} |
3947 | 3950 | } |
3948 | 3951 | }, |
3949 | 3952 | { |
|
3953 | 3956 | "" |
3954 | 3957 | ], |
3955 | 3958 | "type": "text/javascript", |
3956 | | - "packages": {} |
| 3959 | + "packages": {}, |
| 3960 | + "requests": {} |
3957 | 3961 | } |
3958 | 3962 | } |
3959 | 3963 | ], |
|
0 commit comments