Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
chore: [MCIL-22, MCIL-42] postman update/delete terminal (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoGiuliani authored May 14, 2024
1 parent 50394bb commit cb995e7
Showing 1 changed file with 106 additions and 11 deletions.
117 changes: 106 additions & 11 deletions src/test/postman/mil-terminal-registry.postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"info": {
"_postman_id": "7ed6e99e-50de-4fe1-a17f-f582d6545160",
"_postman_id": "6f68cddc-016b-4d27-ac7e-c6ebc8dd4534",
"name": "Terminal Registry Microservice Copy",
"description": "Terminal Registry Microservice for Multi-channel Integration Layer of SW Client Project\n\nContact Support:\n Name: Antonio Tarricone\n Email: [email protected]",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "26204659"
"_exporter_id": "29646859"
},
"item": [
{
Expand Down Expand Up @@ -57,13 +57,11 @@
"header": [
{
"key": "RequestId",
"value": "{{requestId}}",
"type": "text"
"value": "{{requestId}}"
},
{
"key": "Version",
"value": "{{mil_auth_api_version}}",
"type": "text"
"value": "{{mil_auth_api_version}}"
}
],
"body": {
Expand All @@ -77,7 +75,7 @@
{
"key": "client_id",
"value": "{{tr_token_client_id}}",
"type": "text"
"type": "text"
},
{
"key": "client_secret",
Expand Down Expand Up @@ -119,9 +117,9 @@
"method": "POST",
"header": [
{
"description": "(Required) Request Id that will be logged by services",
"key": "RequestId",
"value": "{{requestId}}"
"value": "{{requestId}}",
"description": "(Required) Request Id that will be logged by services"
}
],
"body": {
Expand Down Expand Up @@ -153,6 +151,9 @@
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(pm.response.text());",
"pm.collectionVariables.set(\"terminalUuid\", jsonData.terminals[0].terminalUuid);",
"",
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
Expand All @@ -167,9 +168,9 @@
"method": "GET",
"header": [
{
"description": "(Required) Request Id that will be logged by services",
"key": "RequestId",
"value": "{{requestId}}"
"value": "{{requestId}}",
"description": "(Required) Request Id that will be logged by services"
}
],
"url": {
Expand All @@ -196,6 +197,95 @@
"description": "Returns a page of terminals"
},
"response": []
},
{
"name": "Update Terminal",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 204\", function () {",
" pm.response.to.have.status(204);",
"});",
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "PATCH",
"header": [
{
"key": "RequestId",
"value": "{{requestId}}",
"description": "(Required) Request Id that will be logged by services"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"terminalHandlerId\": \"98765\",\r\n \"terminalId\": \"67899876\",\r\n \"enabled\": false,\r\n \"payeeCode\": \"MRNGLG93A01B103A\",\r\n \"slave\": false,\r\n \"workstations\": [\"cassa-1-ufficio-1\",\"cassa-2-ufficio-1\"],\r\n \"pagoPa\": true,\r\n \"pagoPaConf\": {\r\n \"pspId\": \"pspspId\",\r\n \"brokerId\": \"brockId\",\r\n \"channelId\": \"canalId\"\r\n },\r\n \"idpay\": false\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{MIL_TR_BASE_URL}}/terminals/{{terminalUuid}}",
"host": [
"{{MIL_TR_BASE_URL}}"
],
"path": [
"terminals",
"{{terminalUuid}}"
]
},
"description": "Returns a page of terminals"
},
"response": []
},
{
"name": "Delete Terminal",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 204\", function () {",
" pm.response.to.have.status(204);",
"});",
""
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "DELETE",
"header": [
{
"key": "RequestId",
"value": "{{requestId}}",
"description": "(Required) Request Id that will be logged by services"
}
],
"url": {
"raw": "{{MIL_TR_BASE_URL}}/terminals/{{terminalUuid}}",
"host": [
"{{MIL_TR_BASE_URL}}"
],
"path": [
"terminals",
"{{terminalUuid}}"
]
},
"description": "Returns a page of terminals"
},
"response": []
}
],
"auth": {
Expand Down Expand Up @@ -294,6 +384,11 @@
{
"key": "requestId",
"value": "d0d654e6-97da-4848-b568-99fedccb642b"
},
{
"key": "terminalUuid",
"value": "",
"type": "string"
}
]
}

0 comments on commit cb995e7

Please sign in to comment.