Skip to content

Commit

Permalink
MOSIP-33845
Browse files Browse the repository at this point in the history
Signed-off-by: Nandhukumar <[email protected]>
  • Loading branch information
nandhu-kumar committed Jul 18, 2024
1 parent 93cf489 commit e0762ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,16 @@ 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();
PartnerRegistration.deleteCertificates();
CertificateGenerationUtil.getThumbprints();
AdminTestUtil.createAndPublishPolicy();
AdminTestUtil.createEditAndPublishPolicy();
partnerKeyURL = PartnerRegistration.generateAndGetPartnerKeyUrl();
updatedPartnerKeyURL = PartnerRegistration.generateAndGetUpdatedPartnerKeyUrl();

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

}

BiometricDataProvider.generateBiometricTestData("Registration");

if (BaseTestCase.listOfModules.contains(GlobalConstants.MASTERDATA)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,6 @@ public void test(TestCaseDTO testCaseDTO)
throw new AdminTestException("Failed at output validation");
}
} else {
if (testCaseName.contains("partnerDemoDown")) {

url = ConfigManager.getAuthDemoServiceUrl() + "local";
} else {
url = ConfigManager.getAuthDemoServiceUrl();
}

response = postWithBodyAndCookie(url + testCaseDTO.getEndPoint(), inputJson, COOKIENAME,
testCaseDTO.getRole(), testCaseDTO.getTestCaseName());
Expand Down
8 changes: 1 addition & 7 deletions apitest/src/main/resources/config/Kernel.properties
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ useExternalScenarioSheet=yes
threadCount=1

#------------------------ Generic properties ------------------------#
enableDebug=no
enableDebug=yes
preconfiguredOtp=111111
usePreConfiguredOtp=true
# supported values yes or no. Assume that by Default e-signet is deployed
Expand Down Expand Up @@ -270,13 +270,7 @@ langselect=0


#----------------------------------AuthDemoService Host properties----------------------------------------------------------#
#Uncommemnt the below to run locally
#authDemoServiceBaseURL=http://localhost
#authDemoServicePort=8082
#authCertsPath=
#Uncommemnt the below to run in Docker
authDemoServiceBaseURL=http://authdemo.apitestrig
authDemoServicePort=80
authCertsPath=/home/mosip/authcerts


Expand Down

0 comments on commit e0762ec

Please sign in to comment.