Skip to content

Commit

Permalink
Merge pull request #528 from nandhu-kumar/develop
Browse files Browse the repository at this point in the history
MOSIP-37888 |
  • Loading branch information
Prafulrakhade authored Nov 28, 2024
2 parents a6ab6f6 + 17a6e21 commit 33dda09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad
if (MimotoConfigManager.isInServiceNotDeployedList("sunbirdrc"))
throw new SkipException(GlobalConstants.SERVICE_NOT_DEPLOYED_MESSAGE);

if (MimotoConfigManager.getEsignetMockBaseURL() != null
&& !MimotoConfigManager.getEsignetMockBaseURL().isBlank())
tempUrl = ApplnURI.replace("api-internal.", MimotoConfigManager.getEsignetMockBaseURL());
if (MimotoConfigManager.getproperty("esignetSunBirdBaseURL") != null
&& !MimotoConfigManager.getproperty("esignetSunBirdBaseURL").isBlank())
tempUrl = MimotoConfigManager.getproperty("esignetSunBirdBaseURL");
testCaseDTO.setEndPoint(testCaseDTO.getEndPoint().replace("$ESIGNETMOCKBASEURL$", ""));

response = postRequestWithCookieAuthHeaderAndXsrfToken(tempUrl + testCaseDTO.getEndPoint(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ public void test(TestCaseDTO testCaseDTO)
if (MimotoConfigManager.isInServiceNotDeployedList("sunbirdrc"))
throw new SkipException(GlobalConstants.SERVICE_NOT_DEPLOYED_MESSAGE);

if (MimotoConfigManager.getEsignetMockBaseURL() != null
&& !MimotoConfigManager.getEsignetMockBaseURL().isBlank())
tempUrl = ApplnURI.replace("api-internal.", MimotoConfigManager.getEsignetMockBaseURL());
if (MimotoConfigManager.getproperty("esignetSunBirdBaseURL") != null
&& !MimotoConfigManager.getproperty("esignetSunBirdBaseURL").isBlank())
tempUrl = MimotoConfigManager.getproperty("esignetSunBirdBaseURL");
testCaseDTO.setEndPoint(testCaseDTO.getEndPoint().replace("$ESIGNETMOCKBASEURL$", ""));
} else if (testCaseDTO.getEndPoint().startsWith("$SUNBIRDBASEURL$") && testCaseName.contains("SunBirdR")) {

Expand Down
3 changes: 2 additions & 1 deletion api-test/src/main/resources/config/mimoto.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ sunBirdBaseURL=https://registry.dev1.mosip.net
#sunBirdBaseURL=registry
mimoto-oidc-mosipid-partner-clientid=mimoto.oidc.mosipid.partner.clientid
mimoto-oidc-sunbird-partner-clientid=mimoto.oidc.sunbird.partner.clientid
mimoto-oidc-partner-clientid=mimoto.oidc.partner.clientid
mimoto-oidc-partner-clientid=mimoto.oidc.partner.clientid
esignetSunBirdBaseURL=

0 comments on commit 33dda09

Please sign in to comment.