From e0762ecbea68e253b10aeca6e93066a64a82167e Mon Sep 17 00:00:00 2001 From: Nandhukumar Date: Thu, 18 Jul 2024 13:17:53 +0530 Subject: [PATCH] MOSIP-33845 Signed-off-by: Nandhukumar --- .../apirig/testrunner/MosipTestRunner.java | 22 ++++++++----------- .../DemoAuthSimplePostForAutoGenId.java | 6 ----- .../main/resources/config/Kernel.properties | 8 +------ 3 files changed, 10 insertions(+), 26 deletions(-) diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java b/apitest/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java index 9b746e63c0e..a3db19b6aa5 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java +++ b/apitest/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java @@ -92,20 +92,16 @@ public static void main(String[] arg) { String updatedPartnerKeyURL = ""; String ekycPartnerKeyURL = ""; - if (BaseTestCase.listOfModules.contains("auth") - || BaseTestCase.listOfModules.contains(GlobalConstants.ESIGNET)) { - PartnerRegistration.deleteCertificates(); - CertificateGenerationUtil.getThumbprints(); - AdminTestUtil.createAndPublishPolicy(); - AdminTestUtil.createEditAndPublishPolicy(); - partnerKeyURL = PartnerRegistration.generateAndGetPartnerKeyUrl(); - updatedPartnerKeyURL = PartnerRegistration.generateAndGetUpdatedPartnerKeyUrl(); - - AdminTestUtil.createAndPublishPolicyForKyc(); - ekycPartnerKeyURL = PartnerRegistration.generateAndGetEkycPartnerKeyUrl(); + PartnerRegistration.deleteCertificates(); + CertificateGenerationUtil.getThumbprints(); + AdminTestUtil.createAndPublishPolicy(); + AdminTestUtil.createEditAndPublishPolicy(); + partnerKeyURL = PartnerRegistration.generateAndGetPartnerKeyUrl(); + updatedPartnerKeyURL = PartnerRegistration.generateAndGetUpdatedPartnerKeyUrl(); + + AdminTestUtil.createAndPublishPolicyForKyc(); + ekycPartnerKeyURL = PartnerRegistration.generateAndGetEkycPartnerKeyUrl(); - } - BiometricDataProvider.generateBiometricTestData("Registration"); if (BaseTestCase.listOfModules.contains(GlobalConstants.MASTERDATA)) { diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/DemoAuthSimplePostForAutoGenId.java b/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/DemoAuthSimplePostForAutoGenId.java index 60136f52966..03db94cc17f 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/DemoAuthSimplePostForAutoGenId.java +++ b/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/DemoAuthSimplePostForAutoGenId.java @@ -197,12 +197,6 @@ public void test(TestCaseDTO testCaseDTO) throw new AdminTestException("Failed at output validation"); } } else { - if (testCaseName.contains("partnerDemoDown")) { - - url = ConfigManager.getAuthDemoServiceUrl() + "local"; - } else { - url = ConfigManager.getAuthDemoServiceUrl(); - } response = postWithBodyAndCookie(url + testCaseDTO.getEndPoint(), inputJson, COOKIENAME, testCaseDTO.getRole(), testCaseDTO.getTestCaseName()); diff --git a/apitest/src/main/resources/config/Kernel.properties b/apitest/src/main/resources/config/Kernel.properties index b728b03cd2a..f96b3645000 100644 --- a/apitest/src/main/resources/config/Kernel.properties +++ b/apitest/src/main/resources/config/Kernel.properties @@ -234,7 +234,7 @@ useExternalScenarioSheet=yes threadCount=1 #------------------------ Generic properties ------------------------# -enableDebug=no +enableDebug=yes preconfiguredOtp=111111 usePreConfiguredOtp=true # supported values yes or no. Assume that by Default e-signet is deployed @@ -270,13 +270,7 @@ langselect=0 #----------------------------------AuthDemoService Host properties----------------------------------------------------------# -#Uncommemnt the below to run locally -#authDemoServiceBaseURL=http://localhost -#authDemoServicePort=8082 #authCertsPath= -#Uncommemnt the below to run in Docker -authDemoServiceBaseURL=http://authdemo.apitestrig -authDemoServicePort=80 authCertsPath=/home/mosip/authcerts