Skip to content

Commit

Permalink
DSD-5071
Browse files Browse the repository at this point in the history
Signed-off-by: Sohan Kumar Dey <[email protected]>
  • Loading branch information
Sohandey committed May 7, 2024
1 parent 686940f commit a3108b0
Show file tree
Hide file tree
Showing 10 changed files with 5,277 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apitest-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.mosip.testrig.apirig.automationtests.commons</groupId>
<groupId>io.mosip.testrig.apirig.apitest.commons</groupId>
<artifactId>apitest-commons</artifactId>
<packaging>jar</packaging>
<name>apitest-commons</name>
Expand Down
174 changes: 174 additions & 0 deletions apitest-commons/testNgXmlFiles/IdrepositoryApi.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">

<suite name="Idrepository Suite">
<!-- Passing Group as parmeter unsing "testType" Possible Groups are: smoke
regression smokeAndRegression -->
<listeners>
<listener class-name="io.mosip.testrig.apirig.report.CustomTestNGReporter" />
<listener
class-name="io.mosip.testrig.apirig.authentication.fw.util.AuthenticationTestsListener" />
<listener class-name="io.mosip.testrig.apirig.authentication.e2e.E2EReport" />
<listener class-name="io.mosip.testrig.apirig.customReport.EmailableReport" />
</listeners>



<test name="AddIdentity">
<parameter name="ymlFile"
value="idRepository/AddIdentity/AddIdentity.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.AddIdentity" />
</classes>
</test>
<test name="CreateVID">
<parameter name="ymlFile" value="idRepository/CreateVID/CreateVid.yml" />
<parameter name="idKeyName" value="VID" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>
<!-- <test name="GetUpdateCount">
<parameter name="ymlFile"
value="idRepository/GetUpdateCount/GetUpdateCount.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParam" />
</classes>
</test> -->
<test name="RetrieveIdentityByRid">
<parameter name="ymlFile" value="idRepository/RetrieveIdentityByRid/RetrieveIdentityByRid.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParam" />
</classes>
</test>

<test name="UpdateIdentity">
<parameter name="ymlFile"
value="idRepository/UpdateIdentity/UpdateIdentity.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.UpdateIdentity" />
</classes>
</test>

<test name="RetrieveVIDByUIN">
<parameter name="ymlFile" value="idRepository/RetrieveVIDByUIN/RetrieveVIDByUIN.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParam" />
</classes>
</test>


<test name="UpdateVIDStatus">
<parameter name="ymlFile"
value="idRepository/UpdateVIDStatus/UpdateVidStatus.yml" />
<parameter name="pathParams" value="VID" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.PatchWithPathParamsAndBody" />
</classes>
</test>
<test name="DeactivateVIDs">
<parameter name="ymlFile" value="idRepository/DeactivateVid/DeactivateVid.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>

<test name="RetrieveIdentityByUin">
<parameter name="ymlFile" value="idRepository/RetrieveIdentityByUin/RetrieveIdentityByUin.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParam" />
</classes>
</test>
<test name="RetrieveUINByVID">
<parameter name="ymlFile" value="idRepository/RetrieveUINByVID/RetrieveUINByVID.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParam" />
</classes>
</test>
<test name="ReactivateVIDs">
<parameter name="ymlFile" value="idRepository/ReactivateVIDsForUIN/ReactivateVIDsForUIN.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>
<test name="RegenerateVid">
<parameter name="ymlFile" value="idRepository/RegenerateVid/RegenerateVid.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.PostWithOnlyPathParam" />
</classes>
</test>

<test name="CreateDraft">
<parameter name="ymlFile" value="idRepository/CreateDraft/CreateDraft.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.PostWithOnlyPathParam" />
</classes>
</test>

<test name="GetDraft">
<parameter name="ymlFile" value="idRepository/GetDraft/GetDraft.yml" />
<parameter name="idKeyName" value="UIN" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParamForAutoGenId" />
</classes>
</test>

<test name="CreateDraftVID">
<parameter name="ymlFile" value="idRepository/CreateDraftVID/CreateDraftVID.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>


<test name="UpdateDraft">
<parameter name="ymlFile" value="idRepository/UpdateDraft/UpdateDraft.yml" />
<parameter name="pathParams" value="registrationId" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.UpdateDraft" />
</classes>
</test>

<test name="PublishDraft">
<parameter name="ymlFile" value="idRepository/PublishDraft/PublishDraft.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParam" />
</classes>
</test>

<test name="ExtractBiometrics">
<parameter name="ymlFile" value="idRepository/ExtractBiometrics/ExtractBiometrics.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.PutWithPathParam" />
</classes>
</test>

<test name="DeleteDraft">
<parameter name="ymlFile" value="idRepository/DeleteDraft/DeleteDraft.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.DeleteWithParam" />
</classes>
</test>

<test name="AuthInternalLock">
<parameter name="ymlFile" value="idRepository/AuthInternalLock/AuthInternalLock.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePost" />
</classes>
</test>

<test name="RetrieveAuthTypeStatus">
<parameter name="ymlFile" value="idRepository/RetrieveAuthTypeStatus/RetrieveAuthTypeStatus.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParam" />
</classes>
</test>

<test name="AuthInternalUnlock">
<parameter name="ymlFile" value="idRepository/AuthInternalUnlock/AuthInternalUnlock.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePost" />
</classes>
</test>

</suite>
134 changes: 134 additions & 0 deletions apitest-commons/testNgXmlFiles/Prerequisite.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">

<suite name="Prerequisite Suite">
<!-- Passing Group as parmeter unsing "testType" Possible Groups are: smoke
regression smokeAndRegression -->
<listeners>
<listener class-name="io.mosip.testrig.apirig.report.CustomTestNGReporter" />
<listener
class-name="io.mosip.testrig.apirig.authentication.fw.util.AuthenticationTestsListener" />
<listener class-name="io.mosip.testrig.apirig.authentication.e2e.E2EReport" />
<listener class-name="io.mosip.testrig.apirig.customReport.EmailableReport" />
</listeners>


<!-- <test name="CreateMachine">
<parameter name="ymlFile"
value="prerequisite/Machine/CreateMachine.yml" />
<parameter name="idKeyName" value="id" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>
<test name="CreateIdSchema">
<parameter name="ymlFile"
value="prerequisite/IdSchema/CreateIdSchema.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePost" />
</classes>
</test>
<test name="UpdateIdSchema">
<parameter name="ymlFile"
value="prerequisite/UpdateIdSchema/UpdateIdSchema.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePut" />
</classes>
</test>
<test name="CreateZoneUser">
<parameter name="ymlFile"
value="prerequisite/ZoneUser/CreateZoneUser.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePost" />
</classes>
</test>
<test name="UpdateZoneUserStatus">
<parameter name="ymlFile"
value="prerequisite/UpdateZoneUserStatus/UpdateZoneUserStatus.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.PatchWithPathParam" />
</classes>
</test>
<test name="UserCenterMapping">
<parameter name="ymlFile"
value="prerequisite/UserCenterMapping/UserCenterMapping.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePost" />
</classes>
</test>
<test name="UpdateUserCenterMappingStatus">
<parameter name="ymlFile"
value="prerequisite/UpdateUserCenterMappingStatus/UpdateUserCenterMappingStatus.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.PatchWithPathParam" />
</classes>
</test> -->

<!-- <test name="AddUser">
<parameter name="ymlFile"
value="prerequisite/KeyCloak/AddUser/AddUser.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForKeyCloak" />
</classes>
</test>
<test name="DeleteUser">
<parameter name="ymlFile"
value="prerequisite/KeyCloak/DeleteUser/DeleteUser.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.DeleteWithParamForKeyCloak" />
</classes>
</test>
<test name="GetRoleIdForAllRoles">
<parameter name="ymlFile"
value="prerequisite/KeyCloak/GetRoleIdForAllRoles/GetRoleIdForAllRoles.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParamForAutoGenIdForKeyCloak" />
</classes>
</test>-->


<test name="AddUser">
<parameter name="ymlFile"
value="prerequisite/KeyCloak/AddUser/AddUser.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForKeyCloak" />
</classes>
</test>
<test name="GetUserDetails">
<parameter name="ymlFile"
value="prerequisite/KeyCloak/GetUserDetails/GetUserDetails.yml" />
<parameter name="idKeyName" value="id" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParamForAutoGenIdForKeyCloak" />
</classes>
</test>

<test name="GetRoleIdForAllRoles">
<parameter name="ymlFile"
value="prerequisite/KeyCloak/GetRoleIdForAllRoles/GetRoleIdForAllRoles.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParamForAutoGenIdForKeyCloak" />
</classes>
</test>

<test name="MapRolesToUser">
<parameter name="ymlFile"
value="prerequisite/KeyCloak/MapRolesToUser/MapRolesToUser.yml" />
<parameter name="pathParams" value="username" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForKeyCloak" />
</classes>
</test>

<test name="DeleteUser">
<parameter name="ymlFile"
value="prerequisite/KeyCloak/DeleteUser/DeleteUser.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.DeleteWithParamForKeyCloak" />
</classes>
</test>


</suite>
Loading

0 comments on commit a3108b0

Please sign in to comment.