Skip to content

Commit

Permalink
MOSIP-36343
Browse files Browse the repository at this point in the history
Signed-off-by: Pankaj Godiyal <[email protected]>
  • Loading branch information
pg-techno123 committed Oct 7, 2024
1 parent e0ec699 commit 77bb3f4
Show file tree
Hide file tree
Showing 98 changed files with 239 additions and 675 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@

import java.util.HashMap;
import java.util.Properties;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.json.JSONObject;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.testng.Reporter;

import io.mosip.testrig.apirig.utils.KernelAuthentication;
import io.mosip.testrig.dslrig.ivv.core.base.StepInterface;
import io.mosip.testrig.dslrig.ivv.core.exceptions.RigInternalError;
Expand All @@ -20,8 +16,6 @@
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;
import io.restassured.response.Response;

@Scope("prototype")
@Component
public class ActivateDeactivate extends BaseTestCaseUtil implements StepInterface {
public static Logger logger = Logger.getLogger(ActivateDeactivate.class);
KernelAuthentication kernelAuthLib = new KernelAuthentication();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.json.JSONObject;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.testng.Reporter;

import io.mosip.testrig.apirig.dto.TestCaseDTO;
import io.mosip.testrig.apirig.utils.ConfigManager;
import io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId;
import io.mosip.testrig.dslrig.ivv.core.base.StepInterface;
import io.mosip.testrig.dslrig.ivv.core.exceptions.RigInternalError;
import io.mosip.testrig.dslrig.ivv.orchestrator.BaseTestCaseUtil;
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;

@Scope("prototype")
@Component
public class ApproveRejectPacket extends BaseTestCaseUtil implements StepInterface {
private static final String DECISSIONDATA_YML = "preReg/approveRejectPacket/decissionData.yml";
public static Logger logger = Logger.getLogger(ApproveRejectPacket.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,14 @@
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.json.JSONObject;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.testng.Reporter;

import io.mosip.testrig.apirig.dto.TestCaseDTO;
import io.mosip.testrig.apirig.testscripts.SimplePost;
import io.mosip.testrig.dslrig.ivv.core.base.StepInterface;
import io.mosip.testrig.dslrig.ivv.core.exceptions.RigInternalError;
import io.mosip.testrig.dslrig.ivv.orchestrator.BaseTestCaseUtil;
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;

@Scope("prototype")
@Component
public class AssignPacketToUser extends BaseTestCaseUtil implements StepInterface {
private static final String ASSIGNDATA_YML = "preReg/assignPacketToUser/assignData.yml";
public static Logger logger = Logger.getLogger(AssignPacketToUser.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import io.mosip.testrig.apirig.dto.TestCaseDTO;
import io.mosip.testrig.apirig.utils.AdminTestUtil;
import io.mosip.testrig.apirig.testrunner.JsonPrecondtion;
Expand All @@ -24,8 +21,6 @@
import io.mosip.testrig.dslrig.ivv.orchestrator.TestRunner;
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;

@Scope("prototype")
@Component
public class BioAuthentication extends BaseTestCaseUtil implements StepInterface {
public static Logger logger = Logger.getLogger(BioAuthentication.class);
private static final String BIOMETRIC_FACE = "idaData/BioAuth/BioAuth.yml";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,12 @@
import java.util.Arrays;
import java.util.List;
import java.util.Properties;

import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import io.mosip.testrig.apirig.utils.AdminTestUtil;
import io.mosip.testrig.apirig.dto.TestCaseDTO;
import io.mosip.testrig.apirig.testrunner.JsonPrecondtion;
import io.mosip.testrig.apirig.utils.ConfigManager;
import io.mosip.testrig.apirig.testrunner.BaseTestCase;
import io.mosip.testrig.apirig.testscripts.EsignetBioAuth;
import io.mosip.testrig.dslrig.ivv.core.base.StepInterface;
Expand All @@ -25,8 +20,6 @@
import io.mosip.testrig.dslrig.ivv.orchestrator.TestRunner;
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;

@Scope("prototype")
@Component
public class BioEsignetAuthentication extends BaseTestCaseUtil implements StepInterface {
public static Logger logger = Logger.getLogger(BioEsignetAuthentication.class);
private static final String AuthenticateUser = "idaData/BioAuthEsignet/BioAuthEsignet.yml";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@

import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import io.mosip.testrig.dslrig.ivv.core.base.StepInterface;
import io.mosip.testrig.dslrig.ivv.core.exceptions.RigInternalError;
import io.mosip.testrig.dslrig.ivv.orchestrator.BaseTestCaseUtil;
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;

@Scope("prototype")
@Component
public class BookAppointment extends BaseTestCaseUtil implements StepInterface {
public static Logger logger = Logger.getLogger(BookAppointment.class);
boolean bookOnHolidays = Boolean.FALSE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,13 @@
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.json.JSONObject;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import io.mosip.testrig.apirig.utils.ConfigManager;
import io.mosip.testrig.dslrig.ivv.core.base.StepInterface;
import io.mosip.testrig.dslrig.ivv.core.exceptions.RigInternalError;
import io.mosip.testrig.dslrig.ivv.e2e.constant.E2EConstants;
import io.mosip.testrig.dslrig.ivv.orchestrator.BaseTestCaseUtil;
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;
import io.restassured.response.Response;

@Scope("prototype")
@Component
public class BookSpecificSlotForPrid extends BaseTestCaseUtil implements StepInterface {
public static Logger logger = Logger.getLogger(BookSpecificSlotForPrid.class);
String appointment_date = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,13 @@
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.json.JSONArray;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import io.mosip.testrig.dslrig.ivv.core.base.StepInterface;
import io.mosip.testrig.dslrig.ivv.core.exceptions.RigInternalError;
import io.mosip.testrig.dslrig.ivv.orchestrator.BaseTestCaseUtil;
import io.mosip.testrig.dslrig.ivv.orchestrator.PacketUtility;
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;
import io.restassured.response.Response;

@Scope("prototype")
@Component
public class BulkUploadPacket extends BaseTestCaseUtil implements StepInterface {
public static Logger logger = Logger.getLogger(BulkUploadPacket.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,12 @@

import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import io.mosip.testrig.dslrig.ivv.core.base.StepInterface;
import io.mosip.testrig.dslrig.ivv.core.exceptions.RigInternalError;
import io.mosip.testrig.dslrig.ivv.orchestrator.BaseTestCaseUtil;
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;
import io.restassured.response.Response;

@Scope("prototype")
@Component
public class CancelAppointment extends BaseTestCaseUtil implements StepInterface {
public static Logger logger = Logger.getLogger(CheckStatus.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.json.JSONObject;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import io.mosip.testrig.apirig.testrunner.JsonPrecondtion;
import io.mosip.testrig.dslrig.ivv.core.base.StepInterface;
import io.mosip.testrig.dslrig.ivv.core.exceptions.RigInternalError;
Expand All @@ -20,8 +17,6 @@
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;
import io.restassured.response.Response;

@Scope("prototype")
@Component
public class CancelBooking extends BaseTestCaseUtil implements StepInterface {
public static Logger logger = Logger.getLogger(CancelBooking.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import io.mosip.testrig.apirig.testrunner.BaseTestCase;
import io.mosip.testrig.apirig.testscripts.PatchWithPathParam;
import io.mosip.testrig.apirig.testscripts.PutWithPathParam;
Expand All @@ -19,8 +16,6 @@
import io.mosip.testrig.dslrig.ivv.orchestrator.UserHelper;
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;

@Scope("prototype")
@Component
public class Center extends BaseTestCaseUtil implements StepInterface {
public static Logger logger = Logger.getLogger(Center.class);
UserHelper userHelper = new UserHelper();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.testng.Reporter;

import io.mosip.testrig.apirig.utils.AdminTestException;
import io.mosip.testrig.apirig.dto.TestCaseDTO;
import io.mosip.testrig.apirig.utils.AuthenticationTestException;
Expand All @@ -15,8 +12,6 @@
import io.mosip.testrig.dslrig.ivv.orchestrator.BaseTestCaseUtil;
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;

@Scope("prototype")
@Component
public class CheckCredentialStatus extends BaseTestCaseUtil implements StepInterface {
private static final String check_status_YML = "preReg/credentialStatus/credentialStatus.yml";
public static Logger logger = Logger.getLogger(CheckCredentialStatus.class);
Expand All @@ -31,7 +26,7 @@ public class CheckCredentialStatus extends BaseTestCaseUtil implements StepInter
@SuppressWarnings("static-access")
@Override
public void run() throws RigInternalError {
if (!step.getParameters().isEmpty() && step.getParameters().size() == 1) {
if (!step.getParameters().isEmpty() && step.getParameters().size() == 1) {
String _requestId = step.getParameters().get(0);
if (_requestId.startsWith("$$")) {
_requestId = step.getScenario().getVariables().get(_requestId);
Expand All @@ -50,8 +45,7 @@ public void run() throws RigInternalError {
for (Object object : testCaseList) {
for (String requestid : this.step.getScenario().getUinReqIds().values()) {
int counter = 0;
while (!credentialIssued
&& counter < Integer.parseInt(props.getProperty("loopCount"))) {
while (!credentialIssued && counter < Integer.parseInt(props.getProperty("loopCount"))) {
counter++;
try {
logger.info("Waiting for 30 sec to get credential Issued");
Expand All @@ -69,7 +63,8 @@ public void run() throws RigInternalError {
+ " MilliSec");

if (getWithPathParam.response.getBody().asString().toLowerCase().contains("printed")
|| getWithPathParam.response.getBody().asString().toLowerCase().contains("printing"))
|| getWithPathParam.response.getBody().asString().toLowerCase()
.contains("printing"))
credentialIssued = true;
} catch (AuthenticationTestException | AdminTestException e) {
logger.error("Failed at checking Credential status with error: " + e.getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import io.mosip.kernel.biometrics.commons.CbeffValidator;
import io.mosip.kernel.biometrics.entities.BIR;

import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import io.mosip.testrig.apirig.dto.TestCaseDTO;
Expand All @@ -25,8 +21,6 @@
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;
import io.restassured.response.Response;

@Scope("prototype")
@Component
public class CheckForBDBAbsence extends BaseTestCaseUtil implements StepInterface {
private static final Logger logger = Logger.getLogger(CheckForBDBAbsence.class);
private static final String CheckForBDB = "idaData/RetrieveBioDocumentByID/RetrieveBioDocumentByID.yml";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import io.mosip.kernel.biometrics.commons.CbeffValidator;
import io.mosip.kernel.biometrics.entities.BIR;

import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import io.mosip.testrig.apirig.dto.TestCaseDTO;
Expand All @@ -25,8 +21,6 @@
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;
import io.restassured.response.Response;

@Scope("prototype")
@Component
public class CheckForBDBPresence extends BaseTestCaseUtil implements StepInterface {
private static final Logger logger = Logger.getLogger(CheckForBDBPresence.class);
private static final String CheckForBDB = "idaData/RetrieveBioDocumentByID/RetrieveBioDocumentByID.yml";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@
import java.util.LinkedHashMap;
import java.util.List;
import java.util.stream.Collectors;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.testng.Reporter;
import io.mosip.testrig.apirig.dto.TestCaseDTO;
import io.mosip.testrig.apirig.testrunner.JsonPrecondtion;

import io.mosip.testrig.apirig.utils.AdminTestException;
import io.mosip.testrig.apirig.utils.AuthenticationTestException;
import io.mosip.testrig.apirig.testscripts.SimplePost;
Expand All @@ -25,8 +21,6 @@
import io.mosip.testrig.dslrig.ivv.orchestrator.BaseTestCaseUtil;
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;

@Scope("prototype")
@Component
public class CheckMultipleRidStatus extends BaseTestCaseUtil implements StepInterface {
private static final String check_status_YML = "preReg/checkStatus/checkstatus.yml";
public static Logger logger = Logger.getLogger(CheckMultipleRidStatus.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,16 @@

import java.util.Arrays;
import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import io.mosip.testrig.apirig.testrunner.BaseTestCase;
import io.mosip.testrig.dslrig.ivv.core.base.StepInterface;
import io.mosip.testrig.dslrig.ivv.core.exceptions.RigInternalError;
import io.mosip.testrig.dslrig.ivv.orchestrator.BaseTestCaseUtil;
import io.mosip.testrig.dslrig.ivv.orchestrator.dslConfigManager;
import io.restassured.response.Response;

@Scope("prototype")
@Component
public class CheckPridStatus extends BaseTestCaseUtil implements StepInterface {
public static Logger logger = Logger.getLogger(CheckStatus.class);

Expand Down
Loading

0 comments on commit 77bb3f4

Please sign in to comment.