Skip to content

Commit

Permalink
fix: don't set material number cx as customer and test for one partner
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-rm-meyer-ISST committed Nov 26, 2024
1 parent 0f3cf9a commit 261733d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ body:json {
"materialFlag": false,
"productFlag": true,
"ownMaterialNumber": "MNR-4177-S",
"materialNumberCx": null,
"name": "Central Control Unit"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ body:json {
"materialFlag": true,
"productFlag": false,
"ownMaterialNumber": "{{MATERIAL_NUMBER_CUSTOMER}}",
"materialNumberCx": "{{MATERIAL_NUMBER_CX}}",
"name": "Semiconductor"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ tests {
expect(res.getStatus()).to.equal(200);
})

test("Verify response contains two objects (puris owner, supplier partner)", function () {
expect(res.getBody()).to.be.an("array").with.lengthOf(2);
test("Verify response contains one partner (supplier partner)", function () {
expect(res.getBody()).to.be.an("array").with.lengthOf(1);
});

test("Verify supplier partner values (BPNL with one BPNS with one BPNA)", function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ get {

params:query {
assetIds: {{DTR_QUERY_SPECIFIC_ASSET_IDS_ENCODED}}
~null:
}

headers {
Expand Down
10 changes: 5 additions & 5 deletions local/postman/puris-integration-test.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"materialFlag\": true,\n \"productFlag\": false,\n \"ownMaterialNumber\": \"{{MATERIAL_NUMBER_CUSTOMER}}\",\n \"materialNumberCx\": \"{{MATERIAL_NUMBER_CX}}\",\n \"name\": \"Semiconductor\"\n}"
"raw": "{\n \"materialFlag\": true,\n \"productFlag\": false,\n \"ownMaterialNumber\": \"{{MATERIAL_NUMBER_CUSTOMER}}\",\n \"name\": \"Semiconductor\"\n}"
},
"url": {
"raw": "{{CUSTOMER_PURIS_BACKEND}}/catena/materials",
Expand Down Expand Up @@ -86,7 +86,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"materialFlag\": false,\n \"productFlag\": true,\n \"ownMaterialNumber\": \"MNR-4177-S\",\n \"materialNumberCx\": null,\n \"name\": \"Central Control Unit\"\n}"
"raw": "{\n \"materialFlag\": false,\n \"productFlag\": true,\n \"ownMaterialNumber\": \"MNR-4177-S\",\n \"name\": \"Central Control Unit\"\n}"
},
"url": {
"raw": "{{CUSTOMER_PURIS_BACKEND}}/catena/materials",
Expand Down Expand Up @@ -310,8 +310,8 @@
" pm.response.to.have.status(200);",
"})",
"",
"pm.test(\"Verify response contains two objects (puris owner, supplier partner)\", function () {",
" pm.expect(pm.response.json()).to.be.an(\"array\").with.lengthOf(2);",
"pm.test(\"Verify response contains one partner (supplier partner)\", function () {",
" pm.expect(pm.response.json()).to.be.an(\"array\").with.lengthOf(1);",
"});",
"",
"pm.test(\"Verify supplier partner values (BPNL with one BPNS with one BPNA)\", function () {",
Expand Down Expand Up @@ -4358,4 +4358,4 @@
"type": "string"
}
]
}
}

0 comments on commit 261733d

Please sign in to comment.