diff --git a/automationtests/src/main/resources/masterdata/DeviceSpecSearch/DeviceSpecSearch.yml b/automationtests/src/main/resources/masterdata/DeviceSpecSearch/DeviceSpecSearch.yml index e4ca90be98b..7c87cc52105 100644 --- a/automationtests/src/main/resources/masterdata/DeviceSpecSearch/DeviceSpecSearch.yml +++ b/automationtests/src/main/resources/masterdata/DeviceSpecSearch/DeviceSpecSearch.yml @@ -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$", diff --git a/automationtests/src/main/resources/masterdata/DeviceSpecification/CreateDeviceSpecification.yml b/automationtests/src/main/resources/masterdata/DeviceSpecification/CreateDeviceSpecification.yml index 26a4e079a65..3367fade9a0 100644 --- a/automationtests/src/main/resources/masterdata/DeviceSpecification/CreateDeviceSpecification.yml +++ b/automationtests/src/main/resources/masterdata/DeviceSpecification/CreateDeviceSpecification.yml @@ -45,7 +45,7 @@ CreateDeviceSpecification: output: '{ "errors": [ { - "errorCode": "KER-MSD-999" + "errorCode": "KER-MSD-054" } ] }' diff --git a/automationtests/src/main/resources/masterdata/GetMachineHistory/GetMachineHistory.yml b/automationtests/src/main/resources/masterdata/GetMachineHistory/GetMachineHistory.yml index 2c1266c0d02..1054c45295d 100644 --- a/automationtests/src/main/resources/masterdata/GetMachineHistory/GetMachineHistory.yml +++ b/automationtests/src/main/resources/masterdata/GetMachineHistory/GetMachineHistory.yml @@ -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 @@ -79,7 +80,7 @@ GetMachineHistory: output: '{ "errors": [ { - "errorCode": "$IGNORE$", + "errorCode": "KER-MSD-032", "message": "$IGNORE$" } ] diff --git a/automationtests/src/main/resources/masterdata/LocationData/CreateLocationData.yml b/automationtests/src/main/resources/masterdata/LocationData/CreateLocationData.yml index 22534cd1fa2..202b1c04b60 100644 --- a/automationtests/src/main/resources/masterdata/LocationData/CreateLocationData.yml +++ b/automationtests/src/main/resources/masterdata/LocationData/CreateLocationData.yml @@ -9,7 +9,7 @@ CreateLocationData: input: '{ "code": "TST12", "name": "Test_Loc_A_", - "hierarchyLevel": "0", + "hierarchyLevel": "$HIERARCHYLEVEL$", "hierarchyName": "$HIERARCHYNAME$", "parentLocCode": "$PARENTLOCCODE$", "langCode": "eng", @@ -35,7 +35,7 @@ CreateLocationData: input: '{ "code": "", "name": "Test_Loc_1_A", - "hierarchyLevel":"4", + "hierarchyLevel":"$HIERARCHYLEVEL$", "hierarchyName":"$HIERARCHYNAME$", "parentLocCode":"$PARENTLOCCODE$", "langCode": "eng", @@ -60,7 +60,7 @@ CreateLocationData: input: '{ "code": "NST", "name": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy", - "hierarchyLevel":"4", + "hierarchyLevel":"$HIERARCHYLEVEL$", "hierarchyName":"$HIERARCHYNAME$", "parentLocCode":"$PARENTLOCCODE$", "langCode": "eng", @@ -85,7 +85,7 @@ CreateLocationData: input: '{ "code": "NST", "name": "", - "hierarchyLevel":"4", + "hierarchyLevel":"$HIERARCHYLEVEL$", "hierarchyName":"$HIERARCHYNAME$", "parentLocCode":"$PARENTLOCCODE$", "langCode": "eng", @@ -135,7 +135,7 @@ CreateLocationData: input: '{ "code": "NST", "name": "NDATA", - "hierarchyLevel":"11", + "hierarchyLevel":"$HIERARCHYLEVEL$", "hierarchyName":"$HIERARCHYNAME$", "parentLocCode":"$PARENTLOCCODE$", "langCode": "eng", @@ -160,7 +160,7 @@ CreateLocationData: input: '{ "code": "NST", "name": "NDATA", - "hierarchyLevel":"3", + "hierarchyLevel":"$HIERARCHYLEVEL$", "hierarchyName":"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklm", "parentLocCode":"$PARENTLOCCODE$", "langCode": "eng", @@ -185,7 +185,7 @@ CreateLocationData: input: '{ "code": "NST", "name": "NDATA", - "hierarchyLevel":"3", + "hierarchyLevel":"$HIERARCHYLEVEL$", "hierarchyName":"", "parentLocCode":"$PARENTLOCCODE$", "langCode": "eng", @@ -210,7 +210,7 @@ CreateLocationData: input: '{ "code": "NST", "name": "NDATA", - "hierarchyLevel":"4", + "hierarchyLevel":"$HIERARCHYLEVEL$", "hierarchyName":"$HIERARCHYNAME$", "parentLocCode":"fbheafg", "langCode": "eng", @@ -237,7 +237,7 @@ CreateLocationData: input: '{ "code": "NST", "name": "NDATA", - "hierarchyLevel":"3", + "hierarchyLevel":"$HIERARCHYLEVEL$", "hierarchyName":"$HIERARCHYNAME$", "parentLocCode":"$PARENTLOCCODE$", "langCode": "eng", diff --git a/automationtests/src/main/resources/masterdata/SearchDocCategories/SearchDocCategories.yml b/automationtests/src/main/resources/masterdata/SearchDocCategories/SearchDocCategories.yml index d6bb70f0cbd..79fbb2a7319 100644 --- a/automationtests/src/main/resources/masterdata/SearchDocCategories/SearchDocCategories.yml +++ b/automationtests/src/main/resources/masterdata/SearchDocCategories/SearchDocCategories.yml @@ -80,6 +80,7 @@ SearchDocCategories: role: admin templateFields: ["languageCode"] restMethod: post + checkErrorsOnlyInResponse: true inputTemplate: masterdata/SearchDocCategories/searchDocCategories outputTemplate: masterdata/SearchDocCategories/searchDocCategoriesResult input: '{ @@ -108,7 +109,7 @@ SearchDocCategories: { "isActive": "$IGNORE$", "description": "$IGNORE$", - "code": "POA", + "code": "$IGNORE$", "langCode": "$IGNORE$", "name": "$IGNORE$" } diff --git a/automationtests/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml b/automationtests/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml index 6fa11e5a770..c1434efb083 100644 --- a/automationtests/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml +++ b/automationtests/src/main/resources/masterdata/SearchMachineSpec/SearchMachineSpec.yml @@ -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$" }] }' diff --git a/automationtests/src/main/resources/partner/ActivateDeactivatePartner/ActivateDeactivatePartner.yml b/automationtests/src/main/resources/partner/ActivateDeactivatePartner/ActivateDeactivatePartner.yml index 58ce355e817..34962f6db6b 100644 --- a/automationtests/src/main/resources/partner/ActivateDeactivatePartner/ActivateDeactivatePartner.yml +++ b/automationtests/src/main/resources/partner/ActivateDeactivatePartner/ActivateDeactivatePartner.yml @@ -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 diff --git a/automationtests/src/main/resources/partner/ActivateDeactivatePartnerApiKey/ActivateDeactivatePartnerApiKey.yml b/automationtests/src/main/resources/partner/ActivateDeactivatePartnerApiKey/ActivateDeactivatePartnerApiKey.yml index 3c76df7eb38..61e575c96e5 100644 --- a/automationtests/src/main/resources/partner/ActivateDeactivatePartnerApiKey/ActivateDeactivatePartnerApiKey.yml +++ b/automationtests/src/main/resources/partner/ActivateDeactivatePartnerApiKey/ActivateDeactivatePartnerApiKey.yml @@ -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 diff --git a/automationtests/src/main/resources/partner/authPartner/CreatePartner/CreatePartner.yml b/automationtests/src/main/resources/partner/authPartner/CreatePartner/CreatePartner.yml index baff6b73e3c..ab9dd844784 100644 --- a/automationtests/src/main/resources/partner/authPartner/CreatePartner/CreatePartner.yml +++ b/automationtests/src/main/resources/partner/authPartner/CreatePartner/CreatePartner.yml @@ -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": "mosipgh@gmail.com", + "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": "mosipsfgh@gmail.com", + "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 diff --git a/automationtests/src/main/resources/partner/authPartner/RequestAPIKey/RequestAPIKey.yml b/automationtests/src/main/resources/partner/authPartner/RequestAPIKey/RequestAPIKey.yml index 3cc3da22068..e2fd6ba22b1 100644 --- a/automationtests/src/main/resources/partner/authPartner/RequestAPIKey/RequestAPIKey.yml +++ b/automationtests/src/main/resources/partner/authPartner/RequestAPIKey/RequestAPIKey.yml @@ -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 diff --git a/automationtests/src/main/resources/partner/authPartner/UploadCert/UploadCert.yml b/automationtests/src/main/resources/partner/authPartner/UploadCert/UploadCert.yml index 65b448d6ad0..738a5eaafcf 100644 --- a/automationtests/src/main/resources/partner/authPartner/UploadCert/UploadCert.yml +++ b/automationtests/src/main/resources/partner/authPartner/UploadCert/UploadCert.yml @@ -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 diff --git a/automationtests/src/main/resources/partner/authPartner/UploadCert/uploadCert4.hbs b/automationtests/src/main/resources/partner/authPartner/UploadCert/uploadCert4.hbs new file mode 100644 index 00000000000..a03cbb24cb1 --- /dev/null +++ b/automationtests/src/main/resources/partner/authPartner/UploadCert/uploadCert4.hbs @@ -0,0 +1,11 @@ +{ + "id": "string", + "metadata": {}, + "request": { + "certificateData": "-----BEGIN CERTIFICATE-----\nMIIDdzCCAl+gAwIBAgIUEadCfDU4u+euv+QKtQczPkzx8ZgwDQYJKoZIhvcNAQEL\nBQAwYTELMAkGA1UEBhMCSU4xEjAQBgNVBAgMCUthcmFudGFrYTESMBAGA1UEBwwJ\nQmFuZ2Fsb3JlMRIwEAYDVQQKDAlNT1NJUFRFU1QxFjAUBgNVBAMMDW1vc2lwdGVz\ndC5vcmcwIBcNMjExMDI4MDk0OTA1WhgPMjEyMTEwMDUwOTQ5MDVaMFcxCzAJBgNV\nBAYTAklOMRIwEAYDVQQIDAlLYXJuYXRha2ExEjAQBgNVBAcMCUJhbmdhbG9yZTEP\nMA0GA1UECgwGVGVjaG5vMQ8wDQYDVQQDDAZUZWNobm8wggEiMA0GCSqGSIb3DQEB\nAQUAA4IBDwAwggEKAoIBAQDRKADJoldahY8x77a7GLMdZ/XXajChZA94csISXMgP\nhJnkOHnE0NvnzTraKfEXqA9Y3D4JDTODJTmd5hbeNjp1boXo3wZnzocb5gK6vA3p\n1kdlxSu7Ys0ZN5brH74bDCfr0BSeEX6TeJ3x+R3OAdiCM2taIQgaG2e7yRGbLosN\nHfV3WM3B76+N+GI8YKXia995Hsk/8zh2t5nXDXcga6zGhvdiN5goC/7Uq+RW60Fy\nNpEPdwXL4dydSbZsc857KLZ0Vz7ODdq1YnX23nElNVRo8q8UviUOvn8/Co7HVjWP\nGmwYw7aNnDBVzz62/1bxQrbMrI8RwMEI+DtKMS3C3bgnAgMBAAGjLzAtMAwGA1Ud\nEwEB/wQCMAAwHQYDVR0OBBYEFBKtNK93IR2yJJU8WrtNVY1fHdTRMA0GCSqGSIb3\nDQEBCwUAA4IBAQC2f5GdcPo/XQtXabAKcmGkt8xnKulIlsjCo69KiFzPgrhbeRIn\nGk4FkGAwFcYlhgUhgxfkoiQ6E0nNtgNosdug6P2fDFnAJa0usuy39TSKTdOF8BXn\npCsrwzApbhdUYvqXrunrsMlZx0JnCpChwjlQe6XdnaXCQVVlbcMrsl8hIP4kgm+w\nDJ6FdxqZhy5Y4vGJQTGp2cr2ZFICJFvYNavlh8d7yK9Eb4RpEh+qkXouHrPeQ2uj\nX4kB7HtY3mLthg/1erI3sUAJuTEs2cl3kVsO8QZZOGL5hvuo8dosbX6jwwxAmPZY\n5eEk1ZQBPuQ7MzRgxDHeM+xXamIahRqsFmAT\n-----END CERTIFICATE-----\n", + "partnerDomain": "dht", + "partnerId": "Tech-123" + }, + "requesttime": "{{requesttime}}", + "version": "string" +} \ No newline at end of file diff --git a/automationtests/src/main/resources/partner/policy/DefineDataSharePolicy/DefineDataSharePolicy.yml b/automationtests/src/main/resources/partner/policy/DefineDataSharePolicy/DefineDataSharePolicy.yml index 0883ce135a7..c3ccbf6b2d9 100644 --- a/automationtests/src/main/resources/partner/policy/DefineDataSharePolicy/DefineDataSharePolicy.yml +++ b/automationtests/src/main/resources/partner/policy/DefineDataSharePolicy/DefineDataSharePolicy.yml @@ -23,6 +23,54 @@ defineDataSharePolicy: "is_Active": false }' + Partner_DefineDataSharePolicy_All_for_req_ApiKey_sid: + endPoint: /v1/policymanager/policies + role: partner + restMethod: post + inputTemplate: partner/policy/DefineDataSharePolicy/defineDataSharePolicy + outputTemplate: partner/policy/DefineDataSharePolicy/defineDataSharePolicyResult + input: '{ + "desc": "mosip data share policy ApiKey", + "name": "mosip data share policy ApiKey", + "policyId": "MDSPFA", + "policyGroupName": "mosip policy group for req key For_Req_Key_deactivaed_Policy", + "policyType": "DataShare", + "format":"extraction", + "attributeName":"biometrics", + "version": "1.0", + "requesttime": "$TIMESTAMP$" +}' + output: ' { + "policyGroupName": "mosip policy group for req key For_Req_Key_deactivaed_Policy", + "name": "mosip data share policy", + "desc": "mosip data share policy", + "is_Active": false + }' + + Partner_DefineDataSharePolicy_All_for_Update_sid: + endPoint: /v1/policymanager/policies + role: partner + restMethod: post + inputTemplate: partner/policy/DefineDataSharePolicy/defineDataSharePolicy + outputTemplate: partner/policy/DefineDataSharePolicy/defineDataSharePolicyResult + input: '{ + "desc": "desc mosip policy group for req key For Update", + "name": "mosip policy group for req key For Update", + "policyId": "MDSPFU", + "policyGroupName": "mosip policy group for req key For Update", + "policyType": "DataShare", + "format":"extraction", + "attributeName":"biometrics", + "version": "1.0", + "requesttime": "$TIMESTAMP$" +}' + output: ' { + "policyGroupName": "mosip policy group for req key For Update", + "name": "mosip data share policy", + "desc": "mosip data share policy", + "is_Active": false + }' + Partner_DefineDataSharePolicy_ToCheckStatus_Smoke_sid: endPoint: /v1/policymanager/policies role: partner @@ -33,7 +81,7 @@ defineDataSharePolicy: "desc": "mosip data share policy check status", "name": "mosip data share policy to check status22", "policyId": "MDSP8", - "policyGroupName": "mosip policy status testing groupp", + "policyGroupName": "mosip policy group", "policyType": "DataShare", "format":"extraction", "attributeName":"biometrics", @@ -41,9 +89,9 @@ defineDataSharePolicy: "requesttime": "$TIMESTAMP$" }' output: ' { - "policyGroupName": "mosip policy status testing groupp", + "policyGroupName": "mosip policy group", "name": "mosip data share policy to check status22", - "desc": "mosip data share policy check status", + "desc": "mosip policy group", "is_Active": false }' Partner_DefineDataSharePolicy_WithoutMandatoryFields_All_Valid_Smoke_sid: @@ -69,6 +117,7 @@ defineDataSharePolicy: "desc": "mosip data share policy2", "is_Active": false }' + Partner_DefineDataSharePolicy_duplicate_policy_name: endPoint: /v1/policymanager/policies role: partner diff --git a/automationtests/src/main/resources/partner/policy/DefinePolicy/DefinePolicy.yml b/automationtests/src/main/resources/partner/policy/DefinePolicy/DefinePolicy.yml index e892624a5db..5120981cbe1 100644 --- a/automationtests/src/main/resources/partner/policy/DefinePolicy/DefinePolicy.yml +++ b/automationtests/src/main/resources/partner/policy/DefinePolicy/DefinePolicy.yml @@ -24,6 +24,32 @@ definePolicy: "desc": "desc mosip policy", "is_Active": false }' + + Partner_DefinePolicy_All_Valid_For_Get_ApiKey_with_deactivated_sid: + endPoint: /v1/policymanager/policies + role: partner + restMethod: post + inputTemplate: partner/policy/DefinePolicy/definePolicy + outputTemplate: partner/policy/DefinePolicy/definePolicyResult + input: '{ + "desc": "desc mosip policy", + "name": "mosip policy", + "authSubType": "FINGER", + "authType": "bio", + "mandatory": true, + "attributeName": "string", + "authTokenType": "partner", + "policyGroupName": "mosip policy group for req key For_Req_Key_deactivaed_Policy", + "policyType": "Auth", + "version": "1.0", + "requesttime": "$TIMESTAMP$" +}' + output: ' { + "policyGroupName": "mosip policy group for req key For_Req_Key_deactivaed_Policy", + "name": "mosip policy", + "desc": "desc mosip policy", + "is_Active": false +}' Partner_DefinePolicy_RandomTokenType_All_Valid_Smoke_sid: endPoint: /v1/policymanager/policies role: partner diff --git a/automationtests/src/main/resources/partner/policy/DefinePolicyGroup/DefinePolicyGroup.yml b/automationtests/src/main/resources/partner/policy/DefinePolicyGroup/DefinePolicyGroup.yml index 8d2d43f19a4..98ebe873e1d 100644 --- a/automationtests/src/main/resources/partner/policy/DefinePolicyGroup/DefinePolicyGroup.yml +++ b/automationtests/src/main/resources/partner/policy/DefinePolicyGroup/DefinePolicyGroup.yml @@ -15,6 +15,41 @@ definePolicyGroup: "desc": "desc mosip policy group", "is_Active": true }' + + Partner_DefinePolicyGroup_All_Valid_Smoke_For_Req_Key_deactivaed_Policy_sid: + endPoint: /v1/policymanager/policies/group/new + role: partner + restMethod: post + inputTemplate: partner/policy/DefinePolicyGroup/definePolicyGroup + outputTemplate: partner/policy/DefinePolicyGroup/definePolicyGroupResult + input: '{ + "desc": "desc mosip policy group for req key For_Req_Key_deactivaed_Policy", + "name": "mosip policy group for req key For_Req_Key_deactivaed_Policy", + "requesttime": "$TIMESTAMP$" + }' + output: ' { + "name": "mosip policy group for req key For_Req_Key_deactivaed_Policy", + "desc": "desc mosip policy group for req key For_Req_Key_deactivaed_Policy", + "is_Active": true + }' + + Partner_DefinePolicyGroup_All_Valid_Smoke_For_updatePolicy_sid: + endPoint: /v1/policymanager/policies/group/new + role: partner + restMethod: post + inputTemplate: partner/policy/DefinePolicyGroup/definePolicyGroup + outputTemplate: partner/policy/DefinePolicyGroup/definePolicyGroupResult + input: '{ + "desc": "desc mosip policy group for req key For Update", + "name": "mosip policy group for req key For Update", + "requesttime": "$TIMESTAMP$" + }' + output: ' { + "name": "mosip policy group for req key For Update", + "desc": "desc mosip policy group for req key For Update", + "is_Active": true + }' + Partner_DefinePolicyGroup_with_policy_manager_role_Smoke_sid: endPoint: /v1/policymanager/policies/group/new role: policytest diff --git a/automationtests/src/main/resources/partner/policy/PublishPolicy/PublishPolicy.yml b/automationtests/src/main/resources/partner/policy/PublishPolicy/PublishPolicy.yml index da15493aed6..c43b4a0da82 100644 --- a/automationtests/src/main/resources/partner/policy/PublishPolicy/PublishPolicy.yml +++ b/automationtests/src/main/resources/partner/policy/PublishPolicy/PublishPolicy.yml @@ -12,10 +12,10 @@ createPublishPolicy: }' output: '{ "policyGroupName": "mosip policy group", - "policyGroupDesc": "desc mosip policy group updated", + "policyGroupDesc": "desc mosip policy", "policyGroupStatus": true, "policyName": "mosip policy", - "policyDesc": "desc mosip policy updated", + "policyDesc": "desc mosip policy group updated", "policyType": "Auth", "status": "PUBLISHED", "is_Active": true, @@ -25,6 +25,70 @@ createPublishPolicy: "attributeName": "string", "authTokenType": "partner" }' + + Partner_PublishPolicy_All_Publish_Policy: + endPoint: /v1/policymanager/policies/{policyId}/group/{policygroupId}/publish + role: partner + restMethod: post + inputTemplate: partner/policy/PublishPolicy/publishPolicy + outputTemplate: partner/policy/PublishPolicy/publishPolicyResult + input: '{ + "policygroupId": "$ID:DefinePolicyGroup_All_Valid_Smoke_For_updatePolicy_sid_id$", + "policyId": "$ID:DefineDataSharePolicy_All_for_Update_sid_id$", + "requesttime": "$TIMESTAMP$" +}' + output: '{ + "policyGroupStatus": true, + "mandatory": true + + }' + + Partner_PublishPolicy_WIthRndomeToken_Smoke: + endPoint: /v1/policymanager/policies/{policyId}/group/{policygroupId}/publish + role: partner + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: partner/policy/PublishPolicy/publishPolicy + outputTemplate: partner/policy/PublishPolicy/publishPolicyResult + input: '{ + "policygroupId": "$ID:DefinePolicyGroup_All_Valid_Smoke_sid_id$", + "policyId": "$ID:DefinePolicy_RandomTokenType_All_Valid_Smoke_sid_id$", + "requesttime": "$TIMESTAMP$" +}' + output: '{ + "policyGroupName": "mosip policy group", + "policyGroupDesc": "desc mosip policy group updated", + "policyGroupStatus": true, + "policyName": " mosip policy2", + "policyDesc": "desc mosip policy2", + "policyType": "Auth", + "status": "PUBLISHED", + "is_Active": true, + "authType": "bio", + "authSubType": "FINGER", + "mandatory": false, + "attributeName": "string", + "authTokenType": "random" + }' + + Partner_PublishPolicy_Datashare_Smoke: + endPoint: /v1/policymanager/policies/{policyId}/group/{policygroupId}/publish + role: partner + restMethod: post + inputTemplate: partner/policy/PublishPolicy/publishPolicy + outputTemplate: partner/policy/PublishPolicy/publishPolicyResult + input: '{ + "policygroupId": "$ID:DefinePolicyGroup_All_Valid_Smoke_sid_id$", + "policyId": "$ID:DefineDataSharePolicy_WithoutMandatoryFields_All_Valid_Smoke_sid_id$", + "requesttime": "$TIMESTAMP$" +}' + output: '{ + "policyGroupName": "mosip policy group", + "policyGroupDesc": "desc mosip policy group updated", + "policyGroupStatus": true, + "is_Active": true + }' + Partner_PublishPolicy_InValid_AlreadyPublished: endPoint: /v1/policymanager/policies/{policyId}/group/{policygroupId}/publish role: partner diff --git a/automationtests/src/main/resources/partner/policy/UpdatePolicyStatus/UpdatePolicyStatus.yml b/automationtests/src/main/resources/partner/policy/UpdatePolicyStatus/UpdatePolicyStatus.yml index c007ffd32c6..60e993a96cc 100644 --- a/automationtests/src/main/resources/partner/policy/UpdatePolicyStatus/UpdatePolicyStatus.yml +++ b/automationtests/src/main/resources/partner/policy/UpdatePolicyStatus/UpdatePolicyStatus.yml @@ -13,7 +13,25 @@ UpdatePolicyStatus: }' output: ' { "message": "status updated successfully" - }' + }' + + Partner_UpdatePolicyStatus_DeActive_auth_All_Valid_Smoke: + endPoint: /v1/policymanager/policies/{policyId}/group/{policygroupId} + role: partner + restMethod: patch + inputTemplate: partner/policy/UpdatePolicyStatus/updatePolicyStatus + outputTemplate: partner/policy/UpdatePolicyStatus/updatePolicyStatusResult + input: '{ + "policyId": "$ID:DefinePolicy_All_Valid_For_Get_ApiKey_with_deactivated_sid_id$", + "policygroupId":"$ID:DefinePolicyGroup_All_Valid_Smoke_For_Req_Key_deactivaed_Policy_sid_id$", + "status":"De-Active", + "requesttime": "$TIMESTAMP$" +}' + output: ' { + "message": "status updated successfully" + }' + + Partner_UpdatePolicyStatus_DeActive_datashare_All_Valid_Smoke: endPoint: /v1/policymanager/policies/{policyId}/group/{policygroupId} role: partner