Skip to content

Commit

Permalink
fix: failing postman request
Browse files Browse the repository at this point in the history
  • Loading branch information
eschrewe committed Aug 5, 2024
1 parent 1d03ea2 commit 1d57a6c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions local/postman/puris-integration-test.postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info": {
"_postman_id": "8a41092f-829f-48e4-8061-3b365dce8b46",
"_postman_id": "c7fb4ed1-3c2c-48cf-b41d-ad2b1af73a35",
"name": "puris-integration-test",
"description": "The collection assumes the following roles:\n\n- Customer PURIS (upper tier)\n- Supplier PURIS (lower tier)\n \n\nIt creates the opposite partner and the respective view on the semiconductor material or product.\n\nTo run the tests correctly, take the environment and fill the respective secrets:\n\n- CUSTOMER_EDC_API_KEY\n- CUSTOMER_PURIS_BACKEND_API_KEY\n- CUSTOMER__MANAGE_CLIENT_SECRET\n- SUPPLIER_EDC_API_KEY\n- SUPPLIER_PURIS_BACKEND_API_KEY\n- SUPPLIER_MANAGE_CLIENT_SECRET\n \n\nWhen using the another environment, update / create a new environment.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
Expand Down Expand Up @@ -3333,7 +3333,12 @@
"listen": "prerequest",
"script": {
"exec": [
""
"var plain = pm.collectionVariables.get(\"MATERIAL_NUMBER_CUSTOMER\")",
"var encoded = Buffer.from(plain).toString(\"base64\")",
"pm.collectionVariables.set(\"B64_MNR_CUSTOMER\", encoded)",
"var plain = pm.collectionVariables.get(\"MATERIAL_NUMBER_SUPPLIER\")",
"var encoded = Buffer.from(plain).toString(\"base64\")",
"pm.collectionVariables.set(\"B64_MNR_SUPPLIER\", encoded)"
],
"type": "text/javascript",
"packages": {}
Expand All @@ -3344,7 +3349,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{SUPPLIER_PURIS_BACKEND}}/catena/delivery?ownMaterialNumber={{MATERIAL_NUMBER_SUPPLIER}}",
"raw": "{{SUPPLIER_PURIS_BACKEND}}/catena/delivery?ownMaterialNumber={{B64_MNR_SUPPLIER}}",
"host": [
"{{SUPPLIER_PURIS_BACKEND}}"
],
Expand All @@ -3355,7 +3360,7 @@
"query": [
{
"key": "ownMaterialNumber",
"value": "{{MATERIAL_NUMBER_SUPPLIER}}"
"value": "{{B64_MNR_SUPPLIER}}"
}
]
}
Expand Down Expand Up @@ -4353,4 +4358,4 @@
"type": "string"
}
]
}
}

0 comments on commit 1d57a6c

Please sign in to comment.