|
1 | 1 | { |
2 | 2 | "info": { |
3 | | - "_postman_id": "92a78754-20ad-4377-8ee1-cc4c26691839", |
4 | | - "name": "Planetary Data System API Reference Tests Copy 18", |
| 3 | + "_postman_id": "1a655299-afbc-4a5a-bc81-e63ca981722f", |
| 4 | + "name": "Planetary Data System API Reference Tests Copy 20", |
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.1.0/collection.json", |
7 | 7 | "_exporter_id": "11337552", |
8 | | - "_collection_link": "https://go.postman.co/collection/11337552-92a78754-20ad-4377-8ee1-cc4c26691839?source=collection_link" |
| 8 | + "_collection_link": "https://go.postman.co/collection/11337552-1a655299-afbc-4a5a-bc81-e63ca981722f?source=collection_link" |
9 | 9 | }, |
10 | 10 | "item": [ |
11 | 11 | { |
|
2236 | 2236 | "" |
2237 | 2237 | ], |
2238 | 2238 | "type": "text/javascript", |
2239 | | - "packages": {} |
| 2239 | + "packages": {}, |
| 2240 | + "requests": {} |
2240 | 2241 | } |
2241 | 2242 | } |
2242 | 2243 | ], |
|
3631 | 3632 | "method": "GET", |
3632 | 3633 | "header": [], |
3633 | 3634 | "url": { |
3634 | | - "raw": "{{baseUrl}}/products?q=(\".*logical_identifier\" exists)", |
| 3635 | + "raw": "{{baseUrl}}/products?q=(*logical_identifier exists)", |
3635 | 3636 | "host": [ |
3636 | 3637 | "{{baseUrl}}" |
3637 | 3638 | ], |
|
3641 | 3642 | "query": [ |
3642 | 3643 | { |
3643 | 3644 | "key": "q", |
3644 | | - "value": "(\".*logical_identifier\" exists)", |
| 3645 | + "value": "(*logical_identifier exists)", |
3645 | 3646 | "description": "find all documents, which should be all, that have a logical identifier defined" |
3646 | 3647 | } |
3647 | 3648 | ] |
|
3732 | 3733 | "method": "GET", |
3733 | 3734 | "header": [], |
3734 | 3735 | "url": { |
3735 | | - "raw": "{{baseUrl}}/products?q=(\".*illogical_identifier\" exists)", |
| 3736 | + "raw": "{{baseUrl}}/products?q=(*illogical_identifier exists)", |
3736 | 3737 | "host": [ |
3737 | 3738 | "{{baseUrl}}" |
3738 | 3739 | ], |
|
3742 | 3743 | "query": [ |
3743 | 3744 | { |
3744 | 3745 | "key": "q", |
3745 | | - "value": "(\".*illogical_identifier\" exists)" |
| 3746 | + "value": "(*illogical_identifier exists)" |
3746 | 3747 | } |
3747 | 3748 | ] |
3748 | 3749 | } |
|
3830 | 3831 | "method": "GET", |
3831 | 3832 | "header": [], |
3832 | 3833 | "url": { |
3833 | | - "raw": "{{baseUrl}}/products?q=not (\".*illogical_identifier\" exists)", |
| 3834 | + "raw": "{{baseUrl}}/products?q=not (*illogical_identifier exists)", |
3834 | 3835 | "host": [ |
3835 | 3836 | "{{baseUrl}}" |
3836 | 3837 | ], |
|
3840 | 3841 | "query": [ |
3841 | 3842 | { |
3842 | 3843 | "key": "q", |
3843 | | - "value": "not (\".*illogical_identifier\" exists)" |
| 3844 | + "value": "not (*illogical_identifier exists)" |
3844 | 3845 | } |
3845 | 3846 | ] |
3846 | 3847 | } |
|
3970 | 3971 | } |
3971 | 3972 | }, |
3972 | 3973 | "response": [] |
| 3974 | + }, |
| 3975 | + { |
| 3976 | + "name": "NASA-PDS/registry-api#406 search property wildcard on eq operator", |
| 3977 | + "event": [ |
| 3978 | + { |
| 3979 | + "listen": "test", |
| 3980 | + "script": { |
| 3981 | + "exec": [ |
| 3982 | + "// Test that response status code is 200", |
| 3983 | + "pm.test(\"Status code is 200\", function () {", |
| 3984 | + " pm.response.to.have.status(200);", |
| 3985 | + "});", |
| 3986 | + "", |
| 3987 | + "// Test that response body is a valid JSON object", |
| 3988 | + "pm.test(\"Response body is valid JSON object\", function () {", |
| 3989 | + " let jsonData;", |
| 3990 | + " pm.expect(function () {", |
| 3991 | + " jsonData = pm.response.json();", |
| 3992 | + " }).to.not.throw();", |
| 3993 | + " pm.expect(jsonData).to.be.an(\"object\");", |
| 3994 | + "});", |
| 3995 | + "", |
| 3996 | + "// Test that summary.hits exists and is a number", |
| 3997 | + "pm.test(\"summary.hits exists and is a number\", function () {", |
| 3998 | + " const jsonData = pm.response.json();", |
| 3999 | + " pm.expect(jsonData).to.have.nested.property(\"summary.hits\");", |
| 4000 | + " pm.expect(jsonData.summary.hits).to.be.a(\"number\");", |
| 4001 | + "});", |
| 4002 | + "", |
| 4003 | + "// Test that 'summary.hits' is exactly zero", |
| 4004 | + "pm.test(\"'summary.hits' is exactly zero\", function () {", |
| 4005 | + " var jsonData = pm.response.json();", |
| 4006 | + " pm.expect(jsonData.summary.hits).to.eql(0);", |
| 4007 | + "});", |
| 4008 | + "" |
| 4009 | + ], |
| 4010 | + "type": "text/javascript", |
| 4011 | + "packages": {}, |
| 4012 | + "requests": {} |
| 4013 | + } |
| 4014 | + } |
| 4015 | + ], |
| 4016 | + "request": { |
| 4017 | + "method": "GET", |
| 4018 | + "header": [], |
| 4019 | + "url": { |
| 4020 | + "raw": "{{baseUrl}}/products?q=(.*pds:logical_identifier eq \"urn:nasa:pds:insight_rad:data_calibrated:hp3_rad_cal_00390_20200101_120222\")", |
| 4021 | + "host": [ |
| 4022 | + "{{baseUrl}}" |
| 4023 | + ], |
| 4024 | + "path": [ |
| 4025 | + "products" |
| 4026 | + ], |
| 4027 | + "query": [ |
| 4028 | + { |
| 4029 | + "key": "q", |
| 4030 | + "value": "(.*pds:logical_identifier eq \"urn:nasa:pds:insight_rad:data_calibrated:hp3_rad_cal_00390_20200101_120222\")" |
| 4031 | + } |
| 4032 | + ] |
| 4033 | + } |
| 4034 | + }, |
| 4035 | + "response": [] |
3973 | 4036 | } |
3974 | 4037 | ] |
3975 | 4038 | }, |
|
0 commit comments