Skip to content

Commit

Permalink
feat: parameterize switch id
Browse files Browse the repository at this point in the history
  • Loading branch information
oderayi committed Jun 27, 2024
1 parent aa35fa2 commit d695fbf
Show file tree
Hide file tree
Showing 24 changed files with 62 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
"id": 14,
"description": "Payee Notification FSP Source is Switch",
"exec": [
"// expect(environment.payeeCallbackNotification.headers['fspiop-source']).to.equal('switch')"
"// expect(environment.payeeCallbackNotification.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -656,7 +656,7 @@
"id": 14,
"description": "Payee Notification FSP Source is Switch",
"exec": [
"expect(environment.payeeCallbackNotification.headers['fspiop-source']).to.equal('switch')"
"expect(environment.payeeCallbackNotification.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"description": "Payer side Callback Header - fspiop-source is switch",
"exec": [
"if (environment.ENABLE_WS_ASSERTIONS===true) {",
" expect(requestVariables.sim1Callback.headers['fspiop-source']).to.equal('switch')",
" expect(requestVariables.sim1Callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
"}"
]
},
Expand Down Expand Up @@ -355,7 +355,7 @@
"description": "Payer side Callback Header - fspiop-source is switch",
"exec": [
"if (environment.ENABLE_WS_ASSERTIONS===true) {",
" expect(requestVariables.sim1Callback.headers['fspiop-source']).to.equal('switch')",
" expect(requestVariables.sim1Callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
"}"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
"description": "Payer side Callback Header - fspiop-source is switch",
"exec": [
"if (environment.ENABLE_WS_ASSERTIONS===true) {",
" expect(requestVariables.sim1Callback.headers['fspiop-source']).to.equal('switch')",
" expect(requestVariables.sim1Callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
"}"
]
},
Expand Down Expand Up @@ -391,7 +391,7 @@
"description": "Payer side Callback Header - fspiop-source is switch",
"exec": [
"if (environment.ENABLE_WS_ASSERTIONS===true) {",
" expect(requestVariables.sim1Callback.headers['fspiop-source']).to.equal('switch')",
" expect(requestVariables.sim1Callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
"}"
]
},
Expand Down
8 changes: 4 additions & 4 deletions collections/hub/golden_path/feature_tests/block_transfer.json
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,9 @@
},
{
"id": 4,
"description": "'fspiop-source' should be 'switch'",
"description": "'fspiop-source' should be '{$inputs.HUB_NAME}'",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch');"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}');"
]
},
{
Expand Down Expand Up @@ -1259,9 +1259,9 @@
},
{
"id": 4,
"description": "'fspiop-source' should be 'switch'",
"description": "'fspiop-source' should be '{$inputs.HUB_NAME}'",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch');"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}');"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
"id": 12,
"description": "Callback Header - fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')",
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down Expand Up @@ -882,7 +882,7 @@
"id": 3,
"description": "Payee Side Callback Header - fspiop-source is switch",
"exec": [
"expect(requestVariables.payeeCallback.headers['fspiop-source']).to.equal('switch')",
"expect(requestVariables.payeeCallback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
"id": 12,
"description": "Callback Header - fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')",
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down Expand Up @@ -958,7 +958,7 @@
"id": 12,
"description": "Callback Header - fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')",
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@
"id": 15,
"description": "Callback Header - fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')",
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
"id": 2,
"description": "fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
"id": 2,
"description": "fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -764,7 +764,7 @@
"id": 2,
"description": "fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
"id": 2,
"description": "fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -764,7 +764,7 @@
"id": 2,
"description": "fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down
16 changes: 8 additions & 8 deletions collections/hub/golden_path/feature_tests/get_transfers.json
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,9 @@
},
{
"id": 2,
"description": "Payer FSP: 'fspiop-source' is 'switch'",
"description": "Payer FSP: 'fspiop-source' is $inputs.HUB_NAME",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -658,10 +658,10 @@
},
{
"id": 2,
"description": "Payee FSP: 'fspiop-source' is 'switch'",
"description": "Payee FSP: 'fspiop-source' is $inputs.HUB_NAME",
"exec": [
"if (environment.ENABLE_WS_ASSERTIONS===true) {",
" expect(requestVariables.payeeCallback.headers['fspiop-source']).to.equal('switch')",
" expect(requestVariables.payeeCallback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
"}"
]
},
Expand Down Expand Up @@ -786,10 +786,10 @@
},
{
"id": 2,
"description": "Payee FSP: 'fspiop-source' is 'switch'",
"description": "Payee FSP: 'fspiop-source' is $inputs.HUB_NAME",
"exec": [
"if (environment.ENABLE_WS_ASSERTIONS===true) {",
" expect(requestVariables.payeeCallback.headers['fspiop-source']).to.equal('switch')",
" expect(requestVariables.payeeCallback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
"}"
]
},
Expand Down Expand Up @@ -923,9 +923,9 @@
},
{
"id": 2,
"description": "Payer FSP: 'fspiop-source' is 'switch'",
"description": "Payer FSP: 'fspiop-source' is $inputs.HUB_NAME",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
"id": 14,
"description": "Payee Notification FSP Source is Switch",
"exec": [
"expect(environment.payeeCallbackNotification.headers['fspiop-source']).to.equal('switch')"
"expect(environment.payeeCallbackNotification.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -620,7 +620,7 @@
"id": 14,
"description": "Payee Notification FSP Source is Switch",
"exec": [
"expect(environment.payeeCallbackNotification.headers['fspiop-source']).to.equal('switch')"
"expect(environment.payeeCallbackNotification.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -997,11 +997,11 @@
},
{
"id": 74,
"description": "On testfsp1 'fspiop-source' is 'switch'",
"description": "On testfsp1 'fspiop-source' is $inputs.HUB_NAME",
"exec": [
"/* Disabled temporarily",
"if (environment.TEST_NOTIFICATIONS && environment.ENABLE_WS_ASSERTIONS===true) {",
" expect(requestVariables.payeeSideTransferRequest.headers['fspiop-source']).to.equal('switch')",
" expect(requestVariables.payeeSideTransferRequest.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
"}",
"*/"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
"id": 12,
"description": "Callback Header - fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')",
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down Expand Up @@ -481,7 +481,7 @@
"id": 12,
"description": "Callback Header - fspiop-source is switch",
"exec": [
"expect(requestVariables.transferCallback.headers['fspiop-source']).to.equal('switch')",
"expect(requestVariables.transferCallback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@
"id": 12,
"description": "Callback Header - fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')",
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@
"id": 12,
"description": "Callback Header - fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')",
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
"id": 12,
"description": "Callback Header - fspiop-source is switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')",
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"id": 3,
"description": "Payer FSP Callback Header - fspiop-source is switch",
"exec": [
"expect(requestVariables.payerCallback.headers['fspiop-source']).to.equal('switch')",
"expect(requestVariables.payerCallback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down Expand Up @@ -187,7 +187,7 @@
"id": 7,
"description": "Payee FSP Callback Header - fspiop-source is switch",
"exec": [
"expect(requestVariables.payeeCallback.headers['fspiop-source']).to.equal('switch')",
"expect(requestVariables.payeeCallback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@
"if (environment.ON_US_TRANSFERS_ENABLED===true) {",
"expect(environment.callbackt.headers['fspiop-source']).to.equal('{$inputs.toFspId}')",
"}else{",
" expect(environment.callbackt.headers['fspiop-source']).to.equal('switch')",
" expect(environment.callbackt.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
"}"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"id": 3,
"description": "payerfsp callback - fspiop-source should be switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -164,7 +164,7 @@
"id": 13,
"description": "payeefsp callback - fspiop-source should be switch",
"exec": [
"expect(environment.bulkTransfersNegativeCallback.headers['fspiop-source']).to.equal('switch')"
"expect(environment.bulkTransfersNegativeCallback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -236,7 +236,7 @@
"id": 23,
"description": "payeefsp request - fspiop-source should be switch",
"exec": [
"expect(environment.bulkTransfersNegativeRequest.headers['fspiop-source']).to.equal('switch')"
"expect(environment.bulkTransfersNegativeRequest.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -636,7 +636,7 @@
"id": 3,
"description": "payerfsp callback - fspiop-source should be switch",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -708,7 +708,7 @@
"id": 13,
"description": "payeefsp callback - fspiop-source should be switch",
"exec": [
"expect(environment.bulkTransfersNegativeCallback.headers['fspiop-source']).to.equal('switch')"
"expect(environment.bulkTransfersNegativeCallback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -780,7 +780,7 @@
"id": 23,
"description": "payeefsp request - fspiop-source should be switch",
"exec": [
"expect(environment.bulkTransfersNegativeRequest.headers['fspiop-source']).to.equal('switch')"
"expect(environment.bulkTransfersNegativeRequest.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
"id": 3,
"description": "payerfsp callback - fspiop-source should be switch",
"exec": [
"expect(requestVariables.bulkTransferCallback.headers['fspiop-source']).to.equal('switch')"
"expect(requestVariables.bulkTransferCallback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -441,7 +441,7 @@
" Accept: `{$inputs.acceptBulkTransfers}`,",
" Date: `{$environment.headerDate}`,",
" 'FSPIOP-Source': `{$inputs.fromFspId}`,",
" 'FSPIOP-Destination': 'switch'",
" 'FSPIOP-Destination': '{$inputs.HUB_NAME}'",
" }",
" };",
" ",
Expand Down
Loading

0 comments on commit d695fbf

Please sign in to comment.