Skip to content
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

MOSIP-36197 #979

Open
wants to merge 4 commits into
base: develop-pmp-revamp
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
@@ -1,6 +1,8 @@
ActivateDeactivatePartner:
Partner_ActivateDeactivatePartner_deactivate_allValid_smoke:
endPoint: /v1/partnermanager/partners/{partnerId}
uniqueIdentifier: TC_PMS_Activatepartner_01
description : Deactivate all partners
role: partner
checkErrorsOnlyInResponse: true
restMethod: patch
Expand All @@ -16,6 +18,8 @@ ActivateDeactivatePartner:

Partner_ActivateDeactivatePartner_deactivate_MISP3:
endPoint: /v1/partnermanager/partners/{partnerId}
uniqueIdentifier: TC_ActivateDeactivatePartner_02
description: Deactivate partner
role: partner
checkErrorsOnlyInResponse: true
restMethod: patch
Expand All @@ -31,6 +35,8 @@ ActivateDeactivatePartner:

Partner_ActivateDeactivatePartner_deactivate_Tech-1233:
endPoint: /v1/partnermanager/partners/{partnerId}
uniqueIdentifier: TC_ActivateDeactivatePartner_03
description: Deactivate Partner
role: partner
checkErrorsOnlyInResponse: true
restMethod: patch
Expand All @@ -47,6 +53,8 @@ ActivateDeactivatePartner:

Partner_ActivateDeactivatePartner_deactivate_Tech_321:
endPoint: /v1/partnermanager/partners/{partnerId}
uniqueIdentifier: TC_ActivateDeactivatePartner_04
description: Deactivate partner
role: partner
checkErrorsOnlyInResponse: true
restMethod: patch
Expand All @@ -61,6 +69,8 @@ ActivateDeactivatePartner:
}'
Partner_ActivateDeactivatePartner_activate_allValid_smoke:
endPoint: /v1/partnermanager/partners/{partnerId}
uniqueIdentifier: TC_ActivateDeactivatePartner_05
description: Activate All partners
role: partner
checkErrorsOnlyInResponse: true
restMethod: patch
Expand All @@ -75,6 +85,8 @@ ActivateDeactivatePartner:
}'
Partner_ActivateDeactivatePartner_invalid_partnerId:
endPoint: /v1/partnermanager/partners/{partnerId}
uniqueIdentifier: TC_ActivateDeactivatePartner_06
description: Deactivate invalid partner ID
role: partner
restMethod: patch
inputTemplate: partner/ActivateDeactivatePartner/activateDeactivatePartner
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ActivateDeactivatePartnerApiKey:
Partner_ActivateDeactivatePartnerApiKey_deactivate_allValid_smoke:
endPoint: /v1/partnermanager/partners/{partnerId}/policy/{policyId}/apiKey/status
uniqueIdentifier: TC_Partner_ActivateDeactivatePartnerApiKey_01
description: Deactivate all partner API key
role: partner
checkErrorsOnlyInResponse: true
restMethod: patch
Expand All @@ -18,6 +20,8 @@ ActivateDeactivatePartnerApiKey:

Partner_ActivateDeactivatePartnerApiKey_deactivate_InValid_APIKey_Neg:
endPoint: /v1/partnermanager/partners/{partnerId}/policy/{policyId}/apiKey/status
uniqueIdentifier: TC_Partner_ActivateDeactivatePartnerApiKey_02
description: Deactivate Invalid API key
role: partner
checkErrorsOnlyInResponse: true
restMethod: patch
Expand All @@ -40,6 +44,8 @@ ActivateDeactivatePartnerApiKey:
}'
Partner_ActivateDeactivatePartnerApiKey_activate_allValid_smoke:
endPoint: /v1/partnermanager/partners/{partnerId}/policy/{policyId}/apiKey/status
uniqueIdentifier: TC_Partner_ActivateDeactivatePartnerApiKey_03
description: Activate Partner API key
role: partner
checkErrorsOnlyInResponse: true
restMethod: patch
Expand All @@ -57,6 +63,8 @@ ActivateDeactivatePartnerApiKey:
}'
Partner_ActivateDeactivatePartnerApiKey_invalid_partnerId:
endPoint: /v1/partnermanager/partners/{partnerId}/policy/{policyId}/apiKey/status
uniqueIdentifiertifier: TC_Partner_ActivateDeactivatePartnerApiKey_04
description: ActivateDeactivatePartnerApiKey for invalid partnerId
role: partner
restMethod: patch
inputTemplate: partner/ActivateDeactivatePartnerApiKey/activateDeactivatePartnerApiKey
Expand All @@ -77,6 +85,8 @@ ActivateDeactivatePartnerApiKey:
}'
Partner_ActivateDeactivatePartnerApiKey_invalid_policyId:
endPoint: /v1/partnermanager/partners/{partnerId}/policy/{policyId}/apiKey/status
uniqueIdentifier: TC_Partner_ActivateDeactivatePartnerApiKey_05
description: ActivateDeactivatePartnerApiKey for invalid policyId
role: partner
restMethod: patch
inputTemplate: partner/ActivateDeactivatePartnerApiKey/activateDeactivatePartnerApiKey
Expand All @@ -97,6 +107,8 @@ ActivateDeactivatePartnerApiKey:
}'
Partner_ActivateDeactivatePartnerApiKey_invalid_label:
endPoint: /v1/partnermanager/partners/{partnerId}/policy/{policyId}/apiKey/status
uniqueIdentifier: TC_Partner_ActivateDeactivatePartnerApiKey_06
description : ActivateDeactivatePartnerApiKey for invalid label
role: partner
restMethod: patch
inputTemplate: partner/ActivateDeactivatePartnerApiKey/activateDeactivatePartnerApiKey
Expand All @@ -118,6 +130,8 @@ ActivateDeactivatePartnerApiKey:

Partner_ActivateDeactivatePartnerApiKey_activate_Dublicate_Lable_Neg:
endPoint: /v1/partnermanager/partners/{partnerId}/policy/{policyId}/apiKey/status
uniqueIdentifier: TC_Partner_ActivateDeactivatePartnerApiKey_07
description: Activate PartnerApiKey for duplicate label
role: partner
restMethod: patch
inputTemplate: partner/ActivateDeactivatePartnerApiKey/activateDeactivatePartnerApiKey
Expand All @@ -139,6 +153,8 @@ ActivateDeactivatePartnerApiKey:

Partner_ActivateDeactivatePartnerApiKey_Lable_Removed_Neg:
endPoint: /v1/partnermanager/partners/{partnerId}/policy/{policyId}/apiKey/status
uniqueIdentifier: TC_Partner_ActivateDeactivatePartnerApiKey_08
description: ActivateDeactivatePartnerApiKey without label
role: partner
restMethod: patch
inputTemplate: partner/ActivateDeactivatePartnerApiKey/activateDeactivatePartnerApiKey
Expand Down
2 changes: 2 additions & 0 deletions api-test/src/main/resources/partner/AuditLog/AuditLog.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
addContact:
Partner_AddContact_All_Valid_Smoke:
endPoint: SELECT module_name,cr_by FROM audit.app_audit_log where module_name LIKE '%partner%' order by action_dtimes desc LIMIT 5
uniqueIdentifier: TC_Partner_addcontact_01
description: AddContact for All valid values
role: audit
templateFields: ["partnerQuery","partner service"]
restMethod: post
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CreateBioExtractors:
Partner_CreateBioExtractors_InValid_partnerId:
endPoint: /v1/partnermanager/partners/{partnerId}/bioextractors/{policyId}
uniqueIdentifier: TC_Partner_CreateBioExtractors_01
description: Create BioExtractors for InValid partnerId
role: partner
checkErrorsOnlyInResponse: true
restMethod: post
Expand All @@ -25,6 +27,8 @@ CreateBioExtractors:

Partner_CreateBioExtractors_InValid_PolicyId:
endPoint: /v1/partnermanager/partners/{partnerId}/bioextractors/{policyId}
uniqueIdentifier: TC_Partner_CreateBioExtractors_02
description: Partner CreateBioExtractors InValid policyId
role: partner
checkErrorsOnlyInResponse: true
restMethod: post
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
requetAPIKey:
Partner_SubmitPartnerApiKeyRequest_All_Valid_Smoke_sid:
endPoint: /v1/partnermanager/partners/Tech-123/apikey/request
uniqueIdentifier: TC_Partner_requestAPIkey_01
description: Submit Api key request for valid partner
role: partner
restMethod: patch
inputTemplate: partner/authPartner/APIKeyAutoApproval/apiKeyAutoApproval
Expand All @@ -17,6 +19,8 @@ requetAPIKey:

Partner_SubmitPartnerApiKeyRequest_invalid_partnerId:
endPoint: /v1/partnermanager/partners/ABCD/apikey/request
uniqueIdentifier: TC_Partner_requestAPIkey_02
description: Submit Api key request for Invalid partnerId
role: partner
restMethod: patch
inputTemplate: partner/authPartner/APIKeyAutoApproval/apiKeyAutoApproval
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
addContact:
Partner_AddContact_All_Valid_Smoke:
endPoint: /v1/partnermanager/partners/Tech-123/contact/add
uniqueIdentifier: TC_Partner_addContact_01
description : Add COntact for all
role: partner
checkErrorsOnlyInResponse: true
restMethod: post
Expand All @@ -17,6 +19,8 @@ addContact:
}'
Partner_AddContact_Missing_InputParameter_address:
endPoint: /v1/partnermanager/partners/Tech-123/contact/add
uniqueIdentifier: TC_Partner_addContact_02
description: Add contact without address
role: partner
restMethod: post
inputTemplate: partner/authPartner/AddContacts/addContact
Expand All @@ -39,6 +43,8 @@ addContact:

Partner_AddContact_Missing_InputParameter_contactNumber:
endPoint: /v1/partnermanager/partners/Tech-123/contact/add
uniqueIdentifier: TC_Partner_addContact_03
description: Add contact without contact number
role: partner
restMethod: post
inputTemplate: partner/authPartner/AddContacts/addContact
Expand All @@ -59,6 +65,8 @@ addContact:
}'
Partner_AddContact_Missing_InputParameter_emailId:
endPoint: /v1/partnermanager/partners/Tech-123/contact/add
uniqueIdentifier: TC_Partner_addContact_04
description: Add contact without emailId
role: partner
restMethod: post
inputTemplate: partner/authPartner/AddContacts/addContact
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ApproveAPIKey:
Partner_ApproveRejectPartnerAPIKeyReq_All_Valid_Smoke:
endPoint: /v1/partnermanager/partners/policy/{mappingkey}
uniqueIdentifier: TC_Partner_ApproveAPIKey_01
description: Approve/Reject Partner APIKey Req
role: partner
checkErrorsOnlyInResponse: true
restMethod: put
Expand All @@ -16,6 +18,8 @@ ApproveAPIKey:

Partner_ApproveRejectPartnerAPIKeyReq_Missing_InputParameter_status:
endPoint: /v1/partnermanager/partners/policy/{mappingkey}
uniqueIdentifier: TC_Partner_ApproveAPIKey_02
description: Reject PartnerAPIKey
role: partner
restMethod: put
inputTemplate: partner/authPartner/ApproveAPIKey/approveAPIKey
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
createPartnerSelfRegistration:
Partner_PartnerSelfRegistration_All_Valid_Smoke:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_createPartnerSelfRegistration_01
description: Partner Self Registration
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -22,6 +24,8 @@ createPartnerSelfRegistration:

Partner_PartnerSelfRegistration_Deactive_Partner_sid:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_createPartnerSelfRegistration_02
description: Partner self Registration with deactivated Id
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -43,6 +47,8 @@ createPartnerSelfRegistration:

Partner_PartnerSelfRegistration_All_for_Get_ApiKey_With_Deactive_Partner_sid:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_PartnerSelfRegistration_03
description: Get API key for deactivated PId
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -64,6 +70,8 @@ createPartnerSelfRegistration:

Partner_PartnerSelfRegistration_AlreadyExisting_Policy_Name:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_PartnerSelfRegistration_04
description: Self Registration with existing policyname
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -88,6 +96,8 @@ createPartnerSelfRegistration:

Partner_PartnerSelfRegistration_SpaceVAl_PartnerId_Neg:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_PartnerSelfRegistration_05
description: Partner Self Registration with space
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -112,6 +122,8 @@ createPartnerSelfRegistration:

Partner_PartnerSelfRegistration_InActive_policyGroup:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_PartnerSelfRegistration_06
description: Partner selfRegistration for Inactive policygroup
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -136,6 +148,8 @@ createPartnerSelfRegistration:

Partner_PartnerSelfRegistration_With_Existing_Email_Neg:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_PartnerSelfRegistration_07
description: Self Registration with existing email
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -159,6 +173,8 @@ createPartnerSelfRegistration:
}'
Partner_PartnerSelfRegistration_AlreadyExists_invalid:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_PartnerSelfRegistration_08
description: SelfRegistration with existing values
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -182,6 +198,8 @@ createPartnerSelfRegistration:
}'
Partner_PartnerSelfRegistration_UpdatePolicyGroupForPartner_AllValid_Smoke:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_PartnerSelfRegistration_09
description: Self Registration passing update policy in partnerid
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -202,6 +220,8 @@ createPartnerSelfRegistration:
}'
Partner_PartnerSelfRegistration_Missing_InputParameter_PartnerId:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_PartnerSelfRegistration_10
description: Self Registration without partnerId parameter
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -227,6 +247,8 @@ createPartnerSelfRegistration:

Partner_PartnerSelfRegistration_Missing_InputParameter_address:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_PartnerSelfRegistration_11
description: Self Registration with empty address
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -252,6 +274,8 @@ createPartnerSelfRegistration:

Partner_PartnerSelfRegistration_Missing_InputParameter_contactNumber:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_PartnerSelfRegistration_12
description: Self Registration without contact number
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -276,6 +300,8 @@ createPartnerSelfRegistration:

Partner_PartnerSelfRegistration_Missing_InputParameter_emailId:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_PartnerSelfRegistration_13
description: Self Registration without emailId
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand All @@ -300,6 +326,8 @@ createPartnerSelfRegistration:

Partner_PartnerSelfRegistration_Missing_InputParameter_partnerType:
endPoint: /v1/partnermanager/partners
uniqueIdentifier: TC_Partner_PartnerSelfRegistration_14
description: Self Registration without partner type
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
GetPartnerCert:
Partner_GetPartnerCert_All_Valid_Smoke:
endPoint: /v1/partnermanager/partners/{partnerId}/certificate
uniqueIdentifier: TC_Partner_GetPartnerCert_01
description: Get Partner Certificate
role: partner
checkErrorsOnlyInResponse: true
restMethod: get
Expand All @@ -13,6 +15,8 @@ GetPartnerCert:
}'
Partner_GetPartnerCert_invalid_partnerId:
endPoint: /v1/partnermanager/partners/{partnerId}/certificate
uniqueIdentifier: TC_Partner_GetPartnerCert_02
description: Get partner certificate for invalid partnerId
role: partner
restMethod: get
inputTemplate: partner/authPartner/GetCertificate/getCert
Expand All @@ -29,6 +33,8 @@ GetPartnerCert:
}'
Partner_GetPartnerCert_invalid_certificate_doesnot_exist:
endPoint: /v1/partnermanager/partners/{partnerId}/certificate
uniqueIdentifier: TC_Partner_GetPartnerCert_03
description: Get partner certificate for invalid partnerId which doesn't exist
role: partner
restMethod: get
inputTemplate: partner/authPartner/GetCertificate/getCert
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
GetPartnerDetails:
Partner_GetPartner_invalid_partnerId:
endPoint: /v1/partnermanager/partners/{partnerId}
uniqueIdentifier: TC_Partner_GetPartnerDetails_01
description: Get Partner details for invalid partnerId
role: partner
restMethod: get
inputTemplate: partner/credentialPartner/GetPartner/getPartner
Expand All @@ -17,6 +19,8 @@ GetPartnerDetails:
}'
Partner_GetPartner_All_Valid_Smoke:
endPoint: /v1/partnermanager/partners/{partnerId}
uniqueIdentifier: TC_Partner_GetPartnerDetails_03
description: Get Partner details for valid partnerId
role: partner
restMethod: get
inputTemplate: partner/authPartner/GetPartner/getPartner
Expand Down
Loading