Skip to content

Commit

Permalink
MOSIP-35404
Browse files Browse the repository at this point in the history
Signed-off-by: Nandhukumar <[email protected]>
  • Loading branch information
nandhu-kumar committed Dec 3, 2024
1 parent 4919e72 commit b95e4cf
Showing 1 changed file with 0 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,36 +107,6 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad
inputJson = inputJson.replace("&quot;", "\"");
}

if (inputJson.contains("$PHONENUMBERFROMREGEXFORSIGNUP$")) {
String phoneNumber = getPhoneNumber();
if (phoneNumber != null && !phoneNumber.isEmpty()) {
inputJson = replaceKeywordWithValue(inputJson, "$PHONENUMBERFROMREGEXFORSIGNUP$", phoneNumber);
writeAutoGeneratedId(testCaseDTO.getTestCaseName(), "PHONE", phoneNumber);
}
}

if (inputJson.contains("$FULLNAMETOREGISTERUSER$")) {
String jsonString = generateFullNameToRegisterUser(inputJson, testCaseDTO.getTestCaseName());
if (!jsonString.isBlank())
inputJson = jsonString;
}

if (inputJson.contains("$PASSWORDTOREGISTERUSER$")) {
// String password = getPasswordPattern();
String password = PASSWORD_FOR_ADDIDENTITY_AND_REGISTRATION;
if (password != null && !password.isEmpty()) {
inputJson = replaceKeywordWithValue(inputJson, "$PASSWORDTOREGISTERUSER$", password);
// writeAutoGeneratedId(testCaseDTO.getTestCaseName(), "PASSWORD", password);
}
}

if (inputJson.contains("$PASSWORDTORESET$")) {
String passwordToReset = PASSWORD_TO_RESET;
if (passwordToReset != null && !passwordToReset.isEmpty()) {
inputJson = replaceKeywordWithValue(inputJson, "$PASSWORDTORESET$", passwordToReset);
}
}

if (testCaseDTO.getTemplateFields() != null && templateFields.length > 0) {
ArrayList<JSONObject> inputtestCases = AdminTestUtil.getInputTestCase(testCaseDTO);
ArrayList<JSONObject> outputtestcase = AdminTestUtil.getOutputTestCase(testCaseDTO);
Expand Down

0 comments on commit b95e4cf

Please sign in to comment.