Skip to content

Commit

Permalink
INJIWEB-940 - Splitted testcases for downloading sunbird VC
Browse files Browse the repository at this point in the history
Signed-off-by: Mohanachandran S <[email protected]>
  • Loading branch information
mohanachandran-s committed Oct 9, 2024
1 parent 676eed1 commit a69a893
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,4 @@ DownloadIssuerCredential:
"errorCode":"RESIDENT-APP-035"
}
]
}'
Mimoto_DownloadIssuerCredential_IssuerSunBird_All_Valid_Smoke:
endPoint: /v1/mimoto/credentials/download
role: resident
restMethod: get
checkErrorsOnlyInResponse: true
inputTemplate: mimoto/DownloadIssuerCredential/DownloadIssuerCredential
outputTemplate: mimoto/DownloadIssuerCredential/DownloadIssuerCredentialResult
input: '{
"grant_type": "authorization_code",
"code": "$ID:ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid_code$",
"redirect_uri": "$INJIREDIRECTURI$",
"code_verifier": "$CODEVERIFIER$",
"issuer": "Sunbird",
"credential": "InsuranceCredential"
}'
output: '{
}'
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
DownloadSunbirdCredential:
Mimoto_DownloadSunbirdCredential_All_Valid_Smoke:
endPoint: /v1/mimoto/credentials/download
role: resident
restMethod: get
checkErrorsOnlyInResponse: true
inputTemplate: mimoto/DownloadIssuerCredential/DownloadIssuerCredential
outputTemplate: mimoto/DownloadIssuerCredential/DownloadIssuerCredentialResult
input: '{
"grant_type": "authorization_code",
"code": "$ID:ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid_code$",
"redirect_uri": "$INJIREDIRECTURI$",
"code_verifier": "$CODEVERIFIER$",
"issuer": "Sunbird",
"credential": "InsuranceCredential"
}'
output: '{
}'
11 changes: 9 additions & 2 deletions api-test/testNgXmlFiles/mimotoApi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>
<test name="DownloadIssuerCredential">
<parameter name="ymlFile"
value="mimoto/DownloadIssuerCredential/DownloadIssuerCredential.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.PostWithFormDataBodyForPdfDownload" />
</classes>
</test>
<test name="OAuthDetailsRequestSunBirdC">
<parameter name="ymlFile"
value="mimoto/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.yml" />
Expand All @@ -100,9 +107,9 @@
<class name="io.mosip.testrig.apirig.testscripts.SimplePostForAutoGenId" />
</classes>
</test>
<test name="DownloadIssuerCredential">
<test name="DownloadSunbirdCredential">
<parameter name="ymlFile"
value="mimoto/DownloadIssuerCredential/DownloadIssuerCredential.yml" />
value="mimoto/DownloadIssuerCredential/DownloadSunbirdCredential.yml" />
<classes>
<class name="io.mosip.testrig.apirig.testscripts.PostWithFormDataBodyForPdfDownload" />
</classes>
Expand Down

0 comments on commit a69a893

Please sign in to comment.