Skip to content

Commit

Permalink
mosip-38437-negative scenarios
Browse files Browse the repository at this point in the history
Signed-off-by: Likhitha R L <[email protected]>
  • Loading branch information
Likhitha R L committed Jan 3, 2025
1 parent 5f4f6f2 commit 046e6c2
Show file tree
Hide file tree
Showing 10 changed files with 1,014 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
GetAllPartnerPolicyRequest:
Pms_GetAllPartnerPolicyRequest_All_Valid_Smoke:
endPoint: /v1/partnermanager/partners/partner-policy-requests
description: Fetching all the active Partnered PolicyGroups
uniqueIdentifier: TC_PMS_partner-policy-requests_01
description: Fetching all the partner policy requests
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
Expand All @@ -10,4 +11,215 @@ GetAllPartnerPolicyRequest:
input: '{
}'
output: ' {
}'
Pms_GetAllPartnerPolicyRequest_with_partnerId_given:
endPoint: /v1/partnermanager/partners/partner-policy-requests?partnerId={partnerId}
uniqueIdentifier: TC_PMS_partner-policy-requests_04
description: Fetching all the partner policy requests for PartnerId which contains 'a'
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"partnerId": "a"
}'
output: ' {
}'
Pms_GetAllPartnerPolicyRequest_with_orgname_given:
endPoint: /v1/partnermanager/partners/partner-policy-requests?orgName={orgName}
uniqueIdentifier: TC_PMS_partner-policy-requests_05
description: Fetching all the partner policy requests for orgName which contains '1'
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"orgName": "1"
}'
output: ' {
}'
Pms_GetAllPartnerPolicyRequest_with_requestDetails_given:
endPoint: /v1/partnermanager/partners/partner-policy-requests?requestDetails={requestDetails}
uniqueIdentifier: TC_PMS_partner-policy-requests_06
description: Fetching all the partner policy requests for requestDetails which contains 'ab'
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"requestDetails": "ab"
}'
output: ' {
}'
Pms_GetAllPartnerPolicyRequest_With_policyId_given:
endPoint: /v1/partnermanager/partners/partner-policy-requests?policyId={policyId}
uniqueIdentifier: TC_PMS_partner-policy-requests_07
description: Fetching all the partner policy requests for policyId which contains '2'
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"policyId": "2"
}'
output: ' {
}'
Pms_GetAllPartnerPolicyRequest_with_policyname_given:
endPoint: /v1/partnermanager/partners/partner-policy-requests?policyName={policyName}
uniqueIdentifier: TC_PMS_partner-policy-requests_08
description: Fetching all the partner policy requests for policyName which contains 'policy'
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"policyName": "policy"
}'
output: ' {
}'
Pms_GetAllPartnerPolicyRequest_with_policygroupname_given:
endPoint: /v1/partnermanager/partners/partner-policy-requests?policyGroupName={policyGroupName}
uniqueIdentifier: TC_PMS_partner-policy-requests_09
description: Fetching all the partner policy requests for policyGroupName which contains 'Group'
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"policyGroupName": "Group"
}'
output: ' {
}'
Pms_GetAllPartnerPolicyRequest_with_partnerType_given:
endPoint: /v1/partnermanager/partners/partner-policy-requests?partnerType={partnerType}
uniqueIdentifier: TC_PMS_partner-policy-requests_10
description: Fetching all the partner policy requests for partnerType which contains 'a'
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"partnerType": "a"
}'
output: ' {
}'
Pms_GetAllPartnerPolicyRequest_with_sortType_DESC:
endPoint: /v1/partnermanager/partners/partner-policy-requests?sortType={sortType}
uniqueIdentifier: TC_PMS_partner-policy-requests_11
description: Fetching all the partner policy requests by sort type DESC for the given sort field
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"sortType": "DESC"
}'
output: ' {
}'
Pms_GetAllPartnerPolicyRequest_with_sortType_ASC:
endPoint: /v1/partnermanager/partners/partner-policy-requests?sortType={sortType}
uniqueIdentifier: TC_PMS_partner-policy-requests_12
description: Fetching all the partner policy requests by sort type ASC for the given sort field
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"sortType": "ASC"
}'
output: ' {
}'
Pms_GetAllPartnerPolicyRequest_with_status_Inprogress:
endPoint: /v1/partnermanager/partners/partner-policy-requests?status={status}
uniqueIdentifier: TC_PMS_partner-policy-requests_14
description: Fetching all the partner policy requests for which status as Inprogress
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"status": "InProgress"
}'
output: ' {
}'
Pms_GetAllPartnerPolicyRequest_with_status_approved:
endPoint: /v1/partnermanager/partners/partner-policy-requests?status={status}
uniqueIdentifier: TC_PMS_partner-policy-requests_15
description: Fetching all the partner policy requests for which status as approved
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"status": "approved"
}'
output: ' {
}'
Pms_GetAllPartnerPolicyRequest_with_status_rejected:
endPoint: /v1/partnermanager/partners/partner-policy-requests?status={status}
uniqueIdentifier: TC_PMS_partner-policy-requests_16
description: Fetching all the partner policy requests for which status as rejected
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"status": "rejected"
}'
output: '{
}'
Pms_GetAllPartnerPolicyRequest_with_pageNo_given:
endPoint: /v1/partnermanager/partners/partner-policy-requests?pageNo={pageNo}
uniqueIdentifier: TC_PMS_partner-policy-requests_19
description: Fetching all the partner policy requests by giving valid page number given
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"pageNo": "6"
}'
output: '{
}'
Pms_GetAllPartnerPolicyRequest_with_random_value_given:
endPoint: /v1/partnermanager/partners/partner-policy-requests?partnerId={partnerId}
uniqueIdentifier: TC_PMS_partner-policy-requests_21
description: Fetching all the partner policy requests by giving random value for partnerid
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"partnerId": "%^%$$%^%"
}'
output: '{
}'
Pms_GetAllPartnerPolicyRequest_with_combination_search_twofields:
endPoint: /v1/partnermanager/partners/partner-policy-requests?partnerId={partnerId}&requestDetails={requestDetails}
uniqueIdentifier: TC_PMS_partner-policy-requests_22
description: Fetching all the partner policy requests by giving value for partnerId and requestDetails
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequest
outputTemplate: pms/GetAllPartnerPolicyRequest/getAllPartnerPolicyRequestResult
input: '{
"partnerId": "1",
"requestDetails": "2"
}'
output: '{
}'
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"
}
]
}'
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}}"
}
Loading

0 comments on commit 046e6c2

Please sign in to comment.