Skip to content

Commit 824e5bd

Browse files
committed
Switch to the new configuration.
1 parent c8a06b1 commit 824e5bd

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

server/src/main/java/com/objectcomputing/checkins/notifications/social_media/SlackSearch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public String findUserId(String userEmail) {
8080
}
8181

8282
public String findUserEmail(String userId) {
83-
String token = configuration.getApplication().getNotifications().getSlack().getBotToken();
83+
String token = configuration.getApplication().getSlack().getBotToken();
8484
if (token != null) {
8585
try {
8686
MethodsClient client = Slack.getInstance().methods(token);

server/src/test/java/com/objectcomputing/checkins/services/pulseresponse/PulseResponseControllerTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,6 @@ void testCreateAPulseResponseFromSlack() {
556556
private String slackSignature(String timestamp, String rawBody) {
557557
String baseString = "v0:" + timestamp + ":" + rawBody;
558558
String secret = configuration.getApplication()
559-
.getPulseResponse()
560559
.getSlack().getSigningSecret();
561560

562561
try {

server/src/test/resources/application-test.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,10 @@ check-ins:
4141
application:
4242
google-api:
4343
delegated-user: [email protected]
44-
notifications:
45-
slack:
46-
webhook-url: https://bogus.objectcomputing.com/slack
47-
bot-token: BOGUS_TOKEN
48-
pulse-response:
49-
slack:
50-
signing-secret: BOGUS_SIGNING_SECRET
51-
bot-token: BOGUS_TOKEN
44+
slack:
45+
webhook-url: https://bogus.objectcomputing.com/slack
46+
bot-token: BOGUS_TOKEN
47+
signing-secret: BOGUS_SIGNING_SECRET
5248
---
5349
aes:
5450
key: BOGUS_TEST_KEY

0 commit comments

Comments
 (0)