From f449140ede317fd767d0e2571ba4250f04bc6777 Mon Sep 17 00:00:00 2001 From: Mohanachandran S <165888272+mohanachandran-s@users.noreply.github.com> Date: Mon, 28 Oct 2024 17:44:19 +0530 Subject: [PATCH 1/9] MOSIP-36404 - Added admin role to GetPRIDByDate api (#752) Signed-off-by: Mohanachandran S --- .../GetPRIDByDateRange/GetPRIDByDateRange.yml | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml b/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml index c788176365..8fed1dd614 100644 --- a/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml +++ b/api-test/src/main/resources/preReg/GetPRIDByDateRange/GetPRIDByDateRange.yml @@ -3,7 +3,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_01 description: Retrieve the PRID within the given date range - role: regproc + role: admin checkErrorsOnlyInResponse: true restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange @@ -23,7 +23,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_02 description: Retrieve the PRID within the specified date range for the Invalid ID - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -46,7 +46,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_03 description: Retrieve the PRID within the specified date range for the blank ID - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -69,7 +69,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_04 description: Retrieve the PRID within the specified date range for the missing ID - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -92,7 +92,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_05 description: Retrieve the PRID within the specified date range for the invalid version - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -115,7 +115,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_06 description: Retrieve the PRID within the specified date range for the missing version - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -138,7 +138,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_07 description: Retrieve the PRID within the specified date range for the blank version - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -161,7 +161,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_08 description: Retrieve the PRID within the specified date range for the request time that is blank - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -184,7 +184,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_09 description: Retrieve the PRID within the specified date range for the missing request time - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -207,7 +207,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_10 description: Retrieve the PRID within the specified date range for the invalid request time - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -230,7 +230,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_11 description: Retrieve the PRID within the specified date range for the invalid registration center ID - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -253,7 +253,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_12 description: Retrieve the PRID within the specified date range for the blank registration center ID - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -276,7 +276,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_13 description: Retrieve the PRID within the specified date range for the missing registration center ID - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -299,7 +299,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_14 description: Retrieve the PRID within the specified date range where the fromDate is missing - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -322,7 +322,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_15 description: Retrieve the PRID within the specified date range where the fromDate is missing - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -345,7 +345,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_16 description: Retrieve the PRID within the specified date range where the fromDate field is blank - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -368,7 +368,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_17 description: Retrieve the PRID within the specified date range where the toDate field is blank - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -391,7 +391,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_18 description: Retrieve the PRID within the specified date range where the toDate field is missing - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error @@ -414,7 +414,7 @@ GetPRIDByDateRange: endPoint: /preregistration/v1/sync uniqueIdentifier: TC_prereg_GetPRIDByDateRange_19 description: Retrieve the PRID within the specified date range where the 'toDate' field is invalid - role: regproc + role: admin restMethod: post inputTemplate: preReg/GetPRIDByDateRange/getPRIDByDateRange outputTemplate: preReg/error From 3b9719c14c5599f4c2e4802e989d45d3b76aa40a Mon Sep 17 00:00:00 2001 From: Nandhukumar Date: Mon, 4 Nov 2024 16:54:03 +0530 Subject: [PATCH 2/9] MOSIP-37137 Signed-off-by: Nandhukumar --- .../apirig/{ => prereg}/testrunner/MosipTestRunner.java | 8 ++++++-- .../apirig/{ => prereg}/testscripts/BookAppoinment.java | 6 +++--- .../{ => prereg}/testscripts/BookAppoinmentByPrid.java | 6 +++--- .../apirig/{ => prereg}/testscripts/CreatePreReg.java | 6 +++--- .../apirig/{ => prereg}/testscripts/DeleteWithParam.java | 6 +++--- .../apirig/{ => prereg}/testscripts/GetWithParam.java | 6 +++--- .../testscripts/GetWithParamForAutoGenId.java | 6 +++--- .../PostWithFormDataAndFileForNotificationAPI.java | 6 +++--- .../testscripts/PostWithFormPathParamAndFile.java | 6 +++--- .../testscripts/PostWithPathParamsAndBody.java | 6 +++--- .../{ => prereg}/testscripts/PreregAuditValidator.java | 6 +++--- .../apirig/{ => prereg}/testscripts/PutWithPathParam.java | 6 +++--- .../apirig/{ => prereg}/testscripts/SimplePost.java | 6 +++--- .../apirig/{ => prereg}/testscripts/UpdatePrereg.java | 6 +++--- .../apirig/{ => prereg}/utils/PreRegConfigManager.java | 5 +++-- .../testrig/apirig/{ => prereg}/utils/PreRegUtil.java | 5 ++++- 16 files changed, 52 insertions(+), 44 deletions(-) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testrunner/MosipTestRunner.java (96%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/BookAppoinment.java (97%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/BookAppoinmentByPrid.java (96%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/CreatePreReg.java (97%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/DeleteWithParam.java (96%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/GetWithParam.java (96%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/GetWithParamForAutoGenId.java (96%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/PostWithFormDataAndFileForNotificationAPI.java (96%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/PostWithFormPathParamAndFile.java (95%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/PostWithPathParamsAndBody.java (95%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/PreregAuditValidator.java (96%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/PutWithPathParam.java (96%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/SimplePost.java (96%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/testscripts/UpdatePrereg.java (96%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/utils/PreRegConfigManager.java (84%) rename api-test/src/main/java/io/mosip/testrig/apirig/{ => prereg}/utils/PreRegUtil.java (71%) diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testrunner/MosipTestRunner.java similarity index 96% rename from api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testrunner/MosipTestRunner.java index d8a3d5485c..385d57d457 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testrunner/MosipTestRunner.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testrunner; +package io.mosip.testrig.apirig.prereg.testrunner; import java.io.File; import java.io.FileInputStream; @@ -22,6 +22,11 @@ import com.nimbusds.jose.jwk.KeyUse; import com.nimbusds.jose.jwk.RSAKey; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.testrunner.BaseTestCase; +import io.mosip.testrig.apirig.testrunner.ExtractResource; +import io.mosip.testrig.apirig.testrunner.HealthChecker; +import io.mosip.testrig.apirig.testrunner.OTPListener; import io.mosip.testrig.apirig.utils.AdminTestUtil; import io.mosip.testrig.apirig.utils.AuthTestsUtil; import io.mosip.testrig.apirig.utils.CertsUtil; @@ -33,7 +38,6 @@ import io.mosip.testrig.apirig.utils.MispPartnerAndLicenseKeyGeneration; import io.mosip.testrig.apirig.utils.OutputValidationUtil; import io.mosip.testrig.apirig.utils.PartnerRegistration; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; import io.mosip.testrig.apirig.utils.SkipTestCaseHandler; /** diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/BookAppoinment.java similarity index 97% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/BookAppoinment.java index f6a488a51b..f833cd48b5 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinment.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/BookAppoinment.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.util.List; @@ -23,6 +23,8 @@ import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.BaseTestCase; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; @@ -31,8 +33,6 @@ import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.KernelAuthentication; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.mosip.testrig.apirig.utils.RestClient; import io.restassured.response.Response; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/BookAppoinmentByPrid.java similarity index 96% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/BookAppoinmentByPrid.java index ef563921d6..c01a250d8c 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/BookAppoinmentByPrid.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/BookAppoinmentByPrid.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.util.List; @@ -23,6 +23,8 @@ import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; @@ -31,8 +33,6 @@ import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.KernelAuthentication; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.mosip.testrig.apirig.utils.RestClient; import io.restassured.response.Response; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/CreatePreReg.java similarity index 97% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/CreatePreReg.java index 0246c30bfa..9a3560b302 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/CreatePreReg.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/CreatePreReg.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.security.NoSuchAlgorithmException; @@ -24,6 +24,8 @@ import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.BaseTestCase; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; @@ -32,8 +34,6 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/DeleteWithParam.java similarity index 96% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/DeleteWithParam.java index ef87e0c054..d2f04d5d38 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DeleteWithParam.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/DeleteWithParam.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.util.ArrayList; @@ -22,6 +22,8 @@ import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; @@ -29,8 +31,6 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/GetWithParam.java similarity index 96% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/GetWithParam.java index 65757bb2d6..b6efe465ea 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParam.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/GetWithParam.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.util.ArrayList; @@ -22,6 +22,8 @@ import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; @@ -29,8 +31,6 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/GetWithParamForAutoGenId.java similarity index 96% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/GetWithParamForAutoGenId.java index 378ea41190..208d0516d0 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/GetWithParamForAutoGenId.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/GetWithParamForAutoGenId.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.util.ArrayList; @@ -22,6 +22,8 @@ import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; @@ -29,8 +31,6 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PostWithFormDataAndFileForNotificationAPI.java similarity index 96% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PostWithFormDataAndFileForNotificationAPI.java index 6a6c485bca..cc70330177 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormDataAndFileForNotificationAPI.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PostWithFormDataAndFileForNotificationAPI.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.util.List; @@ -20,6 +20,8 @@ import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; @@ -27,8 +29,6 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PostWithFormPathParamAndFile.java similarity index 95% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PostWithFormPathParamAndFile.java index f3fc0b6439..3b95c04144 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithFormPathParamAndFile.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PostWithFormPathParamAndFile.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.util.List; @@ -20,6 +20,8 @@ import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; @@ -27,8 +29,6 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PostWithPathParamsAndBody.java similarity index 95% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PostWithPathParamsAndBody.java index 5d59bbdf84..a539f703be 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PostWithPathParamsAndBody.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PostWithPathParamsAndBody.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.util.List; @@ -20,6 +20,8 @@ import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; @@ -27,8 +29,6 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PreregAuditValidator.java similarity index 96% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PreregAuditValidator.java index f7be19fa19..ecf99f0e8c 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PreregAuditValidator.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PreregAuditValidator.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.util.ArrayList; @@ -24,6 +24,8 @@ import io.mosip.testrig.apirig.dbaccess.AuditDBManager; import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.BaseTestCase; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; @@ -32,8 +34,6 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.restassured.response.Response; public class PreregAuditValidator extends AdminTestUtil implements ITest { diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PutWithPathParam.java similarity index 96% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PutWithPathParam.java index 5930fecebd..0d9a09b795 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/PutWithPathParam.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/PutWithPathParam.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.util.ArrayList; @@ -22,6 +22,8 @@ import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; @@ -29,8 +31,6 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/SimplePost.java similarity index 96% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/SimplePost.java index ea0480aec3..ad939d8095 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/SimplePost.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/SimplePost.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.util.ArrayList; @@ -22,6 +22,8 @@ import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; @@ -29,8 +31,6 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/UpdatePrereg.java similarity index 96% rename from api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/UpdatePrereg.java index 8546d4a625..0bf8286a9d 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/UpdatePrereg.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/testscripts/UpdatePrereg.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.testscripts; +package io.mosip.testrig.apirig.prereg.testscripts; import java.lang.reflect.Field; import java.util.ArrayList; @@ -22,6 +22,8 @@ import io.mosip.testrig.apirig.dto.OutputValidationDto; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.prereg.utils.PreRegConfigManager; +import io.mosip.testrig.apirig.prereg.utils.PreRegUtil; import io.mosip.testrig.apirig.testrunner.HealthChecker; import io.mosip.testrig.apirig.utils.AdminTestException; import io.mosip.testrig.apirig.utils.AdminTestUtil; @@ -29,8 +31,6 @@ import io.mosip.testrig.apirig.utils.ConfigManager; import io.mosip.testrig.apirig.utils.GlobalConstants; import io.mosip.testrig.apirig.utils.OutputValidationUtil; -import io.mosip.testrig.apirig.utils.PreRegConfigManager; -import io.mosip.testrig.apirig.utils.PreRegUtil; import io.mosip.testrig.apirig.utils.ReportUtil; import io.restassured.response.Response; diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegConfigManager.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/utils/PreRegConfigManager.java similarity index 84% rename from api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegConfigManager.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/utils/PreRegConfigManager.java index 2821c6e0c2..103a03162a 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegConfigManager.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/utils/PreRegConfigManager.java @@ -1,4 +1,4 @@ -package io.mosip.testrig.apirig.utils; +package io.mosip.testrig.apirig.prereg.utils; import java.util.HashMap; import java.util.Map; @@ -6,7 +6,8 @@ import org.apache.log4j.Logger; -import io.mosip.testrig.apirig.testrunner.MosipTestRunner; +import io.mosip.testrig.apirig.prereg.testrunner.MosipTestRunner; +import io.mosip.testrig.apirig.utils.ConfigManager; public class PreRegConfigManager extends ConfigManager{ private static final Logger LOGGER = Logger.getLogger(PreRegConfigManager.class); diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegUtil.java b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/utils/PreRegUtil.java similarity index 71% rename from api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegUtil.java rename to api-test/src/main/java/io/mosip/testrig/apirig/prereg/utils/PreRegUtil.java index 4e712707d4..ac78a949df 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/utils/PreRegUtil.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/prereg/utils/PreRegUtil.java @@ -1,9 +1,12 @@ -package io.mosip.testrig.apirig.utils; +package io.mosip.testrig.apirig.prereg.utils; import org.apache.log4j.Logger; import org.testng.SkipException; import io.mosip.testrig.apirig.dto.TestCaseDTO; +import io.mosip.testrig.apirig.utils.AdminTestUtil; +import io.mosip.testrig.apirig.utils.GlobalConstants; +import io.mosip.testrig.apirig.utils.SkipTestCaseHandler; public class PreRegUtil extends AdminTestUtil { From 62ef3790f4ba4a13133ce3e83c02725dfdab3b38 Mon Sep 17 00:00:00 2001 From: Nandhukumar Date: Mon, 4 Nov 2024 17:16:01 +0530 Subject: [PATCH 3/9] MOSIP-37137 Signed-off-by: Nandhukumar --- api-test/testNgXmlFiles/preregApi.xml | 82 +++++++++++++-------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/api-test/testNgXmlFiles/preregApi.xml b/api-test/testNgXmlFiles/preregApi.xml index d3f2e03e4c..8f6b7d17e2 100644 --- a/api-test/testNgXmlFiles/preregApi.xml +++ b/api-test/testNgXmlFiles/preregApi.xml @@ -14,7 +14,7 @@ value="preReg/createPrereg/createPrereg.yml" /> - + @@ -25,7 +25,7 @@ value="preReg/UpdatePreregistration/UpdatePreregistration.yml" /> - + @@ -34,7 +34,7 @@ - + @@ -42,7 +42,7 @@ - + @@ -50,7 +50,7 @@ - + @@ -58,7 +58,7 @@ value="preReg/uploadDocument/uploadDocument.yml" /> - + @@ -66,7 +66,7 @@ - + @@ -74,7 +74,7 @@ - + @@ -84,7 +84,7 @@ value="preReg/UpdatePreRegStatus/updatePreRegStatus.yml" /> - + @@ -93,21 +93,21 @@ - + - + - + @@ -115,7 +115,7 @@ value="preReg/bookAppointment/bookAppointment.yml" /> - + @@ -125,7 +125,7 @@ - + @@ -133,7 +133,7 @@ - + @@ -144,7 +144,7 @@ value="preReg/GetAppointmentDetails/GetAppointmentDetails.yml" /> - + @@ -152,7 +152,7 @@ - + @@ -161,7 +161,7 @@ - + @@ -171,7 +171,7 @@ - + @@ -179,7 +179,7 @@ - + @@ -187,7 +187,7 @@ - + @@ -196,7 +196,7 @@ - + @@ -204,7 +204,7 @@ - + @@ -214,7 +214,7 @@ - + @@ -224,7 +224,7 @@ - + @@ -234,21 +234,21 @@ - + - + - + @@ -256,14 +256,14 @@ - + - + @@ -271,14 +271,14 @@ - + - + @@ -286,7 +286,7 @@ - + @@ -296,7 +296,7 @@ - + @@ -305,7 +305,7 @@ - + @@ -313,7 +313,7 @@ - + @@ -322,35 +322,35 @@ - + - + - + - + - + From 9a4ecce58a7f2786c94ee4aba030dd0da614e568 Mon Sep 17 00:00:00 2001 From: Nandhukumar <100744358+nandhu-kumar@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:14:10 +0530 Subject: [PATCH 4/9] MOSIP-37137 | changed package name (#755) Signed-off-by: Nandhukumar --- api-test/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-test/pom.xml b/api-test/pom.xml index 2e5aa737c5..9f04c77530 100644 --- a/api-test/pom.xml +++ b/api-test/pom.xml @@ -163,7 +163,7 @@ - io.mosip.testrig.apirig.testrunner.MosipTestRunner + io.mosip.testrig.apirig.prereg.testrunner.MosipTestRunner