Skip to content

Commit

Permalink
Merge pull request #747 from mohanachandran-s/release-1.3.x
Browse files Browse the repository at this point in the history
MOSIP-36093 - Updated the apitest commons version and pulled latest changes from develop
  • Loading branch information
ckm007 authored Oct 24, 2024
2 parents b5a6411 + c2957d5 commit 661f6cc
Show file tree
Hide file tree
Showing 53 changed files with 312 additions and 43 deletions.
4 changes: 2 additions & 2 deletions api-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@

<dependencies>
<dependency>
<groupId>io.mosip.testrig.apirig.apitest.commons</groupId>
<groupId>io.mosip.testrig.apitest.commons</groupId>
<artifactId>apitest-commons</artifactId>
<version>1.2.2-SNAPSHOT</version>
<version>1.3.0-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public static void main(String[] arg) {
SkipTestCaseHandler.loadTestcaseToBeSkippedList("testCaseSkippedList.txt");
setLogLevels();


// For now we are not doing health check for qa-115.
if (BaseTestCase.isTargetEnvLTS()) {
HealthChecker healthcheck = new HealthChecker();
Expand All @@ -87,10 +86,6 @@ public static void main(String[] arg) {
KeycloakUserManager.removeUser();
KeycloakUserManager.createUsers();
KeycloakUserManager.closeKeycloakInstance();

//List<String> localDocCatCode =new ArrayList<>(BaseTestCase.getDocCatCode());

// List<String> localDocCatCode =new ArrayList<>(BaseTestCase.getDocCatCode());

startTestRunner();
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.mosip.testrig.apirig.utils.AdminTestException;
import io.mosip.testrig.apirig.utils.AdminTestUtil;
import io.mosip.testrig.apirig.utils.AuthenticationTestException;
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.mosip.testrig.apirig.utils.AdminTestException;
import io.mosip.testrig.apirig.utils.AdminTestUtil;
import io.mosip.testrig.apirig.utils.AuthenticationTestException;
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.mosip.testrig.apirig.utils.AdminTestException;
import io.mosip.testrig.apirig.utils.AdminTestUtil;
import io.mosip.testrig.apirig.utils.AuthenticationTestException;
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import io.mosip.testrig.apirig.utils.AdminTestException;
import io.mosip.testrig.apirig.utils.AdminTestUtil;
import io.mosip.testrig.apirig.utils.AuthenticationTestException;
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import io.mosip.testrig.apirig.utils.AdminTestException;
import io.mosip.testrig.apirig.utils.AdminTestUtil;
import io.mosip.testrig.apirig.utils.AuthenticationTestException;
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import io.mosip.testrig.apirig.utils.AdminTestException;
import io.mosip.testrig.apirig.utils.AdminTestUtil;
import io.mosip.testrig.apirig.utils.AuthenticationTestException;
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@
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.testrunner.BaseTestCase;
import io.mosip.testrig.apirig.testrunner.HealthChecker;
import io.mosip.testrig.apirig.utils.AdminTestException;
import io.mosip.testrig.apirig.utils.AdminTestUtil;
import io.mosip.testrig.apirig.utils.AuthenticationTestException;
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.mosip.testrig.apirig.utils.AdminTestException;
import io.mosip.testrig.apirig.utils.AdminTestUtil;
import io.mosip.testrig.apirig.utils.AuthenticationTestException;
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.mosip.testrig.apirig.utils.AdminTestException;
import io.mosip.testrig.apirig.utils.AdminTestUtil;
import io.mosip.testrig.apirig.utils.AuthenticationTestException;
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import io.mosip.testrig.apirig.utils.AdminTestException;
import io.mosip.testrig.apirig.utils.AdminTestUtil;
import io.mosip.testrig.apirig.utils.AuthenticationTestException;
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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
AddLostUinApplication:
Prereg_AddLostUinApplication_All_Valid_Smoke_sid:
endPoint: /preregistration/v1/applications/lostuin
uniqueIdentifier: TC_prereg_AddLostUinApplication_01
description: process the lost UIN application with a valid ID
role: batch
templateFields: ["langCode"]
Expand All @@ -19,6 +20,7 @@ AddLostUinApplication:
}'
Prereg_AddLostUinApplication_Invalid_id:
endPoint: /preregistration/v1/applications/lostuin
uniqueIdentifier: TC_prereg_AddLostUinApplication_02
description: process the lost UIN application with an invalid ID
role: batch
templateFields: ["langCode"]
Expand All @@ -40,6 +42,7 @@ AddLostUinApplication:
}'
Prereg_AddLostUinApplication_invalid_lang_code:
endPoint: /preregistration/v1/applications/lostuin
uniqueIdentifier: TC_prereg_AddLostUinApplication_03
description: Process the lost UIN application with an invalid language code
role: batch
restMethod: post
Expand All @@ -60,6 +63,7 @@ AddLostUinApplication:
}'
Prereg_AddLostUinApplication_without_version:
endPoint: /preregistration/v1/applications/lostuin
uniqueIdentifier: TC_prereg_AddLostUinApplication_04
description: Process the lost UIN application without specifying the version
role: batch
templateFields: ["langCode"]
Expand All @@ -81,6 +85,7 @@ AddLostUinApplication:
}'
Prereg_AddLostUinApplication_without_version_attribute:
endPoint: /preregistration/v1/applications/lostuin
uniqueIdentifier: TC_prereg_AddLostUinApplication_05
description: Process the lost UIN application without specifying the version and attribute
role: batch
templateFields: ["langCode"]
Expand All @@ -102,6 +107,7 @@ AddLostUinApplication:
}'
Prereg_AddLostUinApplication_with_INVALID_version:
endPoint: /preregistration/v1/applications/lostuin
uniqueIdentifier: TC_prereg_AddLostUinApplication_06
description: Process the lost UIN application with an invalid version
role: batch
templateFields: ["langCode"]
Expand All @@ -123,6 +129,7 @@ AddLostUinApplication:
}'
Prereg_AddLostUinApplication_Valid_Smoke_sid:
endPoint: /preregistration/v1/applications/lostuin
uniqueIdentifier: TC_prereg_AddLostUinApplication_07
description: Process the lost UIN application with a valid data
role: batch
templateFields: ["langCode"]
Expand All @@ -142,6 +149,7 @@ AddLostUinApplication:

Prereg_AddLostUinApplication_inValid_langcode:
endPoint: /preregistration/v1/applications/lostuin
uniqueIdentifier: TC_prereg_AddLostUinApplication_08
description: Process the lost UIN application with an invalid language code
role: batch
restMethod: post
Expand All @@ -162,6 +170,7 @@ AddLostUinApplication:
}'
Prereg_AddLostUinApplication_without_any_data:
endPoint: /preregistration/v1/applications/lostuin
uniqueIdentifier: TC_prereg_AddLostUinApplication_09
description: Process the lost UIN application with no data provided
role: batch
restMethod: post
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
AddUpdateRegistration:
Prereg_AddUpdateRegistration_All_Valid_Smoke_sid:
endPoint: /preregistration/v1/applications/updateregistration
uniqueIdentifier: TC_prereg_AddUpdateRegistration_01
description: add an update to the registration with valid data
role: batch
templateFields: ["langCode"]
Expand All @@ -20,6 +21,7 @@ AddUpdateRegistration:

Prereg_AddUpdateRegistration_inValid_langcode:
endPoint: /preregistration/v1/applications/updateregistration
uniqueIdentifier: TC_prereg_AddUpdateRegistration_02
description: add an update to the registration with an invalid data
role: batch
restMethod: post
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CancelApplicationsAppointment:
Prereg_CancelApplicationsAppointment_All_Valid_Smoke_sid:
endPoint: /preregistration/v1/applications/appointment/{preRegistrationId}
uniqueIdentifier: TC_prereg_CancelAppointment_01
description: Canceling appointment for a valid preregistration ID
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -14,6 +15,7 @@ CancelApplicationsAppointment:
}'
Prereg_CancelApplicationsAppointment_inValid_preRegistrationId_sid:
endPoint: /preregistration/v1/applications/appointment/{preRegistrationId}
uniqueIdentifier: TC_prereg_CancelAppointment_02
description: Canceling appointment for an invalid preregistration ID
role: batch
restMethod: put
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CancelAppointment:
Prereg_CancelAppointment_All_Valid_Smoke_sid:
endPoint: /preregistration/v1/appointment/{preRegistrationId}
uniqueIdentifier: TC_prereg_CancelAppointment_01
description: Cancel appointment for a valid preregistration ID
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -14,6 +15,7 @@ CancelAppointment:
}'
Prereg_CancelAppointment_with_already_cancelled_appoinment:
endPoint: /preregistration/v1/appointment/{preRegistrationId}
uniqueIdentifier: TC_prereg_CancelAppointment_02
description: Canceling an appointment that has already been cancelled
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -32,6 +34,7 @@ CancelAppointment:
}'
Prereg_CancelAppointment_cancell_incomplete_appoinment:
endPoint: /preregistration/v1/appointment/{preRegistrationId}
uniqueIdentifier: TC_prereg_CancelAppointment_03
description: Canceling an appointment with an incomplete appointment data
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -50,6 +53,7 @@ CancelAppointment:
}'
Prereg_CancelAppointment_inValid_preRegistrationId_sid:
endPoint: /preregistration/v1/appointment/{preRegistrationId}
uniqueIdentifier: TC_prereg_CancelAppointment_04
description: Canceling an appointment with an invalid preregistration ID
role: batch
restMethod: put
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CopyDocument:
Prereg_CopyDocument_All_Valid_Smoke_sid:
endPoint: /preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId}
uniqueIdentifier: TC_prereg_CopyDocument_01
description: Copy the valid Proof of Address (POA) document
role: batch
restMethod: put
Expand All @@ -16,6 +17,7 @@ CopyDocument:
}'
Prereg_CopyDocument_in_Valid_doc_cat_code_sid:
endPoint: /preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId}
uniqueIdentifier: TC_prereg_CopyDocument_02
description: Copy the Proof of Address (POA) document with the invalid document category code
role: batch
restMethod: put
Expand All @@ -34,6 +36,7 @@ CopyDocument:
}'
Prereg_CopyDocument_blank_doc_cat_code_sid:
endPoint: /preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId}
uniqueIdentifier: TC_prereg_CopyDocument_03
description: Copy the blank document and categorize it with the code
role: batch
restMethod: put
Expand All @@ -52,6 +55,7 @@ CopyDocument:
}'
Prereg_CopyDocument_Invalid_preRegistrationId_sid:
endPoint: /preregistration/v1/documents/{preRegistrationId}?catCode={doc_cat_code}&sourcePreId={preRegistrationId}
uniqueIdentifier: TC_prereg_CopyDocument_04
description: Copy the Proof of Address (POA) document with the invalid preregistration ID
role: batch
restMethod: put
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DeleteAllDocForaPRID:
Prereg_DeletePreRegistration_All_Valid_Smoke_sid:
endPoint: /preregistration/v1/documents/preregistration/{preRegistrationId}
uniqueIdentifier: TC_prereg_DeleteAllDocForaPRID_01
description: Delete preregistration with all valid preregistration ID
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -14,6 +15,7 @@ DeleteAllDocForaPRID:
}'
Prereg_DeletePreRegistration_InValid_preRegistrationId_sid:
endPoint: /preregistration/v1/documents/preregistration/{preRegistrationId}
uniqueIdentifier: TC_prereg_DeleteAllDocForaPRID_02
description: Delete preregistration with an invalid preregisteration ID
role: batch
restMethod: delete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DeleteBooking:
Prereg_DeleteBooking_All_Valid_Smoke_sid:
endPoint: /preregistration/v1/applications/appointment?preRegistrationId={preRegistrationId}
uniqueIdentifier: TC_prereg_DeleteBooking_01
description: Delete bookings for all valid preregistration ID
role: batch
restMethod: delete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DeleteLostUinApplication:
Prereg_DeleteLostUinApplication_All_Valid_Smoke_sid:
endPoint: /preregistration/v1/applications/prereg/{applicationId}
uniqueIdentifier: TC_prereg_DeleteLostUinApplication_01
description: Delete the lost UIN application with valid data
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -15,6 +16,7 @@ DeleteLostUinApplication:
}'
Prereg_DeleteLostUinApplication_after_its_deletion:
endPoint: /preregistration/v1/applications/prereg/{applicationId}
uniqueIdentifier: TC_prereg_DeleteLostUinApplication_02
description: Delete the lost UIN application after it has been removed
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -33,6 +35,7 @@ DeleteLostUinApplication:
}'
Prereg_DeleteLostUinApplication_multiple_application_sid:
endPoint: /preregistration/v1/applications/prereg/{applicationId}
uniqueIdentifier: TC_prereg_DeleteLostUinApplication_03
description: Delete the lost UIN application with multiple preregistration IDs for the application
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -47,6 +50,7 @@ DeleteLostUinApplication:
}'
Prereg_DeleteLostUinApplication_inValid_preRegistrationId_sid:
endPoint: /preregistration/v1/applications/prereg/{applicationId}
uniqueIdentifier: TC_prereg_DeleteLostUinApplication_04
description: Delete the lost UIN application with an invalid preregistration ID
role: batch
restMethod: delete
Expand All @@ -64,6 +68,7 @@ DeleteLostUinApplication:
}'
Prereg_DeleteLostUinApplication_random_number_sid:
endPoint: /preregistration/v1/applications/prereg/{applicationId}
uniqueIdentifier: TC_prereg_DeleteLostUinApplication_05
description: Delete the lost UIN application with a random number preregistration ID
role: batch
restMethod: delete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DeletePreRegistration:
Prereg_DeletePreRegistration_All_Valid_Smoke_sid:
endPoint: /preregistration/v1/applications/prereg/{preRegistrationId}
uniqueIdentifier: TC_prereg_DeletePreRegistration_01
description: Delete the preregistration with a valid preregistration ID
role: batch
restMethod: delete
Expand All @@ -14,6 +15,7 @@ DeletePreRegistration:
}'
Prereg_DeletePreRegistration_inValid_preRegistrationId_sid:
endPoint: /preregistration/v1/applications/prereg/{preRegistrationId}
uniqueIdentifier: TC_prereg_DeletePreRegistration_02
description: Delete the preregistration with an invalid preregistration ID
role: batch
restMethod: delete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DeleteSpecificDocForaPRID:
Prereg_DeleteSpecificDocForaPRID_All_Valid_Smoke_sid:
endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId}
uniqueIdentifier: TC_prereg_DeleteSpecificDocForaPRID_01
description: Delete specific document for a valid PRID
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -16,6 +17,7 @@ DeleteSpecificDocForaPRID:
}'
Prereg_DeletePreRegistration_inValid_preRegistrationId_sid:
endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId}
uniqueIdentifier: TC_prereg_DeleteSpecificDocForaPRID_02
description: Delete preregistration with an invalid PRID
role: batch
restMethod: post
Expand All @@ -34,6 +36,7 @@ DeleteSpecificDocForaPRID:
}'
Prereg_DeletePreRegistration_inValid_documentId_sid:
endPoint: /preregistration/v1/documents/{documentId}?preRegistrationId={preRegistrationId}
uniqueIdentifier: TC_prereg_DeleteSpecificDocForaPRID_03
description: Delete preregistration with an invalid document ID
role: batch
restMethod: post
Expand Down
Loading

0 comments on commit 661f6cc

Please sign in to comment.