Skip to content

Commit 18c6174

Browse files
committed
Run all the integration tests - 2022-08-29 PT
1 parent 93c55a3 commit 18c6174

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,11 @@
289289
"barrier_deleted"
290290
],
291291
"huddle": [
292-
"huddle_ended"
292+
"huddle_ended",
293+
"huddle_started",
294+
"huddle_participant_joined",
295+
"huddle_participant_left",
296+
"huddle_participant_dropped"
293297
],
294298
"anomaly": [
295299
"anomaly"

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,4 +339,22 @@ private SlackCLI() {
339339
public static final String cli_app_install = "cli_app_install";
340340
public static final String cli_app_delete = "cli_app_delete";
341341
}
342+
343+
public static class Huddle {
344+
private Huddle() {
345+
}
346+
347+
public static final String huddle_ended = "huddle_ended";
348+
public static final String huddle_started = "huddle_started";
349+
public static final String huddle_participant_joined = "huddle_participant_joined";
350+
public static final String huddle_participant_left = "huddle_participant_left";
351+
public static final String huddle_participant_dropped = "huddle_participant_dropped";
352+
}
353+
354+
public static class Anomaly {
355+
private Anomaly() {
356+
}
357+
358+
public static final String anomaly = "anomaly";
359+
}
342360
}

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,18 @@ public void getActions_detectingNewOnes() throws IOException, AuditApiException
209209
fail("Unknown action detected - " + action);
210210
}
211211
}
212+
List<String> huddleNames = getAllPublicStaticFieldValues(Actions.Huddle.class);
213+
for (String action : actions.getHuddle()) {
214+
if (!huddleNames.contains(action)) {
215+
fail("Unknown action detected - " + action);
216+
}
217+
}
218+
List<String> barrierNames = getAllPublicStaticFieldValues(Actions.Barrier.class);
219+
for (String action : actions.getBarrier()) {
220+
if (!barrierNames.contains(action)) {
221+
fail("Unknown action detected - " + action);
222+
}
223+
}
212224
}
213225

214226
@Test

0 commit comments

Comments
 (0)