Skip to content

Commit

Permalink
MOSIP-34827 - Added test cases for L2 flow api's
Browse files Browse the repository at this point in the history
Signed-off-by: Mohanachandran S <[email protected]>
  • Loading branch information
mohanachandran-s committed Aug 30, 2024
1 parent 4d5003b commit b79a768
Show file tree
Hide file tree
Showing 2 changed files with 613 additions and 613 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ public static void main(String[] arg) {
String updatedPartnerKeyURL = "";
String ekycPartnerKeyURL = "";

// if (BaseTestCase.listOfModules.contains("auth")
// || BaseTestCase.listOfModules.contains(GlobalConstants.ESIGNET)) {
// PartnerRegistration.deleteCertificates();
// CertificateGenerationUtil.getThumbprints();
// AdminTestUtil.createAndPublishPolicy();
// AdminTestUtil.createEditAndPublishPolicy();
// partnerKeyURL = PartnerRegistration.generateAndGetPartnerKeyUrl();
// updatedPartnerKeyURL = PartnerRegistration.generateAndGetUpdatedPartnerKeyUrl();
//
// AdminTestUtil.createAndPublishPolicyForKyc();
// ekycPartnerKeyURL = PartnerRegistration.generateAndGetEkycPartnerKeyUrl();
//
// }
if (BaseTestCase.listOfModules.contains("auth")
|| BaseTestCase.listOfModules.contains(GlobalConstants.ESIGNET)) {
PartnerRegistration.deleteCertificates();
CertificateGenerationUtil.getThumbprints();
AdminTestUtil.createAndPublishPolicy();
AdminTestUtil.createEditAndPublishPolicy();
partnerKeyURL = PartnerRegistration.generateAndGetPartnerKeyUrl();
updatedPartnerKeyURL = PartnerRegistration.generateAndGetUpdatedPartnerKeyUrl();

AdminTestUtil.createAndPublishPolicyForKyc();
ekycPartnerKeyURL = PartnerRegistration.generateAndGetEkycPartnerKeyUrl();

}

if (BaseTestCase.listOfModules.contains(GlobalConstants.MASTERDATA)) {
AdminTestUtil.getHierarchyZoneCode();
Expand All @@ -129,13 +129,13 @@ public static void main(String[] arg) {

}

// } else if (BaseTestCase.listOfModules.contains("auth")
// || BaseTestCase.listOfModules.contains(GlobalConstants.ESIGNET)) {
// if (partnerKeyURL.isEmpty())
// // if (partnerKeyURL.isEmpty() || ekycPartnerKeyURL.isEmpty())
// LOGGER.error("partnerKeyURL is null");
// else
// startTestRunner();
} else if (BaseTestCase.listOfModules.contains("auth")
|| BaseTestCase.listOfModules.contains(GlobalConstants.ESIGNET)) {
if (partnerKeyURL.isEmpty())
// if (partnerKeyURL.isEmpty() || ekycPartnerKeyURL.isEmpty())
LOGGER.error("partnerKeyURL is null");
else
startTestRunner();
} else {
startTestRunner();
}
Expand Down
Loading

0 comments on commit b79a768

Please sign in to comment.