Skip to content

Commit

Permalink
MOSIP-36505
Browse files Browse the repository at this point in the history
Signed-off-by: Nandhukumar <[email protected]>
  • Loading branch information
nandhu-kumar committed Oct 22, 2024
1 parent 5a1eafe commit f7b6daf
Show file tree
Hide file tree
Showing 2 changed files with 320 additions and 0 deletions.
126 changes: 126 additions & 0 deletions api-test/testNgXmlFiles/authPrerequisiteSuite.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">

<suite name="Authentication Prerequisite Test Suite">
<!-- Passing Group as parmeter unsing "testType" Possible Groups are: smoke
regression smokeAndRegression -->
<listeners>
<listener class-name="io.mosip.testrig.apirig.report.EmailableReport"/>
</listeners>

<test name="AddIdentity">
<parameter name="ymlFile"
value="ida/AddIdentity/AddIdentity.yml" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.AddIdentity" />
</classes>
</test>
<test name="CreateVID">
<parameter name="ymlFile" value="ida/CreateVID/CreateVid.yml" />
<parameter name="idKeyName" value="VID" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>

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


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

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

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


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

<test name="PublishDraft">
<parameter name="ymlFile" value="ida/PublishDraft/PublishDraft.yml" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.GetWithParam" />
</classes>
</test>
<test name="GenerateVID">
<parameter name="ymlFile"
value="ida/GenerateVID/createGenerateVID.yml" />
<parameter name="idKeyName" value="vid" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class
name="io.mosip.testrig.apirig.testscripts.PostWithAutogenIdWithOtpGenerate" />
</classes>
</test>

<test name="DeactivateVIDs">
<parameter name="ymlFile" value="ida/DeactivateUin/DeactivateUin.yml" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>

<test name="RevokeVID">
<parameter name="ymlFile"
value="ida/RevokeVID/createRevokeVID.yml" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.PatchWithBodyWithOtpGenerate" />
</classes>
</test>

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

<test name="AuthLock">
<parameter name="ymlFile"
value="ida/AuthLock/createAuthLock.yml" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.PostWithBodyWithOtpGenerate" />
</classes>
</test>

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

<suite name="AuthenticationTest Suite">
<!-- Passing Group as parmeter unsing "testType" Possible Groups are: smoke
regression smokeAndRegression -->
<listeners>
<listener class-name="io.mosip.testrig.apirig.report.EmailableReport"/>
</listeners>

<test name="BioAuth">
<parameter name="ymlFile" value="ida/BioAuth/BioAuth2.yml" />
<parameter name="isInternal" value="false" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.BioAuth" />
</classes>
</test>

<test name="EkycBio">
<parameter name="ymlFile" value="ida/EkycBio/EkycBio2.yml" />
<parameter name="isInternal" value="false" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.BioAuth" />
</classes>
</test>
<test name="OtpAuth">
<parameter name="ymlFile" value="ida/OtpAuth/OtpAuth2.yml" />
<parameter name="isInternal" value="false" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.OtpAuthNew" />
</classes>
</test>
<test name="EkycOtp">
<parameter name="ymlFile" value="ida/EkycOtp/EkycOtp2.yml" />
<parameter name="isInternal" value="false" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.OtpAuthNew" />
</classes>
</test>
<test name="MultiFactorAuth">
<parameter name="ymlFile"
value="ida/MultiFactorAuth/MultiFactorAuth2.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.MultiFactorAuthNew" />
</classes>
</test>

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


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

<test name="BlockHotlist">
<parameter name="ymlFile"
value="ida/BlockHotlistAPI/BlockHotlistAPI.yml" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>





<test name="LockUINVIDTestcasesDEMOAuth">
<parameter name="ymlFile"
value="ida/HotlistTestcases/HotlistTestcases.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.DemoAuth" />
</classes>
</test>

<test name="LockUINVIDTestcasesEKYCDEMO">
<parameter name="ymlFile"
value="ida/HotlistTestcases/HotlistTestcasesKyc.yml" />
<parameter name="isInternal" value="false" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.DemoAuth" />
</classes>
</test>



<test name="LockUINVIDTestcasesAUTHEKYCBIO">
<parameter name="ymlFile"
value="ida/BioAuthHotListLock/BioAuth.yml" />
<parameter name="isInternal" value="false" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.BioAuth" />
</classes>
</test>


<test name="AuthUnLock">
<parameter name="ymlFile"
value="ida/AuthUnLock/createAuthUnLock.yml" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.PostWithBodyWithOtpGenerate" />
</classes>
</test>

<test name="UnBlockHotlist">
<parameter name="ymlFile"
value="ida/UnBlockHotlistAPI/UnBlockHotlistAPI.yml" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>

<test name="DemoAuth">
<parameter name="ymlFile" value="ida/DemoAuth/DemoAuth2.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.DemoAuth" />
</classes>
</test>
<test name="EkycDemo">
<parameter name="ymlFile" value="ida/EkycDemo/EkycDemo2.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.DemoAuth" />
</classes>
</test>

<test name="BlockPartnerId">
<parameter name="ymlFile"
value="ida/BlockHotlistAPI/BlockPartnerId.yml" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>


<test name="HotlistTestcasesPartnerId">
<parameter name="ymlFile"
value="ida/HotlistTestcases/HotlistTestcasesPartnerId.yml" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.DemoAuth" />
</classes>
</test>
<test name="BioAuthHotListPartner">
<parameter name="ymlFile"
value="ida/BioAuthHotListPartner/BioAuth.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.BioAuth" />
</classes>
</test>



<test name="HotlistTestcasesOtpAuth">
<parameter name="ymlFile" value="ida/OtpAuth/OtpAuthHotlisted.yml" />
<parameter name="isInternal" value="false" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.OtpAuthNew" />
</classes>
</test>

<test name="UnBlockPartnerId">
<parameter name="ymlFile"
value="ida/UnBlockHotlistAPI/UnBlockHotlistAPIForPartnerId.yml" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>

<test name="HotlistTestcasesOtpAuthWithUnblockedPartner">
<parameter name="ymlFile" value="ida/OtpAuth/OtpAuthHotlistedUnblocked.yml" />
<parameter name="isInternal" value="false" />
<parameter name="prerequisite" value="Yes" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.OtpAuthNew" />
</classes>
</test>


</suite>

0 comments on commit f7b6daf

Please sign in to comment.