Skip to content

Commit

Permalink
fix: als endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayg10 committed Jul 25, 2023
1 parent 89ca1f8 commit e72f9aa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docker-compose-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
environment:
- LOG_LEVEL=info
- ALS_DISPLAY_ROUTES=false
- ALS_SWITCH_ENDPOINT=http://callback-handler-svc:3001/admin
- ALS_SWITCH_ENDPOINT=http://callback-handler-svc-cl-sim:3001/admin
- WAIT4_CONFIG=./wait4.config.perf-als.js
- EVENT_SDK_TRACEID_PER_VENDOR=false
networks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"PERF_FSP2_ID": "perffsp2",
"PERF_FSP1_MSISDN": "19012345001",
"PERF_FSP2_MSISDN": "19012345002",
"PERF_FSP1_CALLBACK_ENDPOINT_BASE_URL": "http://callback-handler-svc:3001/fspiop",
"PERF_FSP2_CALLBACK_ENDPOINT_BASE_URL": "http://mojaloop-testing-toolkit:4040",
"PERF_ORACLE_ENDPOINT_BASE_URL": "http://callback-handler-svc:3001/oracle"
"PERF_FSP1_CALLBACK_ENDPOINT_BASE_URL": "http://callback-handler-svc-payer-sim:3001/fspiop",
"PERF_FSP2_CALLBACK_ENDPOINT_BASE_URL": "http://callback-handler-svc-payee-sim:3001/fspiop",
"PERF_ORACLE_ENDPOINT_BASE_URL": "http://callback-handler-svc-oracle-sim:3001/oracle"
}
}
4 changes: 2 additions & 2 deletions docker/wait4/wait4.config.perf-als.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ module.exports = {
name: 'account-lookup-service',
wait4: [
{
description: 'callback-handler api server',
uri: 'callback-handler-svc:3001',
description: 'callback-handler central ledger admin simulator',
uri: 'callback-handler-svc-cl-sim:3001',
method: 'ncat',

// we have to wait much longer for central-ledger
Expand Down
24 changes: 12 additions & 12 deletions packages/callback-handler-svc/handlers/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,39 +58,39 @@ const init = (config, logger, options = undefined) => {
res.status(200).json(
[
{
"type":"ADMIN_FSPIOP_CALLBACK_URL_PARTICIPANT_PUT",
"type":"FSPIOP_CALLBACK_URL_PARTICIPANT_PUT",
"value":`${ADMIN_FSPIOP_CALLBACK_URL}/participants/{{partyIdType}}/{{partyIdentifier}}`
},
{
"type":"ADMIN_FSPIOP_CALLBACK_URL_PARTICIPANT_PUT_ERROR",
"type":"FSPIOP_CALLBACK_URL_PARTICIPANT_PUT_ERROR",
"value":`${ADMIN_FSPIOP_CALLBACK_URL}/participants/{{partyIdType}}/{{partyIdentifier}}/error`
},
{
"type":"ADMIN_FSPIOP_CALLBACK_URL_PARTIES_GET",
"type":"FSPIOP_CALLBACK_URL_PARTIES_GET",
"value":`${ADMIN_FSPIOP_CALLBACK_URL}/parties/{{partyIdType}}/{{partyIdentifier}}`
},
{
"type":"ADMIN_FSPIOP_CALLBACK_URL_PARTIES_PUT",
"type":"FSPIOP_CALLBACK_URL_PARTIES_PUT",
"value":`${ADMIN_FSPIOP_CALLBACK_URL}/parties/{{partyIdType}}/{{partyIdentifier}}`
},
{
"type":"ADMIN_FSPIOP_CALLBACK_URL_PARTICIPANT_SUB_ID_PUT",
"type":"FSPIOP_CALLBACK_URL_PARTICIPANT_SUB_ID_PUT",
"value":`${ADMIN_FSPIOP_CALLBACK_URL}/participants/{{partyIdType}}/{{partyIdentifier}}/{{partySubIdOrType}}`
},
{
"type":"ADMIN_FSPIOP_CALLBACK_URL_PARTICIPANT_SUB_ID_PUT_ERROR",
"type":"FSPIOP_CALLBACK_URL_PARTICIPANT_SUB_ID_PUT_ERROR",
"value":`${ADMIN_FSPIOP_CALLBACK_URL}/participants/{{partyIdType}}/{{partyIdentifier}}/{{partySubIdOrType}}/error`
},
{
"type":"ADMIN_FSPIOP_CALLBACK_URL_PARTIES_SUB_ID_GET",
"type":"FSPIOP_CALLBACK_URL_PARTIES_SUB_ID_GET",
"value":`${ADMIN_FSPIOP_CALLBACK_URL}/parties/{{partyIdType}}/{{partyIdentifier}}/{{partySubIdOrType}}`
},
{
"type":"ADMIN_FSPIOP_CALLBACK_URL_PARTIES_SUB_ID_PUT",
"type":"FSPIOP_CALLBACK_URL_PARTIES_SUB_ID_PUT",
"value":`${ADMIN_FSPIOP_CALLBACK_URL}/parties/{{partyIdType}}/{{partyIdentifier}}/{{partySubIdOrType}}`
},
{
"type":"ADMIN_FSPIOP_CALLBACK_URL_PARTIES_SUB_ID_PUT_ERROR",
"type":"FSPIOP_CALLBACK_URL_PARTIES_SUB_ID_PUT_ERROR",
"value":`${ADMIN_FSPIOP_CALLBACK_URL}/parties/{{partyIdType}}/{{partyIdentifier}}/{{partySubIdOrType}}/error`
},
{
Expand All @@ -106,15 +106,15 @@ const init = (config, logger, options = undefined) => {
"value":"[email protected]"
},
{
"type":"ADMIN_FSPIOP_CALLBACK_URL_PARTICIPANT_BATCH_PUT",
"type":"FSPIOP_CALLBACK_URL_PARTICIPANT_BATCH_PUT",
"value":`${ADMIN_FSPIOP_CALLBACK_URL}/participants/{{requestId}}`
},
{
"type":"ADMIN_FSPIOP_CALLBACK_URL_PARTICIPANT_BATCH_PUT_ERROR",
"type":"FSPIOP_CALLBACK_URL_PARTICIPANT_BATCH_PUT_ERROR",
"value":`${ADMIN_FSPIOP_CALLBACK_URL}/participants/{{requestId}}/error`
},
{
"type":"ADMIN_FSPIOP_CALLBACK_URL_PARTIES_PUT_ERROR",
"type":"FSPIOP_CALLBACK_URL_PARTIES_PUT_ERROR",
"value":`${ADMIN_FSPIOP_CALLBACK_URL}/parties/{{partyIdType}}/{{partyIdentifier}}/error`
}
]
Expand Down

0 comments on commit e72f9aa

Please sign in to comment.