Skip to content

Commit 88e7aad

Browse files
author
Thomas Loubrieu
committed
change test expectation for GONE members/members end-point
1 parent ecd47b6 commit 88e7aad

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

docker/postman/postman_collection.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,11 +2443,7 @@
24432443
"listen": "test",
24442444
"script": {
24452445
"exec": [
2446-
"pm.test(\"C4438464 Status code is 200\", () => {pm.response.to.have.status(200)});",
2447-
"const content = pm.response.json();",
2448-
"pm.test.skip(\"C4438464 Correct hits returned\", () => {pm.expect(content.summary.hits).to.eql(5)});",
2449-
"",
2450-
"pm.test.skip(\"C4443902 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\")});",
2446+
"pm.test(\"C4438464 Status code is 410\", () => {pm.response.to.have.status(410)});",
24512447
""
24522448
],
24532449
"type": "text/javascript",
@@ -2487,11 +2483,7 @@
24872483
"listen": "test",
24882484
"script": {
24892485
"exec": [
2490-
"pm.test(\"C4438481 Status code is 200\", () => { pm.response.to.have.status(200) });",
2491-
"const content = pm.response.json();",
2492-
"const relevantHits = content.data.filter(hit => hit.properties.lid[0] === \"urn:nasa:pds:mars2020.spice:spice_kernels:mk_m2020\")",
2493-
"pm.test.skip(\"C4438481 Correct hits returned\", () => { pm.expect(relevantHits.length).to.eql(1) });",
2494-
"pm.test.skip(\"C4438481 Correct data returned\", () => {pm.expect(relevantHits[0].id).to.eql(\"urn:nasa:pds:mars2020.spice:spice_kernels:mk_m2020::3.0\")});",
2486+
"pm.test(\"C4438481 Status code is 410\", () => { pm.response.to.have.status(410) });",
24952487
""
24962488
],
24972489
"type": "text/javascript",

0 commit comments

Comments
 (0)