-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(mojaloop/#2650): run 3ppi ttk tests with 3ppi services enabled (#…
…67) chore(mojaloop/#2650): Run 3PPI TTK tests with 3PPI services enabled - mojaloop/project#2650 - added provisioning_thirdparty/dfspb_parties.json to load party information into DFSPB's backend simulator - updated minor test asserts
- Loading branch information
Showing
3 changed files
with
99 additions
and
4 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
collections/hub/provisioning_thirdparty/dfspb_parties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"name": "multi", | ||
"test_cases": [ | ||
{ | ||
"id": 1, | ||
"name": "dfspb parties upload into sim backend", | ||
"meta": { | ||
"info": "pisp account" | ||
}, | ||
"fileInfo": { | ||
"path": "hub/provisioning_thirdparty/dfspb_parties.json" | ||
}, | ||
"requests": [ | ||
{ | ||
"id": 8, | ||
"description": "Load 329294234 into DFSPB Backend Simulator", | ||
"apiVersion": { | ||
"minorVersion": 1, | ||
"majorVersion": 0, | ||
"type": "mojaloop_simulator" | ||
}, | ||
"operationPath": "/repository/parties", | ||
"path": "/repository/parties", | ||
"method": "post", | ||
"body": { | ||
"displayName": "Bob Babirusa", | ||
"firstName": "Bob", | ||
"middleName": "O", | ||
"lastName": "Babirusa", | ||
"dateOfBirth": "1970-01-01", | ||
"idType": "MSISDN", | ||
"idValue": "329294234" | ||
}, | ||
"url": "{$inputs.DFSPB_BACKEND_TESTAPI_URL}", | ||
"tests": { | ||
"assertions": [ | ||
{ | ||
"id": 1, | ||
"description": "Status to be 204", | ||
"exec": [ | ||
"if (response.status === 500) {", | ||
" expect(response.body.message).to.equal(\"ID is already registered\")", | ||
"} else {", | ||
" expect(response.status).to.equal(204)", | ||
"}" | ||
] | ||
} | ||
] | ||
}, | ||
"scriptingEngine": "javascript" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters