Skip to content

Commit

Permalink
MOSIP-31557
Browse files Browse the repository at this point in the history
Signed-off-by: Sohan Kumar Dey <[email protected]>
  • Loading branch information
Sohandey committed Feb 19, 2024
1 parent 7038423 commit 23e327c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ public class ConfigManager {
private static String IAM_REALM_ID = "keycloak-realm-id";
private static String IAM_USERS_TO_CREATE = "iam-users-to-create";
private static String IAM_USERS_PASSWORD = "iam-users-password";

private static String SLACK_WEBHOOK_URL = "slack-webhook-url";

private static String USE_EXTERNAL_SCENARIO_SHEET = "useExternalScenarioSheet";
private static String useExternalScenario_sheet;
Expand Down Expand Up @@ -230,6 +232,8 @@ public class ConfigManager {

private static String iamExternalURL;
private static String iamRealmID;
private static String getSlackWebHookUrl;

private static String iamUsersToCreate;
private static String iamUsersPassword;
private static String authDemoServicePort;
Expand Down Expand Up @@ -326,6 +330,7 @@ public static void init() {
LOGGER.info("keycloakendpoint from config manager::" + iamExternalURL);

iamRealmID = getValueForKey(IAM_REALM_ID);
getSlackWebHookUrl = getValueForKey(SLACK_WEBHOOK_URL);
iamUsersToCreate = getValueForKey(IAM_USERS_TO_CREATE);
iamUsersPassword = getValueForKey(IAM_USERS_PASSWORD);

Expand Down Expand Up @@ -851,6 +856,10 @@ public static String getIAMUsersToCreate() {
public static String getIAMUsersPassword() {
return iamUsersPassword;
}

public static String getSlackWebHookUrl() {
return getSlackWebHookUrl;
}

public static String getRolesForUser(String userId) {
propsKernel = getproperty(MosipTestRunner.getGlobalResourcePath() + "/" + "config/Kernel.properties");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

import io.mosip.testrig.apirig.service.BaseTestCase;
public class SlackChannelIntegration extends BaseTestCase {
private static final String SLACK_WEBHOOK_URL =propsKernel.getProperty("slackWebHookUrl");
private static final String SLACK_WEBHOOK_URL =ConfigManager.getSlackWebHookUrl();


/*
* public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,4 +281,4 @@ partnerUrlSuffix=oYf63Lax0DY2QkYMRHnrmDqhmO3RMWQagwm0ftgLlkuin1KOND/666/576732
reportIgnoredTestCases=no
servicesNotDeployed=
esignetMockBaseURL=esignet-insurance.
slackWebHookUrl=https://hooks.slack.com/services/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
slack-webhook-url=

0 comments on commit 23e327c

Please sign in to comment.