Skip to content

Commit

Permalink
feat(mojaloop/#3984): parameterize switch id (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
oderayi authored Jun 28, 2024
1 parent 2c5a801 commit c7e5bca
Show file tree
Hide file tree
Showing 34 changed files with 188 additions and 186 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"path": "/participants/{$inputs.HUB_NAME}/accounts",
"method": "get",
"params": {
"name": "Hub"
"name": "{$inputs.HUB_NAME}"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
Expand Down
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 @@ -173,10 +173,10 @@
},
{
"id": 5,
"description": "Payer side Callback Header - fspiop-source is switch",
"description": "Payer side Callback Header - fspiop-source is switch's name",
"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 @@ -352,10 +352,10 @@
},
{
"id": 5,
"description": "Payer side Callback Header - fspiop-source is switch",
"description": "Payer side Callback Header - fspiop-source is switch's name",
"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 @@ -210,10 +210,10 @@
},
{
"id": 5,
"description": "Payer side Callback Header - fspiop-source is switch",
"description": "Payer side Callback Header - fspiop-source is switch's name",
"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 @@ -388,10 +388,10 @@
},
{
"id": 5,
"description": "Payer side Callback Header - fspiop-source is switch",
"description": "Payer side Callback Header - fspiop-source is switch's name",
"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 switch's 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 switch's 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 @@ -441,9 +441,9 @@
},
{
"id": 12,
"description": "Callback Header - fspiop-source is switch",
"description": "Callback Header - fspiop-source is switch's name",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')",
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down Expand Up @@ -880,9 +880,9 @@
},
{
"id": 3,
"description": "Payee Side Callback Header - fspiop-source is switch",
"description": "Payee Side Callback Header - fspiop-source is switch's name",
"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 @@ -437,9 +437,9 @@
},
{
"id": 12,
"description": "Callback Header - fspiop-source is switch",
"description": "Callback Header - fspiop-source is switch's name",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')",
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')",
""
]
},
Expand Down Expand Up @@ -956,9 +956,9 @@
},
{
"id": 12,
"description": "Callback Header - fspiop-source is switch",
"description": "Callback Header - fspiop-source is switch's 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 @@ -736,9 +736,9 @@
},
{
"id": 15,
"description": "Callback Header - fspiop-source is switch",
"description": "Callback Header - fspiop-source is switch's 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 @@ -72,10 +72,10 @@
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"path": "/participants/{$inputs.HUB_NAME}/accounts",
"method": "get",
"params": {
"name": "Hub"
"name": "{$inputs.HUB_NAME}"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
Expand Down Expand Up @@ -277,10 +277,10 @@
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"path": "/participants/{$inputs.HUB_NAME}/accounts",
"method": "get",
"params": {
"name": "Hub"
"name": "{$inputs.HUB_NAME}"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
Expand Down Expand Up @@ -363,9 +363,9 @@
},
{
"id": 2,
"description": "fspiop-source is switch",
"description": "fspiop-source is switch's 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 @@ -72,10 +72,10 @@
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"path": "/participants/{$inputs.HUB_NAME}/accounts",
"method": "get",
"params": {
"name": "Hub"
"name": "{$inputs.HUB_NAME}"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
Expand Down Expand Up @@ -277,10 +277,10 @@
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"path": "/participants/{$inputs.HUB_NAME}/accounts",
"method": "get",
"params": {
"name": "Hub"
"name": "{$inputs.HUB_NAME}"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
Expand Down Expand Up @@ -363,9 +363,9 @@
},
{
"id": 2,
"description": "fspiop-source is switch",
"description": "fspiop-source is switch's name",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -504,10 +504,10 @@
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"path": "/participants/{$inputs.HUB_NAME}/accounts",
"method": "get",
"params": {
"name": "Hub"
"name": "{$inputs.HUB_NAME}"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
Expand Down Expand Up @@ -675,10 +675,10 @@
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"path": "/participants/{$inputs.HUB_NAME}/accounts",
"method": "get",
"params": {
"name": "Hub"
"name": "{$inputs.HUB_NAME}"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
Expand Down Expand Up @@ -762,9 +762,9 @@
},
{
"id": 2,
"description": "fspiop-source is switch",
"description": "fspiop-source is switch's 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 @@ -72,10 +72,10 @@
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"path": "/participants/{$inputs.HUB_NAME}/accounts",
"method": "get",
"params": {
"name": "Hub"
"name": "{$inputs.HUB_NAME}"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
Expand Down Expand Up @@ -277,10 +277,10 @@
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"path": "/participants/{$inputs.HUB_NAME}/accounts",
"method": "get",
"params": {
"name": "Hub"
"name": "{$inputs.HUB_NAME}"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
Expand Down Expand Up @@ -363,9 +363,9 @@
},
{
"id": 2,
"description": "fspiop-source is switch",
"description": "fspiop-source is switch's name",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down Expand Up @@ -504,10 +504,10 @@
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"path": "/participants/{$inputs.HUB_NAME}/accounts",
"method": "get",
"params": {
"name": "Hub"
"name": "{$inputs.HUB_NAME}"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
Expand Down Expand Up @@ -675,10 +675,10 @@
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"path": "/participants/{$inputs.HUB_NAME}/accounts",
"method": "get",
"params": {
"name": "Hub"
"name": "{$inputs.HUB_NAME}"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
Expand Down Expand Up @@ -762,9 +762,9 @@
},
{
"id": 2,
"description": "fspiop-source is switch",
"description": "fspiop-source is switch's name",
"exec": [
"expect(callback.headers['fspiop-source']).to.equal('switch')"
"expect(callback.headers['fspiop-source']).to.equal('{$inputs.HUB_NAME}')"
]
},
{
Expand Down
Loading

0 comments on commit c7e5bca

Please sign in to comment.