Skip to content

Commit 8183ad5

Browse files
committed
Run all the integration tests - 2024-02-23 PT
1 parent fa28452 commit 8183ad5

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

json-logs/raw/audit/v1/actions.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@
328328
"private_message_forwarded",
329329
"message_activity_viewed",
330330
"message_flag_dismissed",
331-
"sales_home_notification_forwarded"
331+
"sales_home_notification_forwarded",
332+
"record_shared"
332333
],
333334
"barrier": [
334335
"barrier_created",
@@ -340,7 +341,9 @@
340341
"huddle_started",
341342
"huddle_participant_joined",
342343
"huddle_participant_left",
343-
"huddle_participant_dropped"
344+
"huddle_participant_dropped",
345+
"huddle_screenshare_on",
346+
"huddle_screenshare_off"
344347
],
345348
"anomaly": [
346349
"anomaly"

slack-api-client/src/main/java/com/slack/api/audit/Actions.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@ private Message() {
350350
public static final String permissions_removed = "permissions_removed";
351351
public static final String private_message_forwarded = "private_message_forwarded";
352352
public static final String message_activity_viewed = "message_activity_viewed";
353+
public static final String message_flag_dismissed = "message_flag_dismissed";
354+
public static final String sales_home_notification_forwarded = "sales_home_notification_forwarded";
355+
public static final String record_shared = "record_shared";
353356
}
354357

355358
public static class WorkflowBuilder {
@@ -394,6 +397,8 @@ private Huddle() {
394397
public static final String huddle_participant_joined = "huddle_participant_joined";
395398
public static final String huddle_participant_left = "huddle_participant_left";
396399
public static final String huddle_participant_dropped = "huddle_participant_dropped";
400+
public static final String huddle_screenshare_on = "huddle_screenshare_on";
401+
public static final String huddle_screenshare_off = "huddle_screenshare_off";
397402
}
398403

399404
public static class Anomaly {

slack-api-client/src/test/java/test_with_remote_apis/audit/ApiTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ public void getActions_detectingNewOnes() throws IOException, AuditApiException
209209
fail("Unknown action detected - " + action);
210210
}
211211
}
212+
List<String> messageNames = getAllPublicStaticFieldValues(Actions.Message.class);
213+
for (String action : actions.getMessage()) {
214+
if (!messageNames.contains(action)) {
215+
fail("Unknown action detected - " + action);
216+
}
217+
}
212218
List<String> huddleNames = getAllPublicStaticFieldValues(Actions.Huddle.class);
213219
for (String action : actions.getHuddle()) {
214220
if (!huddleNames.contains(action)) {

0 commit comments

Comments
 (0)