Skip to content

Commit

Permalink
feat: add msisdn oracle during dfsp onboarding (#177)
Browse files Browse the repository at this point in the history
feat: add new MSISDN Oracle registration endpoint with assertions
  • Loading branch information
kalinkrustev authored Jan 29, 2025
1 parent dfe7d5b commit 5f8e577
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions collections/hub/provisioning/new_participants/new_dfsp.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,51 @@
}
]
}
},
{
"id": 3,
"meta": {
"info": "Register MSISDN Oracle"
},
"description": "Register MSISDN Oracle",
"apiVersion": {
"minorVersion": 1,
"majorVersion": 1,
"type": "als_admin"
},
"operationPath": "/oracles",
"path": "/oracles",
"method": "post",
"body": {
"oracleIdType": "MSISDN",
"endpoint": {
"value": "{$inputs.HOST_ORACLE_MSISDN}",
"endpointType": "URL"
},
"currency": "{$inputs.currency}",
"isDefault": true
},
"headers": {
"Content-Type": "application/vnd.interoperability.participants+json;version=1.0",
"Accept": "application/vnd.interoperability.participants+json;version=1",
"Date": "{$function.generic.curDate}"
},
"url": "{$inputs.HOST_ACCOUNT_LOOKUP_ADMIN}",
"tests": {
"assertions": [
{
"id": 1,
"description": "status to be 201 or errorCode 2001 already exists",
"exec": [
"if (response.body.errorInformation) {",
" expect(response.body.errorInformation.errorCode).to.equal(\"2001\")",
"} else {",
" expect(response.status).to.equal(201)",
"}"
]
}
]
}
}
]
},
Expand Down

0 comments on commit 5f8e577

Please sign in to comment.