From a75e32a9061b82dc9c7095d7f664ccf029b5f20b Mon Sep 17 00:00:00 2001 From: Sohan Kumar Dey <72375959+Sohandey@users.noreply.github.com> Date: Wed, 21 Aug 2024 16:32:00 +0530 Subject: [PATCH 1/3] added array handle code Signed-off-by: Sohan Kumar Dey <72375959+Sohandey@users.noreply.github.com> --- .../apirig/testscripts/AddIdentity.java | 3 + .../apirig/testscripts/UpdateDraft.java | 37 ----------- .../main/resources/config/Kernel.properties | 64 +++++++++---------- .../ida/OtpInternalAuth/OtpInternalAuth.yml | 20 +++--- .../resources/ida/SendOTP/createSendOTP.yml | 2 +- 5 files changed, 43 insertions(+), 83 deletions(-) diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/AddIdentity.java b/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/AddIdentity.java index f150aa50590..668161218de 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/AddIdentity.java +++ b/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/AddIdentity.java @@ -135,6 +135,7 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad inputJson = inputJson.replace("$UIN$", uin); inputJson = inputJson.replace("$RID$", genRid); String phoneNumber = ""; + String email = testCaseName +"@mosip.net"; if (inputJson.contains("$PHONENUMBERFORIDENTITY$")) { if (!phoneSchemaRegex.isEmpty()) try { @@ -143,6 +144,8 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad logger.error(e.getMessage()); } inputJson = replaceKeywordWithValue(inputJson, "$PHONENUMBERFORIDENTITY$", phoneNumber); + inputJson = replaceKeywordWithValue(inputJson, "$EMAILVALUE$", email); + } response = postWithBodyAndCookie(ApplnURI + testCaseDTO.getEndPoint(), inputJson, COOKIENAME, diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/UpdateDraft.java b/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/UpdateDraft.java index 4dfbe4e1826..6b96d0e10af 100644 --- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/UpdateDraft.java +++ b/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/UpdateDraft.java @@ -90,46 +90,9 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad throw new SkipException(GlobalConstants.VID_FEATURE_NOT_SUPPORTED); } } - String jsonInput = testCaseDTO.getInput(); - - if (BaseTestCase.languageList.size() == 2) { - jsonInput = jsonInput.replace(", { \"language\": \"$3RDLANG$\", \"value\": \"FR\" }", ""); - jsonInput = jsonInput.replace(", { \"language\": \"$3RDLANG$\", \"value\": \"Female\" }", ""); - jsonInput = jsonInput.replace(", { \"language\": \"$3RDLANG$\", \"value\": \"Mrs Lisa.GN\" }", ""); - jsonInput = jsonInput.replace(", { \"language\": \"$3RDLANG$\", \"value\": \"Line1\" }", ""); - jsonInput = jsonInput.replace(", { \"language\": \"$3RDLANG$\", \"value\": \"Line2\" }", ""); - jsonInput = jsonInput.replace(", { \"language\": \"$3RDLANG$\", \"value\": \"Line3\" }", ""); - } else if (BaseTestCase.languageList.size() == 1) { - jsonInput = jsonInput.replace( - ", { \"language\": \"$2NDLANG$\", \"value\": \"FR\" }, { \"language\": \"$3RDLANG$\", \"value\": \"FR\" }", - ""); - jsonInput = jsonInput.replace( - ", { \"language\": \"$2NDLANG$\", \"value\": \"Female\" }, { \"language\": \"$3RDLANG$\", \"value\": \"Female\" }", - ""); - jsonInput = jsonInput.replace( - ", { \"language\": \"$2NDLANG$\", \"value\": \"Mrs Lisa.GN\" }, { \"language\": \"$3RDLANG$\", \"value\": \"Mrs Lisa.GN\" }", - ""); - jsonInput = jsonInput.replace( - ", { \"language\": \"$2NDLANG$\", \"value\": \"Line1\" }, { \"language\": \"$3RDLANG$\", \"value\": \"Line1\" }", - ""); - jsonInput = jsonInput.replace( - ", { \"language\": \"$2NDLANG$\", \"value\": \"Line2\" }, { \"language\": \"$3RDLANG$\", \"value\": \"Line2\" }", - ""); - jsonInput = jsonInput.replace( - ", { \"language\": \"$2NDLANG$\", \"value\": \"Line3\" }, { \"language\": \"$3RDLANG$\", \"value\": \"Line3\" }", - ""); - } - String inputJson = getJsonFromTemplate(jsonInput, testCaseDTO.getInputTemplate(), false); - if (inputJson.contains("$1STLANG$")) - inputJson = inputJson.replace("$1STLANG$", BaseTestCase.languageList.get(0)); - if (inputJson.contains("$2NDLANG$")) - inputJson = inputJson.replace("$2NDLANG$", BaseTestCase.languageList.get(1)); - if (inputJson.contains("$3RDLANG$")) - inputJson = inputJson.replace("$3RDLANG$", BaseTestCase.languageList.get(2)); - response = patchWithPathParamsBodyAndCookie(ApplnURI + testCaseDTO.getEndPoint(), inputJson, COOKIENAME, testCaseDTO.getRole(), testCaseDTO.getTestCaseName(), pathParams); diff --git a/apitest/src/main/resources/config/Kernel.properties b/apitest/src/main/resources/config/Kernel.properties index c25e25de3d7..a3895c72c4b 100644 --- a/apitest/src/main/resources/config/Kernel.properties +++ b/apitest/src/main/resources/config/Kernel.properties @@ -136,17 +136,17 @@ AuthClientID = mosip-resident-client #---------------------------------- Client Secret Keys -----------------------# #-- When test rig ran in docker, these values dervied from the environment ---# -mosip_partner_client_secret = -mosip_pms_client_secret = -mosip_resident_client_secret = -mosip_idrepo_client_secret = -mosip_reg_client_secret = -mosip_admin_client_secret = -mosip_hotlist_client_secret = -mosip_regproc_client_secret = -mpartner_default_mobile_secret = -mosip_testrig_client_secret = -AuthClientSecret = +mosip_partner_client_secret = w6z9XQQ6Toi5vzzY +mosip_pms_client_secret = 3XiMpmPfAAzT47EC +mosip_resident_client_secret = MiTOjWLVoFZw3CHZ +mosip_idrepo_client_secret = qKNTW5CTxKsgVGjw +mosip_reg_client_secret = Msc7sItq6Rg8vcEC +mosip_admin_client_secret = auWjWiniqX0YX8KF +mosip_hotlist_client_secret = lA7pCSLknLvT9Owj +mosip_regproc_client_secret = rR5eKHfG4i3BJf8S +mpartner_default_mobile_secret = duo1HolnpqNc6aMA +mosip_testrig_client_secret = G9qAJ3SrOm575GqL +AuthClientSecret = FeTFpxitRJC4IUiq @@ -168,17 +168,16 @@ new_Resident_Password = mosip123 new_Resident_Role = default-roles-mosip,PARTNER_ADMIN roles.111995 = PARTNER_ADMIN,default-roles-mosip keycloak_UserName = admin -keycloak_Password = -keycloak-external-url = https://iam.qa1-java21.mosip.net +keycloak_Password = DyWRaJqTFh +keycloak-external-url = https://iam.released.mosip.net keycloak-realm-id = mosip -iam-users-to-create=111997,111998,220005,111992,globaladmin,111999,111887 -iam-users-password=mosip123,mosip123,mosip123,mosip123,mosip123,mosip123,mosip123 -roles.220005=GLOBAL_ADMIN,ID_AUTHENTICATION,REGISTRATION_ADMIN,REGISTRATION_SUPERVISOR,ZONAL_ADMIN -roles.111997=AUTH_PARTNER,PARTNER_ADMIN,PMS_ADMIN,POLICYMANAGER,REGISTRATION_SUPERVISOR -roles.111999=AUTH_PARTNER,PARTNER_ADMIN,PMS_ADMIN,POLICYMANAGER,REGISTRATION_SUPERVISOR -roles.111887=AUTH_PARTNER,PARTNER_ADMIN,PMS_ADMIN,REGISTRATION_SUPERVISOR -roles.111998=POLICYMANAGER -roles.111992=GLOBAL_ADMIN +iam-users-to-create = 111997,111998,220005,111992,globaladmin,111887 +iam-users-password = mosip123,mosip123,mosip123,mosip123,mosip123 +roles.220005 = GLOBAL_ADMIN,ID_AUTHENTICATION,REGISTRATION_ADMIN,REGISTRATION_SUPERVISOR,ZONAL_ADMIN +roles.111997 = AUTH_PARTNER,PARTNER_ADMIN,PMS_ADMIN,POLICYMANAGER,REGISTRATION_SUPERVISOR +roles.111887 = AUTH_PARTNER,PARTNER_ADMIN,PMS_ADMIN,REGISTRATION_SUPERVISOR +roles.111998 = POLICYMANAGER +roles.111992 = GLOBAL_ADMIN roles.globaladmin = GLOBAL_ADMIN,REGISTRATION_ADMIN,uma_authorization,ZONAL_ADMIN,default-roles-mosip @@ -189,27 +188,27 @@ pool_size=1 dialect=org.hibernate.dialect.PostgreSQLDialect show_sql=true current_session_context_class=thread -audit_url=jdbc:postgresql://qa1-java21.mosip.net:5432/mosip_audit +audit_url=jdbc:postgresql://released.mosip.net:5432/mosip_audit audit_username=postgres -audit_password= +audit_password=2BhgiSpCaT audit_default_schema=audit DB_PORT= installation-domain= -partner_url=jdbc:postgresql://qa1-java21.mosip.net:5432/mosip_ida +partner_url=jdbc:postgresql://released.mosip.net:5432/mosip_ida partner_username=postgres -partner_password= +partner_password=2BhgiSpCaT partner_default_schema=partner reportLogPath=automationLogAndReport postgresqlUser=postgresql db-port=5432 -db-server=qa1-java21.mosip.net +db-server=released.mosip.net hibernate.connection.driver_class=org.postgresql.Driver hibernate.connection.pool_size=1 hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect hibernate.show_sql=true hibernate.current_session_context_class=thread db-su-user=postgres -postgres-password= +postgres-password=2BhgiSpCaT pms_db_schema=pms km_db_schema=keymgr master_db_schema=master @@ -236,11 +235,11 @@ threadCount=1 #------------------------ Generic properties ------------------------# enableDebug=yes preconfiguredOtp=111111 -usePreConfiguredOtp=false +usePreConfiguredOtp=true # supported values yes or no. Assume that by Default e-signet is deployed eSignetDeployed=yes partnerUrlSuffix=oYf63Lax0DY2QkYMRHnrmDqhmO3RMWQagwm0ftgLlkuin1KOND/666/576732 -reportIgnoredTestCases=no +reportIgnoredTestCases=yes servicesNotDeployed= esignetMockBaseURL=esignet-insurance. sunBirdBaseURL=registry @@ -249,7 +248,6 @@ serverErrorsToMonitor=IDA-MLC-018 pmsAuthInternal=true partner_password=mosip123 partner_userName=111997 -partner_revamp_userName=111999 partner_user_password=mosip123 policytest_password=mosip123 policytest_userName=111998 @@ -278,8 +276,4 @@ authCertsPath= #Uncommemnt the below to run in Docker #authDemoServiceBaseURL=http://authdemo.apitestrig #authDemoServicePort=80 -#authCertsPath=/home/mosip/authcerts - - -mosip_components_base_urls= -#auditmanager=api-internal.dev1.mosip.net;idrepository=api-internal.dev1.mosip.net;partnermanager=api-internal.qa-inji.mosip.net;idauthentication=api-internal.qa-inji.mosip.net;policymanager=api-internal.qa-inji.mosip.net \ No newline at end of file +#authCertsPath=/home/mosip/authcerts \ No newline at end of file diff --git a/apitest/src/main/resources/ida/OtpInternalAuth/OtpInternalAuth.yml b/apitest/src/main/resources/ida/OtpInternalAuth/OtpInternalAuth.yml index a94c603d757..d214b0a54b1 100644 --- a/apitest/src/main/resources/ida/OtpInternalAuth/OtpInternalAuth.yml +++ b/apitest/src/main/resources/ida/OtpInternalAuth/OtpInternalAuth.yml @@ -29,7 +29,7 @@ OTPInternalAuth: "transactionID": "$TRANSACTIONID$", "maskedMobile": "XXXXXX8538", "sendOtpResTemplate":"ida/OtpInternalAuth/sendOtpRes", - "maskedEmail": "XXkXXiXXb@technoforte.co.in" + "maskedEmail": "XXkXXiXXb@mailinator.co.in" } }' auth_OTP_Internal_Auth_With_Valid_VID_Smoke_Pos: @@ -62,7 +62,7 @@ OTPInternalAuth: "transactionID": "$TRANSACTIONID$", "maskedMobile": "XXXXXX8538", "sendOtpResTemplate":"ida/OtpInternalAuth/sendOtpRes", - "maskedEmail": "XXkXXiXXb@technoforte.co.in" + "maskedEmail": "XXkXXiXXb@mailinator.co.in" } }' auth_OTP_Internal_Auth_With_Invalid_individualId_neg: @@ -101,7 +101,7 @@ OTPInternalAuth: "transactionID": "$TRANSACTIONID$", "maskedMobile": "XXXXXX8538", "sendOtpResTemplate":"ida/OtpInternalAuth/sendOtpRes", - "maskedEmail": "XXkXXiXXb@technoforte.co.in" + "maskedEmail": "XXkXXiXXb@mailinator.co.in" } }' auth_OTP_Internal_Auth_With_Blank_individualId_neg: @@ -140,7 +140,7 @@ OTPInternalAuth: "transactionID": "$TRANSACTIONID$", "maskedMobile": "XXXXXX8538", "sendOtpResTemplate":"ida/OtpInternalAuth/sendOtpRes", - "maskedEmail": "XXkXXiXXb@technoforte.co.in" + "maskedEmail": "XXkXXiXXb@mailinator.co.in" } }' auth_OTP_Internal_Auth_With_Missing_individualId_neg: @@ -179,7 +179,7 @@ OTPInternalAuth: "transactionID": "$TRANSACTIONID$", "maskedMobile": "XXXXXX8538", "sendOtpResTemplate":"ida/OtpInternalAuth/sendOtpRes", - "maskedEmail": "XXkXXiXXb@technoforte.co.in" + "maskedEmail": "XXkXXiXXb@mailinator.co.in" } }' auth_OTP_Internal_Auth_Invalid_transactionId_neg: @@ -218,7 +218,7 @@ OTPInternalAuth: "transactionID": "$TRANSACTIONID$", "maskedMobile": "XXXXXX8538", "sendOtpResTemplate":"ida/OtpInternalAuth/sendOtpRes", - "maskedEmail": "XXkXXiXXb@technoforte.co.in" + "maskedEmail": "XXkXXiXXb@mailinator.co.in" } }' auth_OTP_Internal_Auth_Blank_transactionId_neg: @@ -257,7 +257,7 @@ OTPInternalAuth: "transactionID": "$TRANSACTIONID$", "maskedMobile": "XXXXXX8538", "sendOtpResTemplate":"ida/OtpInternalAuth/sendOtpRes", - "maskedEmail": "XXkXXiXXb@technoforte.co.in" + "maskedEmail": "XXkXXiXXb@mailinator.co.in" } }' auth_OTP_Internal_Auth_Invalid_individualIdType_neg: @@ -296,7 +296,7 @@ OTPInternalAuth: "transactionID": "$TRANSACTIONID$", "maskedMobile": "XXXXXX8538", "sendOtpResTemplate":"ida/OtpInternalAuth/sendOtpRes", - "maskedEmail": "XXkXXiXXb@technoforte.co.in" + "maskedEmail": "XXkXXiXXb@mailinator.co.in" } }' auth_OTP_Internal_Auth_Blank_individualIdType_neg: @@ -335,7 +335,7 @@ OTPInternalAuth: "transactionID": "$TRANSACTIONID$", "maskedMobile": "XXXXXX8538", "sendOtpResTemplate":"ida/OtpInternalAuth/sendOtpRes", - "maskedEmail": "XXkXXiXXb@technoforte.co.in" + "maskedEmail": "XXkXXiXXb@mailinator.co.in" } }' auth_OTP_Internal_Auth_Missing_individualIdType_neg: @@ -374,6 +374,6 @@ OTPInternalAuth: "transactionID": "$TRANSACTIONID$", "maskedMobile": "XXXXXX8538", "sendOtpResTemplate":"ida/OtpInternalAuth/sendOtpRes", - "maskedEmail": "XXkXXiXXb@technoforte.co.in" + "maskedEmail": "XXkXXiXXb@mailinator.co.in" } }' \ No newline at end of file diff --git a/apitest/src/main/resources/ida/SendOTP/createSendOTP.yml b/apitest/src/main/resources/ida/SendOTP/createSendOTP.yml index e3f59179772..152c4defa3d 100644 --- a/apitest/src/main/resources/ida/SendOTP/createSendOTP.yml +++ b/apitest/src/main/resources/ida/SendOTP/createSendOTP.yml @@ -17,5 +17,5 @@ createSendOTP: }' output: '{ "maskedMobile": "$IGNORE$", - "maskedEmail": "XXkXXlXXhXXuXXr@technoforte.co.in" + "maskedEmail": "XXkXXlXXhXXuXXr@mailinator.co.in" }' \ No newline at end of file From 5faae0099fc58a05d8972d01363581517ba521be Mon Sep 17 00:00:00 2001 From: Sohan Kumar Dey <72375959+Sohandey@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:57:13 +0530 Subject: [PATCH 2/3] MOSIP-36192 Signed-off-by: Sohan Kumar Dey <72375959+Sohandey@users.noreply.github.com> --- .../apirig/testrunner/MosipTestRunner.java | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) 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/testrunner/MosipTestRunner.java index 72f95161e02..a5f768fc721 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testrunner/MosipTestRunner.java @@ -66,14 +66,16 @@ public static void main(String[] arg) { for (String envName : envMap.keySet()) { LOGGER.info(String.format("ENV %s = %s%n", envName, envMap.get(envName))); } + BaseTestCase.setRunContext(getRunType(), jarUrl); ExtractResource.removeOldMosipTestTestResource(); - if (checkRunType().equalsIgnoreCase("JAR")) { + if (getRunType().equalsIgnoreCase("JAR")) { ExtractResource.extractCommonResourceFromJar(); } else { ExtractResource.copyCommonResources(); } IdAuthConfigManager.init(); - BaseTestCase.suiteSetup(); + + BaseTestCase.suiteSetup(getRunType()); SkipTestCaseHandler.loadTestcaseToBeSkippedList("testCaseSkippedList.txt"); setLogLevels(); @@ -115,7 +117,7 @@ public static void main(String[] arg) { LOGGER.error("Exception " + e.getMessage()); } - MockSMTPListener.bTerminate = true; + OTPListener.bTerminate = true; if (BaseTestCase.isTargetEnvLTS()) HealthChecker.bTerminate = true; @@ -146,7 +148,7 @@ public static void startTestRunner() { List modulesToRun = BaseTestCase.listOfModules; String os = System.getProperty("os.name"); LOGGER.info(os); - if (checkRunType().contains("IDE") || os.toLowerCase().contains("windows")) { + if (getRunType().contains("IDE") || os.toLowerCase().contains("windows")) { homeDir = new File(System.getProperty("user.dir") + "/testNgXmlFiles"); LOGGER.info("IDE :" + homeDir); } else { @@ -177,10 +179,10 @@ public static void startTestRunner() { */ /* * public static String getGlobalResourcePath() { if - * (checkRunType().equalsIgnoreCase("JAR")) { return new + * (getRunType().equalsIgnoreCase("JAR")) { return new * File(jarUrl).getParentFile().getAbsolutePath() + * "/MosipTestResource/MosipTemporaryTestResource"; } else if - * (checkRunType().equalsIgnoreCase("IDE")) { String path = new + * (getRunType().equalsIgnoreCase("IDE")) { String path = new * File(MosipTestRunner.class.getClassLoader().getResource("").getPath()). * getAbsolutePath() + "/MosipTestResource/MosipTemporaryTestResource"; if * (path.contains(GlobalConstants.TESTCLASSES)) path = @@ -194,9 +196,9 @@ public static String getGlobalResourcePath() { } String path = null; - if (checkRunType().equalsIgnoreCase("JAR")) { + if (getRunType().equalsIgnoreCase("JAR")) { path = new File(jarUrl).getParentFile().getAbsolutePath() + "/MosipTestResource/MosipTemporaryTestResource"; - } else if (checkRunType().equalsIgnoreCase("IDE")) { + } else if (getRunType().equalsIgnoreCase("IDE")) { path = new File(MosipTestRunner.class.getClassLoader().getResource("").getPath()).getAbsolutePath() + "/MosipTestResource/MosipTemporaryTestResource"; if (path.contains(GlobalConstants.TESTCLASSES)) @@ -213,9 +215,9 @@ public static String getGlobalResourcePath() { public static String getResourcePath() { return getGlobalResourcePath(); -// if (checkRunType().equalsIgnoreCase("JAR")) { +// if (getRunType().equalsIgnoreCase("JAR")) { // return new File(jarUrl).getParentFile().getAbsolutePath(); -// } else if (checkRunType().equalsIgnoreCase("IDE")) { +// } else if (getRunType().equalsIgnoreCase("IDE")) { // String path = new File(MosipTestRunner.class.getClassLoader().getResource("").getPath()).getAbsolutePath(); // if (path.contains(GlobalConstants.TESTCLASSES)) // path = path.replace(GlobalConstants.TESTCLASSES, "classes"); @@ -315,7 +317,7 @@ public static Properties getproperty(String path) { * * @return */ - public static String checkRunType() { + public static String getRunType() { if (MosipTestRunner.class.getResource("MosipTestRunner.class").getPath().contains(".jar")) return "JAR"; else From 4293be0de05f41787e81a41d2bcf2aa66773b001 Mon Sep 17 00:00:00 2001 From: Sohan Kumar Dey <72375959+Sohandey@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:16:01 +0530 Subject: [PATCH 3/3] MOSIP-36192 Signed-off-by: Sohan Kumar Dey <72375959+Sohandey@users.noreply.github.com> --- .../main/resources/config/Kernel.properties | 279 ------------------ 1 file changed, 279 deletions(-) delete mode 100644 api-test/src/main/resources/config/Kernel.properties diff --git a/api-test/src/main/resources/config/Kernel.properties b/api-test/src/main/resources/config/Kernel.properties deleted file mode 100644 index 2490b8f52c3..00000000000 --- a/api-test/src/main/resources/config/Kernel.properties +++ /dev/null @@ -1,279 +0,0 @@ -#---------------------------------- End point(s) relative URLs ----------------------------------# -authclientidsecretkeyURL = /v1/authmanager/authenticate/clientidsecretkey -authentication = /v1/authmanager/authenticate/useridPwd -authenticationInternal = /v1/authmanager/authenticate/internal/useridPwd -keycloakAuthURL = /auth/realms/master/protocol/openid-connect/token -auditLog_URI = /v1/auditmanager/audits -CentetMachineUserMappingToMasterData_uri = /v1/masterdata/registrationmachineusermappings -EmailNotification_URI = /v1/notifier/email/send -encrypt_URI = /v1/keymanager/encrypt -decrypt_URI = /v1/keymanager/decrypt -FetchApplication_URI = /v1/masterdata/applicationtypes -FetchApplication_lang_URI = /v1/masterdata/applicationtypes/{langcode} -FetchApplication_id_lang_URI = /v1/masterdata/applicationtypes/{code}/{langcode} -FetchBiometricAttribute_URI = /v1/masterdata/getbiometricattributesbyauthtype/{langcode}/{biometrictypecode} -FetchBiometricAuthType_URI = /v1/masterdata/biometrictypes/{langcode} -FetchBlackListedWord_URI = /v1/masterdata/blacklistedwords/{langcode} -FetchDevice_lang_URI = /v1/masterdata/devices/{languagecode} -FetchDevice_id_lang_URI = /v1/masterdata/devices/{languagecode}/{deviceType} -FetchDeviceSpec_lang_URI = /v1/masterdata/devicespecifications/{langcode} -FetchDeviceSpec_id_lang_URI = /v1/masterdata/devicespecifications/{langcode}/{devicetypecode} -FetchDocumentCategories_URI = /v1/masterdata/documentcategories/{langcode} -FetchDocumentCategories_URI_withcodeAndLangCode = /v1/masterdata/documentcategories/{code}/{langcode} -FetchDocumentTypes_URI = /v1/masterdata/documenttypes/{documentcategorycode}/{langcode} -FetchGenderType_URI = /v1/masterdata/gendertypes -FetchGenderType_id_lang_URI = /v1/masterdata/gendertypes/{langcode} -FetchHolidays_URI = /v1/masterdata/holidays -FetchHolidays_id_URI = /v1/masterdata/holidays/{holidayid} -FetchHolidays_id_lang_URI = /v1/masterdata/holidays/{holidayid}/{langcode} -FetchIDlist_URI = /v1/masterdata/idtypes/{langcode} -FetchLocationHierarchy_URI_withlangCode = /v1/masterdata/locations/{langcode} -FetchLocationHierarchy_URI_locationcode = /v1/masterdata/locations/{locationcode}/{langcode} -FetchLocationHierarchy_URI_hierarchyname = /v1/masterdata/locations/locationhierarchy/{hierarchyname} -FetchMachine_URI = /v1/masterdata/machines -FetchMachine_lang_URI = /v1/masterdata/machines/{langcode} -FetchMachine_id_lang_URI = /v1/masterdata/machines/{id}/{langcode} -FetchMachineHistory_URI = /v1/masterdata/machineshistories/{id}/{langcode}/{effdatetimes} -FetchRegCent_URI = /v1/masterdata/registrationcenters -FetchRegCent_id_lang_URI = /v1/masterdata/registrationcenters/{id}/{langcode} -FetchRegCent_loc_lang_URI = /v1/masterdata/getlocspecificregistrationcenters/{langcode}/{locationcode} -FetchRegCent_hir_name_lang_URI = /v1/masterdata/registrationcenters/{langcode}/{hierarchylevel}/{name} -FetchRegCent_prox_lang_URI = /v1/masterdata/getcoordinatespecificregistrationcenters/{langcode}/{longitude}/{latitude}/{proximitydistance} -FetchRegCentHistory_URI = /v1/masterdata/registrationcentershistory/{registrationCenterId}/{langcode}/{effectiveDate} -FetchRegCentHolidays_URI = /v1/masterdata/getregistrationcenterholidays/{langcode}/{registrationcenterid}/{year} -FetchRegcentMachUserMaping_URI = /v1/masterdata/getregistrationmachineusermappinghistory/{effdtimes}/{registrationcenterid}/{machineid}/{userid} -FetchRejectionReason_URI = /v1/masterdata/packetrejectionreasons/{reasoncategorycode}/{langcode} -FetchTemplate_URI = /v1/masterdata/templates -FetchTemplate_lang_URI = /v1/masterdata/templates/{langcode} -FetchTemplate_id_lang_URI = /v1/masterdata/templates/{langcode}/{templatetypecode} -FetchTitle_URI = /v1/masterdata/title/{langcode} -fetchAllTemplate = /v1/masterdata/templates/templatetypecodes/{code} -getApplicantType = /v1/masterdata/getApplicantType -fetchDeviceHistory = /v1/masterdata/deviceshistories/{id}/{langcode}/{effdatetimes} -getDocType_DocCatByAppID = /v1/masterdata/applicanttype/{applicantId}/languages -getDocTypeDocCatByLangCode = /v1/masterdata/validdocuments/{languagecode} -fetchImmediateChildLocation = /v1/masterdata/locations/immediatechildren/{locationcode}/{langcode} -getIndividualType = /v1/masterdata/individualtypes -getRoles = /v1/syncdata/roles -fetchRegCenter = /v1/masterdata/registrationcenters/validate/{id}/{langCode}/{timestamp} -fetchRegistrationCenterDeviceHistory = /v1/masterdata/registrationcenterdevicehistory/{regcenterid}/{deviceid}/{effdatetimes} -getusersBasedOnRegCenter = /v1/syncdata/userdetails/{regid} -licKeyGenerator = /v1/keymanager/license/generate -mapLicenseKey = /v1/keymanager/license/permission -fetchmapLicenseKey = /v1/keymanager/license/permission -OTPGeneration = /v1/otpmanager/otp/generate -OTPValidation = /v1/otpmanager/otp/validate -otpNotifier = /v1/otpnotifier/otp/send -RIDGenerator_URI = /v1/ridgenerator/generate/rid/{centerid}/{machineid} -SmsNotification_URI = /v1/notifier/sms/send -syncConf = /v1/syncdata/configs -fetchIncrementalData = /v1/syncjob/syncjobdef -fetchmasterdata = /v1/syncdata/masterdata -fetchmasterdatawithRID = /v1/syncdata/masterdata/{regcenterId} -SyncPublicKeyToRegClient_URI = /v1/keymanager/publickey/ -uingenerator = /v1/idgenerator/uin -validateGenderByName = /v1/masterdata/gendertypes/validate/{gendername} -validateLocationByName = /v1/masterdata/locations/validate/{locationname} -tokenIdGenerator_URI = /v1/keymanager/{uin}/{partnercode} -getRIDByUserId = /v1/authmanager/rid/{appid}/{userid} -syncMdatawithKeyIndex = /v1/syncdata/clientsettings -syncMdatawithRegCentIdKeyIndex = /v1/syncdata/clientsettings/{regcenterid} -uploadpublickey = /v1/syncdata/tpm/publickey -getUserHistory = /v1/masterdata/users/{id}/{eff_dtimes} -sendOtp = /v1/authmanager/authenticate/sendotp -useridOTP = /v1/authmanager/authenticate/useridOTP -preregSendOtp = /preregistration/v1/login/sendOtp/langcode -preregValidateOtp = /preregistration/v1/login/validateOtp -zoneMappingUrl = /v1/masterdata/zoneuser -zoneNameUrl = /v1/masterdata/zones/zonename -zoneMappingActivateUrl = /v1/masterdata/zoneuser -userCenterMappingUrl = /v1/masterdata/usercentermapping -bulkUploadUrl = /v1/admin/bulkupload -currentUserURI=/#/uinservices/viewhistory -actuatorEndpoint=/resident/v1/actuator/env -actuatorAdminEndpoint=/v1/admin/actuator/env -actuatorMasterDataEndpoint=/v1/masterdata/actuator/env -actuatorIDAEndpoint=/idauthentication/v1/actuator/env -actuatorRegprocEndpoint=/registrationprocessor/v1/registrationtransaction/actuator/env -actuatorEsignetEndpoint=/v1/esignet/actuator/env -tokenEndpoint=/v1/esignet/oauth/token -auditActuatorEndpoint=/v1/auditmanager/actuator/info -validateBindingEndpoint=ida-binding -esignetWellKnownEndPoint=/v1/esignet/oidc/.well-known/openid-configuration -signupSettingsEndPoint=/v1/signup/settings -esignetActuatorPropertySection=esignet-default.properties - - - -#---------------------------------- APP IDs ----------------------------------# -#-- When test rig ran in docker, these values dervied from the environment ---# -mosip_pms_app_id = partner -mosip_resident_app_id = resident -mosip_idrepo_app_id = idrepo -mosip_regclient_app_id = registrationclient -mosip_hotlist_app_id = hotlist -mosip_regprocclient_app_id = regproc -AuthAppID = resident -mosip_admin_app_id = admin - - - -#---------------------------------- Client IDs -------------------------------# -#-- When test rig ran in docker, these values dervied from the environment ---# -mosip_pms_client_id = mosip-pms-client -mosip_partner_client_id = mosip-partner-client -mosip_resident_client_id = mosip-resident-client -mosip_idrepo_client_id = mosip-idrepo-client -mosip_reg_client_id = mosip-reg-client -mosip_admin_client_id = mosip-admin-client -mosip_hotlist_client_id = mosip-hotlist-client -mosip_regproc_client_id = mosip-regproc-client -mpartner_default_mobile_client_id = mpartner-default-mobile -mosip_testrig_client_id = mosip-testrig-client -AuthClientID = mosip-resident-client - - - -#---------------------------------- Client Secret Keys -----------------------# -#-- When test rig ran in docker, these values dervied from the environment ---# -mosip_partner_client_secret = -mosip_pms_client_secret = -mosip_resident_client_secret = -mosip_idrepo_client_secret = -mosip_reg_client_secret = -mosip_admin_client_secret = -mosip_hotlist_client_secret = -mosip_regproc_client_secret = -mpartner_default_mobile_secret = -mosip_testrig_client_secret = -AuthClientSecret = - - - -#----------------------------- minio proprties ------------------------------# -s3-user-key = minioadmin -s3-user-secret = minioadmin -s3-host = http://minio.minio:9000 -s3-account = automation -s3-region = null -reportExpirationInDays = 3 -s3-account-for-persona-data = personaData -push-reports-to-s3 = yes - - -#-------------------- Keycloak User Creation proprties ----------------------# -#-- When test rig ran in docker,few of below dervied from the environment ---# -new_Resident_User = 111995 -new_Resident_Password = mosip123 -new_Resident_Role = default-roles-mosip,PARTNER_ADMIN -roles.111995 = PARTNER_ADMIN,default-roles-mosip -keycloak_UserName = admin -keycloak_Password = -keycloak-external-url = https://iam.qa-plan.mosip.net -keycloak-realm-id = mosip -iam-users-to-create = 111997,111998,220005,111992,globaladmin,111887,111999 -iam-users-password = mosip123,mosip123,mosip123,mosip123,mosip123 -roles.220005 = GLOBAL_ADMIN,ID_AUTHENTICATION,REGISTRATION_ADMIN,REGISTRATION_SUPERVISOR,ZONAL_ADMIN -roles.111997 = AUTH_PARTNER,PARTNER_ADMIN,PMS_ADMIN,POLICYMANAGER,REGISTRATION_SUPERVISOR -roles.111999 = AUTH_PARTNER,PARTNER_ADMIN,PMS_ADMIN,POLICYMANAGER,REGISTRATION_SUPERVISOR -roles.111887 = AUTH_PARTNER,PARTNER_ADMIN,PMS_ADMIN,REGISTRATION_SUPERVISOR -roles.111998 = POLICYMANAGER -roles.111992 = GLOBAL_ADMIN -roles.globaladmin = GLOBAL_ADMIN,REGISTRATION_ADMIN,uma_authorization,ZONAL_ADMIN,default-roles-mosip - - -#------------------------- DB Connectivity proprties ------------------------# -#-- When test rig ran in docker,few of below dervied from the environment ---# -driver_class=org.postgresql.Driver -pool_size=1 -dialect=org.hibernate.dialect.PostgreSQLDialect -show_sql=true -current_session_context_class=thread -audit_url=jdbc:postgresql://qa-plan.mosip.net:5432/mosip_audit -audit_username=postgres -audit_password= -audit_default_schema=audit -DB_PORT= -installation-domain= -partner_url=jdbc:postgresql://qa-plan.mosip.net:5432/mosip_ida -partner_username=postgres -partner_password= -partner_default_schema=partner -reportLogPath=automationLogAndReport -postgresqlUser=postgresql -db-port=5432 -db-server=qa-plan.mosip.net -hibernate.connection.driver_class=org.postgresql.Driver -hibernate.connection.pool_size=1 -hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect -hibernate.show_sql=true -hibernate.current_session_context_class=thread -db-su-user=postgres -postgres-password= -pms_db_schema=pms -km_db_schema=keymgr -master_db_schema=master -audit_db_schema=audit -ida_db_schema=ida - - -#------------------------- DSL specific proprties ------------------------# -#------------------------- We need to see how to have DSL specific proprties file ------------------------# -packetUtilityBaseUrl=http://localhost:8080 -mountPathForScenario=D:/centralized/mountvolume -mountPath=/home/mosip/mountvolume -# Add scenarios to skip from automation and server side -# supported values "S-scnearioNumber" for server side and "A-scnearioNumber" for automation -scenariosToSkip= -# Add scenarios to include in the the execution list -# Empty if we want to execute all the scenarios--- -scenariosToExecute= -# supported values yes or no -useExternalScenarioSheet=yes -# supported values are 1 to 8 -threadCount=1 - -#------------------------ Generic properties ------------------------# -enableDebug=yes -preconfiguredOtp=111111 -usePreConfiguredOtp=true -# supported values yes or no. Assume that by Default e-signet is deployed -eSignetDeployed=yes -partnerUrlSuffix=oYf63Lax0DY2QkYMRHnrmDqhmO3RMWQagwm0ftgLlkuin1KOND/666/576732 -reportIgnoredTestCases=no -reportKnownIssueTestCases=no -servicesNotDeployed= -esignetMockBaseURL=esignet-insurance. -sunBirdBaseURL=registry -slack-webhook-url= -serverErrorsToMonitor=IDA-MLC-018 -pmsAuthInternal=true -partner_password=mosip123 -partner_userName=111997 -partner_user_password=mosip123 -policytest_password=mosip123 -policytest_userName=111998 -policytest_without_pmrole_userName=111887 -admin_password=mosip123 -admin_userName=220005 -admin_zone_password=mosip123 -admin_zone_userName=globaladmin -mockNotificationChannel=email,phone -mountPathForReport=/home/mosip/testrig/report - - - -#------------------------- Need to check if these are used or not ------------------------# -OTPTimeOut = 181 -attempt = 10 -ConfigParameters=mosip.kernel.rid.length,mosip.kernel.uin.length,mosip.kernel.sms.country.code,mosip.kernel.sms.number.length,mosip.kernel.otp.default-length,mosip.kernel.otp.expiry-time,mosip.kernel.otp.key-freeze-time,mosip.kernel.otp.validation-attempt-threshold,mosip.kernel.otp.min-key-length,mosip.kernel.otp.max-key-length,mosip.kernel.licensekey.length,mosip.supported-languages -# supported values are 0 ,1, 2 based on number of env languages -langselect=0 - - - -#----------------------------------AuthDemoService Host properties----------------------------------------------------------# -#Uncommemnt the below to run locally -#authCertsPath= -#Uncommemnt the below to run in Docker -authCertsPath=/home/mosip/authcerts \ No newline at end of file