Skip to content

Commit

Permalink
MOSIP-29445
Browse files Browse the repository at this point in the history
Signed-off-by: Anup Nehe <[email protected]>
  • Loading branch information
anup-nehe committed Oct 12, 2023
1 parent 22ec9c7 commit aebacae
Show file tree
Hide file tree
Showing 17 changed files with 347 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ DeviceSpecSearch:
"id": "$IGNORE$",
"name": "Webcam",
"brand": "Logitech",
"model": "C270",
"model": "$IGNORE$",
"deviceTypeCode": "CMR",
"minDriverversion": "2.086",
"minDriverversion": "$IGNORE$",
"description": "$IGNORE$",
"langCode": "$IGNORE$",
"isActive": "$IGNORE$",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ CreateDeviceSpecification:
output: '{
"errors": [
{
"errorCode": "KER-MSD-999"
"errorCode": "KER-MSD-054"
}
]
}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ GetMachineHistory:
Admin_GetMachineHistory_allValid_smoke:
endPoint: /v1/masterdata/machineshistories/{id}/{langcode}/{effdatetimes}
role: admin
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: masterdata/GetMachineHistory/getMachineHistory
outputTemplate: masterdata/GetMachineHistory/getMachineHistoryResult
Expand Down Expand Up @@ -79,7 +80,7 @@ GetMachineHistory:
output: '{
"errors": [
{
"errorCode": "$IGNORE$",
"errorCode": "KER-MSD-032",
"message": "$IGNORE$"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CreateLocationData:
input: '{
"code": "TST12",
"name": "Test_Loc_A_",
"hierarchyLevel": "0",
"hierarchyLevel": "$HIERARCHYLEVEL$",
"hierarchyName": "$HIERARCHYNAME$",
"parentLocCode": "$PARENTLOCCODE$",
"langCode": "eng",
Expand All @@ -35,7 +35,7 @@ CreateLocationData:
input: '{
"code": "",
"name": "Test_Loc_1_A",
"hierarchyLevel":"4",
"hierarchyLevel":"$HIERARCHYLEVEL$",
"hierarchyName":"$HIERARCHYNAME$",
"parentLocCode":"$PARENTLOCCODE$",
"langCode": "eng",
Expand All @@ -60,7 +60,7 @@ CreateLocationData:
input: '{
"code": "NST",
"name": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy",
"hierarchyLevel":"4",
"hierarchyLevel":"$HIERARCHYLEVEL$",
"hierarchyName":"$HIERARCHYNAME$",
"parentLocCode":"$PARENTLOCCODE$",
"langCode": "eng",
Expand All @@ -85,7 +85,7 @@ CreateLocationData:
input: '{
"code": "NST",
"name": "",
"hierarchyLevel":"4",
"hierarchyLevel":"$HIERARCHYLEVEL$",
"hierarchyName":"$HIERARCHYNAME$",
"parentLocCode":"$PARENTLOCCODE$",
"langCode": "eng",
Expand Down Expand Up @@ -135,7 +135,7 @@ CreateLocationData:
input: '{
"code": "NST",
"name": "NDATA",
"hierarchyLevel":"11",
"hierarchyLevel":"$HIERARCHYLEVEL$",
"hierarchyName":"$HIERARCHYNAME$",
"parentLocCode":"$PARENTLOCCODE$",
"langCode": "eng",
Expand All @@ -160,7 +160,7 @@ CreateLocationData:
input: '{
"code": "NST",
"name": "NDATA",
"hierarchyLevel":"3",
"hierarchyLevel":"$HIERARCHYLEVEL$",
"hierarchyName":"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm",
"parentLocCode":"$PARENTLOCCODE$",
"langCode": "eng",
Expand All @@ -185,7 +185,7 @@ CreateLocationData:
input: '{
"code": "NST",
"name": "NDATA",
"hierarchyLevel":"3",
"hierarchyLevel":"$HIERARCHYLEVEL$",
"hierarchyName":"",
"parentLocCode":"$PARENTLOCCODE$",
"langCode": "eng",
Expand All @@ -210,7 +210,7 @@ CreateLocationData:
input: '{
"code": "NST",
"name": "NDATA",
"hierarchyLevel":"4",
"hierarchyLevel":"$HIERARCHYLEVEL$",
"hierarchyName":"$HIERARCHYNAME$",
"parentLocCode":"fbheafg",
"langCode": "eng",
Expand All @@ -237,7 +237,7 @@ CreateLocationData:
input: '{
"code": "NST",
"name": "NDATA",
"hierarchyLevel":"3",
"hierarchyLevel":"$HIERARCHYLEVEL$",
"hierarchyName":"$HIERARCHYNAME$",
"parentLocCode":"$PARENTLOCCODE$",
"langCode": "eng",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ SearchDocCategories:
role: admin
templateFields: ["languageCode"]
restMethod: post
checkErrorsOnlyInResponse: true
inputTemplate: masterdata/SearchDocCategories/searchDocCategories
outputTemplate: masterdata/SearchDocCategories/searchDocCategoriesResult
input: '{
Expand Down Expand Up @@ -108,7 +109,7 @@ SearchDocCategories:
{
"isActive": "$IGNORE$",
"description": "$IGNORE$",
"code": "POA",
"code": "$IGNORE$",
"langCode": "$IGNORE$",
"name": "$IGNORE$"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ SearchMachineSpec:
output: '{
"data": [{
"id": "$IGNORE$",
"name": "HP",
"name": "$IGNORE$",
"brand": "HP",
"model": "1234",
"model": "$IGNORE$",
"machineTypeCode": "$IGNORE$",
"minDriverversion": "3.2",
"description": "HP brand",
"minDriverversion": "$IGNORE$",
"description": "$IGNORE$",
"isActive": "$IGNORE$"
}]
}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,26 @@ ActivateDeactivatePartner:
output: '{
}'

Partner_ActivateDeactivatePartner_deactivate_Tech-1233:
endPoint: /v1/partnermanager/partners/{partnerId}
role: partner
checkErrorsOnlyInResponse: true
restMethod: patch
inputTemplate: partner/ActivateDeactivatePartner/activateDeactivatePartner
outputTemplate: partner/ActivateDeactivatePartner/activateDeactivatePartnerResult
input: '{
"partnerId": "Tech-1233",
"requesttime": "$TIMESTAMP$",
"status": "De-Active"
}'
output: '{
}'


Partner_ActivateDeactivatePartner_deactivate_Tech_321:
endPoint: /v1/partnermanager/partners/{partnerId}
role: partner
checkErrorsOnlyInResponse: true
restMethod: patch
inputTemplate: partner/ActivateDeactivatePartner/activateDeactivatePartner
outputTemplate: partner/ActivateDeactivatePartner/activateDeactivatePartnerResult
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,29 @@ ActivateDeactivatePartnerApiKey:
"status": "De-Active"
}'
output: '{
}'

Partner_ActivateDeactivatePartnerApiKey_deactivate_InValid_APIKey_Neg:
endPoint: /v1/partnermanager/partners/{partnerId}/policy/{policyId}/apiKey/status
role: partner
checkErrorsOnlyInResponse: true
restMethod: patch
inputTemplate: partner/ActivateDeactivatePartnerApiKey/activateDeactivatePartnerApiKey
outputTemplate: partner/ActivateDeactivatePartnerApiKey/activateDeactivatePartnerApiKeyResult
input: '{
"partnerId": "Tech-1233",
"policyId": "policyid",
"label": "string",
"requesttime": "$TIMESTAMP$",
"status": "De-Active"
}'
output: '{
"errors": [
{
"errorCode": "PMS_PRT_111"
}
]
}'
Partner_ActivateDeactivatePartnerApiKey_activate_allValid_smoke:
endPoint: /v1/partnermanager/partners/{partnerId}/policy/{policyId}/apiKey/status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,48 @@ createPartnerSelfRegistration:
"status": "InProgress"
}'

Partner_PartnerSelfRegistration_Deactive_Partner_sid:
endPoint: /v1/partnermanager/partners
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
outputTemplate: partner/authPartner/CreatePartner/createPartnerResult
input: '{
"address": "Bangalore",
"contactNumber": "8553967572",
"emailId": "[email protected]",
"organizationName": "Techno",
"partnerId": "Tech-321",
"partnerType": "Auth_Partner",
"policyGroup": "mosip policy group for req key For_Req_Key_deactivaed_Policy",
"requesttime": "$TIMESTAMP$"
}'
output: ' {
"partnerId": "Tech-321",
"status": "InProgress"
}'

Partner_PartnerSelfRegistration_All_for_Get_ApiKey_With_Deactive_Partner_sid:
endPoint: /v1/partnermanager/partners
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
outputTemplate: partner/authPartner/CreatePartner/createPartnerResult
input: '{
"address": "Bangalore",
"contactNumber": "8553967572",
"emailId": "[email protected]",
"organizationName": "Techno",
"partnerId": "Tech-1233",
"partnerType": "Auth_Partner",
"policyGroup": "mosip policy group for req key For_Req_Key_deactivaed_Policy",
"requesttime": "$TIMESTAMP$"
}'
output: ' {
"partnerId": "Tech-1233",
"status": "InProgress"
}'

Partner_PartnerSelfRegistration_AlreadyExisting_Policy_Name:
endPoint: /v1/partnermanager/partners
role: partner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,26 @@ RequestAPIKeyForAuthPartner:
output: '{
}'

Partner_SubmitPartnerApiKeyRequest_Approval_All_for_Deactivated_policy:
endPoint: /v1/partnermanager/partners/Tech-1233/policy/map
role: partner
checkErrorsOnlyInResponse: true
restMethod: post
inputTemplate: partner/authPartner/RequestAPIKey/requestApiKey
outputTemplate: partner/authPartner/RequestAPIKey/requestAPIKeyResult
input: '{
"policyName": "mosip policy group for req key For_Req_Key_deactivaed_Policy",
"useCaseDescription": "Need to submit the payment",
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "PMS_PMP_016"
}
]
}'

Partner_SubmitPartnerApiKeyRequest_Map_partner_partner_inprogress_state_Neg:
endPoint: /v1/partnermanager/partners/Tech-123/policy/map
role: partner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ uploadPartnerCert:
}
]
}'

Partner_UploadPartnerCert_invalid_Domain:
endPoint: /v1/partnermanager/partners/certificate/upload
role: partner
restMethod: post
inputTemplate: partner/authPartner/UploadCert/uploadCert4
outputTemplate: partner/error
input: '{
"requesttime": "$TIMESTAMP$"
}'
output: ' {
"errors": [
{
"errorCode": "KER-KMS-013"
}
]
}'
Partner_UploadPartnerCert_All_Valid_Smoke:
endPoint: /v1/partnermanager/partners/certificate/upload
role: partner
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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x0JnCpChwjlQe6XdnaXCQVVlbcMrsl8hIP4kgm+w\nDJ6FdxqZhy5Y4vGJQTGp2cr2ZFICJFvYNavlh8d7yK9Eb4RpEh+qkXouHrPeQ2uj\nX4kB7HtY3mLthg/1erI3sUAJuTEs2cl3kVsO8QZZOGL5hvuo8dosbX6jwwxAmPZY\n5eEk1ZQBPuQ7MzRgxDHeM+xXamIahRqsFmAT\n-----END CERTIFICATE-----\n",
"partnerDomain": "dht",
"partnerId": "Tech-123"
},
"requesttime": "{{requesttime}}",
"version": "string"
}
Loading

0 comments on commit aebacae

Please sign in to comment.