Skip to content

Commit

Permalink
Merge pull request #1196 from nandhu-kumar/develop
Browse files Browse the repository at this point in the history
partner fixes
  • Loading branch information
lsivanand authored Nov 15, 2023
2 parents 0082abd + da4d883 commit dd15750
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 165 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
GetPartnerApiKeyRequest:
Partner_GetPartnerApiKeyRequest_allValid_smoke:
endPoint: /v1/partnermanager/partners/{partnerId}/apikey/request
role: partner
checkErrorsOnlyInResponse: true
restMethod: get
inputTemplate: partner/GetPartnerApiKeyRequest/getPartnerApiKeyRequest
outputTemplate: partner/GetPartnerApiKeyRequest/getPartnerApiKeyRequestResult
input: '{
"partnerId": "Tech-123"
}'
output: '{
}'
Partner_GetPartnerApiKeyRequest_InValid_partnerId:
endPoint: /v1/partnermanager/partners/{partnerId}/apikey/request
role: partner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ GetPartners:
}'

Partner_PrintPartener_ByPartnerType_allValid_smoke:
endPoint: /v1/partnermanager/partners/new?partnerType=Print_Partner
endPoint: /v1/partnermanager/partners/v2?partnerType=Print_Partner
role: partner
checkErrorsOnlyInResponse: true
restMethod: get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ createSearchPartnerType:
endPoint: /v1/partnermanager/partners/partnertype/search
role: partner
restMethod: post
checkErrorsOnlyInResponse: true
inputTemplate: partner/SearchAPIs/SearchPartnerType/createSearchPartnerType
outputTemplate: partner/error
input: '{
Expand All @@ -306,16 +307,12 @@ createSearchPartnerType:
"version": "v1"
}'
output: '{
"errors": [
{
"errorCode": "PMS-MSD-314"
}
]
}'
Partner_SearchPartnerType_with_invalid_value_startswith:
endPoint: /v1/partnermanager/partners/partnertype/search
role: partner
restMethod: post
checkErrorsOnlyInResponse: true
inputTemplate: partner/SearchAPIs/SearchPartnerType/createSearchPartnerType
outputTemplate: partner/error
input: '{
Expand All @@ -338,11 +335,6 @@ createSearchPartnerType:
"version": "v1"
}'
output: '{
"errors": [
{
"errorCode": "PMS-MSD-314"
}
]
}'
Partner_SearchPartnerType_with_invalid_columnName:
endPoint: /v1/partnermanager/partners/partnertype/search
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,6 @@ createPartnerSelfRegistration:
"partnerId": "Tech-123",
"status": "InProgress"
}'
Partner_PartnerSelfRegistration_Login_as_user_without_Partner_admin_role:
endPoint: /v1/partnermanager/partners
role: partner
restMethod: post
inputTemplate: partner/authPartner/CreatePartner/createPartner
outputTemplate: partner/error
input: '{
"address": "Bangaloree",
"contactNumber": "8553967532",
"emailId": "[email protected]",
"organizationName": "Techno@98",
"partnerId": "Tech-1234",
"partnerType": "Auth_Partner",
"policyGroup": "mosip policy group",
"requesttime": "$TIMESTAMP$"
}'
output: ' {
"errors": [
{
"errorCode": "PMS_PRT_051"
}
]
}'

Partner_PartnerSelfRegistration_Deactive_Partner_sid:
endPoint: /v1/partnermanager/partners
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,7 @@ uploadPartnerCert:
"errorCode": "KER-PCM-011"
}
]
}'
Partner_UploadPartnerCert_invalid_file_format:
endPoint: /v1/partnermanager/partners/certificate/upload
role: partner
restMethod: post
inputTemplate: partner/authPartner/UploadCert/uploadCert5
outputTemplate: partner/error
input: '{
"requesttime": "$TIMESTAMP$"
}'
output: ' {
"errors": [
{
"errorCode": "KER-PCM-011"
}
]
}'
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
Expand Up @@ -38,23 +38,7 @@ uploadCACert:
"errorCode": "KER-PCM-003"
}
]
}'
Partner_UploadCACertificate_with_invalid_file_format:
endPoint: /v1/partnermanager/partners/certificate/ca/upload
role: partner
restMethod: post
inputTemplate: partner/authPartner/UploadCertificate/uploadCertificate2
outputTemplate: partner/error
input: '{
"requesttime": "$TIMESTAMP$"
}'
output: ' {
"errors": [
{
"errorCode": "KER-PCM-003"
}
]
}'
}'
Partner_UploadCACertificate_with_invalid_data:
endPoint: /v1/partnermanager/partners/certificate/ca/upload
role: partner
Expand All @@ -67,7 +51,7 @@ uploadCACert:
output: ' {
"errors": [
{
"errorCode": "KER-PCM-003"
"errorCode": "KER-CRY-003"
}
]
}'
Expand All @@ -83,7 +67,7 @@ uploadCACert:
output: ' {
"errors": [
{
"errorCode": "KER-PCM-003"
"errorCode": "PMS_COR_001"
}
]
}'
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ApproveAPIKey:
output: '{
"errors": [
{
"errorCode": "PMS_COR_001"
"errorCode": "PMS_PM_034"
}
]
}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "string",
"metadata": {},
"request": {
"certificateData": "-----BEGIN CERTIFICATE-----\nMIIFoTCCA4mgAwIBAgIUOaIOaTuw8B5buSxRMxO2PAbuzsowDQYJKoZIhvcNAQEL\nBQAwXzELMAkGA1UEBhMCSU4xDDAKBgNVBAgMA0tBUjEMMAoGA1UEBwwDQkxSMRAw\nDgYDVQQKDAdhcGl0ZXN0MRAwDgYDVQQLDAdhcGl0ZXN0MRAwDgYDVQQDDAdhcGl0\nZXN0MCAXDTIyMDExMjA5MjM1OVoYDzIwNzIwMTEwMDkyMzU5WjBfMQswCQYDVQQG\nEwJJTjEMMAoGA1UECAwDS0FSMQwwCgYDVQQHDANCTFIxEDAOBgNVBAoMB2FwaXRl\nc3QxEDAOBgNVBAsMB2FwaXRlc3QxEDAOBgNVBAMMB2FwaXRlc3QwggIiMA0GCSqG\nSIb3DQEBAQUAA4ICDwAwggIKAoICAQC1cTJc36do+cC6WQVV7YB9zT+oieedg3pS\nHNaUezipHZvUCVGD8nhYnPUn4ZPn0j424vN+IGmoIGVeCSk+MiL66H1jUmnsil+D\nf9tYl6M9SroCRJmCpT4AJcLtwgJlU8kC65h9DgPvDdMyHplmjxqHSaLBPXDMtUr6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egOpZ/KGY1gwWwZxLmsWofhLBjtv7Su3b7\nTKX+6IQyru0gt5JIw16rfezYRn/EIjrVRUdPLNS1kEmW/OX/LsRN8p2Q/v396STE\nTDGeLEhTRXI+5bB9umdt/adva18khG+2UobFVEymJ2Wpt9mazLKSx2Vi1/Y3wvr8\nSCZ+biiVGpDgpHhWBGG5JrE4qeA/OFJgX/EWb/EkZvzkTHjhwdWVCWwsybmLjUTX\noCIm4Ys=\n-----END CERTIFICATE-----\n",
"partnerDomain": "Auth"
},
"requesttime": "{{requesttime}}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ MapDeviceWithSBI:
role: partner
restMethod: put
inputTemplate: partner/device/SecureBiometricInterface/MapDeviceWithSBI/mapDeviceWithSBI
outputTemplate: partner/device/SecureBiometricInterface/MapDeviceWithSBI/mapDeviceWithSBIResult
outputTemplate: partner/error
input: '{
"deviceDetailId": "MOSIP.PROXY.SBI",
"sbiId": "$ID:SaveSecureBiometricInterface_Valid_Smoke_sid_id$"
}'
output: '{
"errors": [
{
"errorCode": "PMS_COR_001"
"errorCode": "PMS_AUT_005"
}
]
}'
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,6 @@ RejectSecureBiometricInterface:
output: '{
}'

Partner_RejectSecureBiometricInterface_DEActive_TO_Map:
endPoint: /v1/partnermanager/securebiometricinterface
role: partner
restMethod: patch
inputTemplate: partner/device/SecureBiometricInterface/reject/rejectSecureBiometricInterface
outputTemplate: partner/error
input: '{
"approvalStatus": "De-activate",
"id": "$ID:SaveSecureBiometricInterface_TO_Map_sid_id$",
"isItForRegistrationDevice": true,
"requesttime": "$TIMESTAMP$"
}'
output: '{
"errors": [
{
"errorCode": "PMS_COR_001"
}
]
}'

Partner_RejectSecureBiometricInterface_SpaVal_neg:
endPoint: /v1/partnermanager/securebiometricinterface
role: partner
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
ApproveFtpChipDetail:
Partner_ApproveFtpChipDetail_All_Valid_Smoke:
endPoint: /v1/partnermanager/ftpchipdetail
role: partner
checkErrorsOnlyInResponse: true
restMethod: patch
inputTemplate: partner/device/ftmChipDetails/approve/approveFtpChipDetail
outputTemplate: partner/device/ftmChipDetails/approve/approveFtpChipDetailResult
input: '{
"approvalStatus": true,
"ftpChipDetailId": "$ID:CreateFTPChipDetail_All_Valid_Smoke_sid_id$",
"requesttime": "$TIMESTAMP$"
}'
output: '{
}'

Partner_ApproveFtpChipDetail_Missing_InputParameter_ftpChipDetailId:
endPoint: /v1/partnermanager/ftpchipdetail
role: partner
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
UploadCertificateOfFtpChip:
Partner_UploadCertificate_All_Valid_Smoke:
endPoint: /v1/partnermanager/ftpchipdetail/uploadcertificate
role: partner
checkErrorsOnlyInResponse: true
restMethod: post
inputTemplate: partner/device/ftmChipDetails/uploadcert/uploadcertificate
outputTemplate: partner/device/ftmChipDetails/uploadcert/uploadcertificateResult
input: '{
"ftpProviderId": "FTP",
"ftpChipDeatilId": "$ID:CreateFTPChipDetail_All_Valid_Smoke_sid_id$",
"isItForRegistrationDevice": true,
"organizationName": "ftp",
"partnerDomain": "DEVICE"
}'
output: ' {
}'
Partner_UploadCertificate_InValid_ftpProviderId:
endPoint: /v1/partnermanager/ftpchipdetail/uploadcertificate
role: partner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ defineDataSharePolicy:
outputTemplate: partner/error
input: '{
"desc": "mosip data share policy",
"name": "mosip data share policy",
"name": "mosip data share policy name",
"policyId": "MDSP239fhfdndn",
"policyGroupName": "mosip policy group",
"policyType": "DataShare",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,32 +212,6 @@ definePolicy:
"is_Active": false
}'

Partner_DefinePolicy_demo_All_Valid_Smoke_sid:
endPoint: /v1/policymanager/policies
role: partner
restMethod: post
inputTemplate: partner/policy/DefinePolicy/definePolicy
outputTemplate: partner/policy/DefinePolicy/definePolicyResult
input: '{
"desc": "desc mosip policy9",
"name": "mosip policy9",
"authSubType": "FINGER",
"authType": "demo",
"mandatory": true,
"attributeName": "string",
"authTokenType": "partner",
"policyGroupName": "mosip policy group",
"policyType": "Auth",
"version": "1.0",
"requesttime": "$TIMESTAMP$"
}'
output: ' {
"policyGroupName": "mosip policy group",
"name": "mosip policy9",
"desc": "desc mosip policy9",
"is_Active": false
}'

Partner_DefinePolicy_DEMOAUTH_with_SAME_POLICYNAME_NEG:
endPoint: /v1/policymanager/policies
role: partner
Expand Down Expand Up @@ -655,4 +629,30 @@ definePolicy:
"errorCode": "PMS_COR_001"
}
]
}'

Partner_DefinePolicy_demo_All_Valid_Smoke_sid:
endPoint: /v1/policymanager/policies
role: partner
restMethod: post
inputTemplate: partner/policy/DefinePolicy/definePolicy
outputTemplate: partner/policy/DefinePolicy/definePolicyResult
input: '{
"desc": "desc mosip policy9",
"name": "mosip policy9",
"authSubType": "FINGER",
"authType": "demo",
"mandatory": true,
"attributeName": "string",
"authTokenType": "partner",
"policyGroupName": "mosip policy group",
"policyType": "Auth",
"version": "1.0",
"requesttime": "$TIMESTAMP$"
}'
output: ' {
"policyGroupName": "mosip policy group",
"name": "mosip policy9",
"desc": "desc mosip policy9",
"is_Active": false
}'
4 changes: 2 additions & 2 deletions automationtests/testNgXmlFiles/partnerApi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -858,13 +858,13 @@
</test>


<test name="GetFTPChipDetail">
<!-- <test name="GetFTPChipDetail">
<parameter name="ymlFile"
value="partner/device/ftmChipDetails/get/GetFtpChipDetail.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParam" />
</classes>
</test>
</test>-->
<test name="RejectFtpChipDetail">
<parameter name="ymlFile"
value="partner/device/ftmChipDetails/reject/RejectFtpChipDetail.yml" />
Expand Down

0 comments on commit dd15750

Please sign in to comment.