-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Likhitha R L <[email protected]>
- Loading branch information
Likhitha R L
committed
Jan 3, 2025
1 parent
5f4f6f2
commit 046e6c2
Showing
10 changed files
with
1,014 additions
and
21 deletions.
There are no files selected for viewing
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
113 changes: 113 additions & 0 deletions
113
.../resources/pms/GetAllPartnerPolicyRequest/GetAllPartnerPolicyRequestNegativeScenarios.yml
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,113 @@ | ||
GetAllPartnerPolicyRequest: | ||
Pms_GetAllPartnerPolicyRequest_without_Authentication_Neg: | ||
endPoint: /v1/partnermanager/partners/partner-policy-requests | ||
uniqueIdentifier: TC_PMS_partner-policy-requests_02 | ||
description: Fetching all the partner policy requests without authentication | ||
role: invalidtoken | ||
checkErrorsOnlyInResponse: true | ||
restMethod: get | ||
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest | ||
outputTemplate: pms/error | ||
input: '{ | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "KER-ATH-401" | ||
} | ||
] | ||
}' | ||
|
||
Pms_GetAllPartnerPolicyRequest_Invalid_Token_Neg: | ||
endPoint: /v1/partnermanager/partners/partner-policy-requests | ||
uniqueIdentifier: TC_PMS_partner-policy-requests_03 | ||
description: Fetching all the partner policy requests with invalid token | ||
role: invalidtoken | ||
restMethod: get | ||
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest | ||
outputTemplate: pms/error | ||
input: '{ | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "KER-ATH-403" | ||
} | ||
] | ||
}' | ||
Pms_GetAllPartnerPolicyRequest_invalid_sortType_Neg: | ||
endPoint: /v1/partnermanager/partners/partner-policy-requests?sortType={sortType} | ||
uniqueIdentifier: TC_PMS_partner-policy-requests_13 | ||
description: Fetching all the partner policy requests by invalid sort type | ||
role: partnerrevamp | ||
checkErrorsOnlyInResponse: true | ||
restMethod: get | ||
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest | ||
outputTemplate: pms/error | ||
input: '{ | ||
"sortType": "hdjfdfhg" | ||
}' | ||
output: ' { | ||
"errors": [ | ||
{ | ||
"errorCode": "PMS_PRT_358" | ||
} | ||
] | ||
}' | ||
Pms_GetAllPartnerPolicyRequest_invalid_pageSize_Neg: | ||
endPoint: /v1/partnermanager/partners/partner-policy-requests?pageSize={pageSize} | ||
uniqueIdentifier: TC_PMS_partner-policy-requests_17 | ||
description: Fetching all the partner policy requests by giving negative pagesize value | ||
role: partnerrevamp | ||
checkErrorsOnlyInResponse: true | ||
restMethod: get | ||
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest | ||
outputTemplate: pms/error | ||
input: '{ | ||
"pageSize": "-9" | ||
}' | ||
output: ' { | ||
"errors": [ | ||
{ | ||
"errorCode": "PMS_PRT_361" | ||
} | ||
] | ||
}' | ||
Pms_GetAllPartnerPolicyRequest_invalid_pageNo_Neg: | ||
endPoint: /v1/partnermanager/partners/partner-policy-requests?pageNo={pageNo} | ||
uniqueIdentifier: TC_PMS_partner-policy-requests_18 | ||
description: Fetching all the partner policy requests by giving negative pageNo value | ||
role: partnerrevamp | ||
checkErrorsOnlyInResponse: true | ||
restMethod: get | ||
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest | ||
outputTemplate: pms/error | ||
input: '{ | ||
"pageSize": "-9" | ||
}' | ||
output: ' { | ||
"errors": [ | ||
{ | ||
"errorCode": "PMS_PRT_360" | ||
} | ||
] | ||
}' | ||
Pms_GetAllPartnerPolicyRequest_invalid_sortFieldName_Neg: | ||
endPoint: /v1/partnermanager/partners/partner-policy-requests?sortFieldName={sortFieldName} | ||
uniqueIdentifier: TC_PMS_partner-policy-requests_20 | ||
description: Fetching all the partner policy requests with invalid sortfieldname | ||
role: partnerrevamp | ||
checkErrorsOnlyInResponse: true | ||
restMethod: get | ||
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest | ||
outputTemplate: pms/error | ||
input: '{ | ||
"sortFieldName": "$%^%^&&^" | ||
}' | ||
output: ' { | ||
"errors": [ | ||
{ | ||
"errorCode": "PMS_PRT_357" | ||
} | ||
] | ||
}' |
12 changes: 12 additions & 0 deletions
12
api-test/src/main/resources/pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest.hbs
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 |
---|---|---|
@@ -1,2 +1,14 @@ | ||
{ | ||
"partnerId": "{{partnerId}}", | ||
"sortFieldName": "{{sortFieldName}}", | ||
"sortType": "{{sortType}}", | ||
"pageNo": "{{pageNo}}", | ||
"pageSize": "{{pageSize}}", | ||
"requestDetails": "{{requestDetails}}", | ||
"orgName": "{{orgName}}", | ||
"policyId": "{{policyId}}", | ||
"status": "{{status}}", | ||
"policyName": "{{policyName}}", | ||
"policyGroupName": "{{policyGroupName}}", | ||
"partnerType": "{{partnerType}}" | ||
} |
Oops, something went wrong.