Skip to content

functional test cases #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: release-2.0.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void testDeleteUserNoteSuccess(
@CitrusTest
public void testDeleteUserNoteFailureWithInvalidNoteId() {
getTestCase().setName(TEST_DELETE_USER_NOTE_FAILURE_WITH_INVALID_NOTEID);
beforeTest();
//beforeTest();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why beforeTest(); is commented.

performDeleteTest(
this,
TEMPLATE_DIR,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"params": {
"resmsgid": null,
"msgid": "@ignore@",
"err": "REQUIRED_DATA_MISSING",
"status": "REQUIRED_DATA_MISSING",
"errmsg": "Organization Id or Provider with External Id values are required for the operation"
"err": "MANDATORY_PARAMETER_MISSING",
"status": "MANDATORY_PARAMETER_MISSING",
"errmsg": "Mandatory parameter organisationId is missing."
},
"responseCode": "CLIENT_ERROR",
"result": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"params": {
"resmsgid": null,
"msgid": "@ignore@",
"err": "INVALID_REQUESTED_DATA",
"status": "INVALID_REQUESTED_DATA",
"errmsg": "Requested data for this operation is not valid."
"err": "MANDATORY_PARAMETER_MISSING",
"status": "MANDATORY_PARAMETER_MISSING",
"errmsg": "Mandatory parameter organisationId is missing."
},
"responseCode": "CLIENT_ERROR",
"result": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"params": {
"resmsgid": null,
"msgid": "@ignore@",
"err": "REQUIRED_DATA_MISSING",
"status": "REQUIRED_DATA_MISSING",
"errmsg": "Organization Id or Provider with External Id values are required for the operation"
"err": "MANDATORY_PARAMETER_MISSING",
"status": "MANDATORY_PARAMETER_MISSING",
"errmsg": "Mandatory parameter organisationId is missing."
},
"responseCode": "CLIENT_ERROR",
"result": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"params": {
"resmsgid": null,
"msgid": "@ignore@",
"err": "REQUIRED_DATA_MISSING",
"status": "REQUIRED_DATA_MISSING",
"errmsg": "Organization Id or Provider with External Id values are required for the operation"
"err": "MANDATORY_PARAMETER_MISSING",
"status": "MANDATORY_PARAMETER_MISSING",
"errmsg": "Mandatory parameter organisationId is missing."
},
"responseCode": "CLIENT_ERROR",
"result": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,43 @@
"responseCode": "OK",
"result": {
"response": {
"dateTime": null,
"preferredLanguage": null,
"approvedBy": null,
"channel": "@ignore@",
"description": null,
"updatedDate": null,
"addressId": null,
"orgType": null,
"provider": "ft_provider",
"locationId": null,
"orgCode": null,
"theme": null,
"id": "@ignore@",
"communityId": null,
"isApproved": null,
"slug": "@ignore@",
"identifier": "@ignore@",
"thumbnail": null,
"orgName": "@ignore@",
"updatedBy": null,
"locationIds": [],
"externalId": "@ignore@",
"isRootOrg": true,
"rootOrgId": "@ignore@",
"approvedDate": null,
"imgUrl": null,
"homeUrl": null,
"orgTypeId": null,
"isDefault": "@ignore@",
"contactDetail": "@ignore@",
"createdDate": "@ignore@",
"createdBy": "@ignore@",
"parentOrgId": null,
"hashTagId": "@ignore@",
"noOfMembers": null,
"status": 1
"response":{
"dateTime":null,
"preferredLanguage":null,
"approvedBy":null,
"channel":"@ignore@",
"description":null,
"updatedDate":null,
"addressId":null,
"orgType":null,
"provider":"ft_provider",
"locationId":null,
"orgCode":null,
"theme":null,
"id":"@ignore@",
"communityId":null,
"isApproved":null,
"slug":"@ignore@",
"identifier":"@ignore@",
"thumbnail":null,
"orgName":"@ignore@",
"updatedBy":null,
"address":{},
"externalId":"f@ignore@",
"isRootOrg":true,
"rootOrgId":"@ignore@",
"approvedDate":null,
"imgUrl":null,
"homeUrl":null,
"orgTypeId":null,
"isDefault":null,
"contactDetail":[ ],
"createdDate":"@ignore@",
"createdBy":null,
"parentOrgId":null,
"hashTagId":"@ignore@",
"noOfMembers":null,
"status":1
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"params": {
"resmsgid": null,
"msgid": "@ignore@",
"err": "ROLE_MISSING",
"status": "ROLE_MISSING",
"errmsg": "Role of the user is required"
"err": "INVALID_USER_DATA",
"status": "INVALID_USER_DATA",
"errmsg": "Given User Data doesn't exist in our records. Please provide a valid one"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kirtisagarksj this test is for empty role , so it should throw role error.

},
"responseCode": "CLIENT_ERROR",
"result": {}
Expand Down