File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
slack-api-client/src/test/java/test_with_remote_apis/audit Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -162,4 +162,17 @@ public void getLogs_dummy() throws IOException {
162162 }
163163 }
164164
165+ @ Test
166+ public void getLogs_paginated () throws IOException , AuditApiException {
167+ if (orgAdminUserToken != null ) {
168+ LogsResponse response = slack .audit (orgAdminUserToken ).getLogs (req ->
169+ req .oldest (1521214343 ).action (Actions .User .user_login ).limit (10 ));
170+ String cursor = response .getResponseMetadata ().getNextCursor ();
171+ response = slack .audit (orgAdminUserToken ).getLogs (req ->
172+ req .oldest (1521214343 ).action (Actions .User .user_login ).limit (10 ).cursor (cursor ));
173+ assertThat (cursor , not (equalTo (response .getResponseMetadata ().getNextCursor ())));
174+ assertThat (response , is (notNullValue ()));
175+ }
176+ }
177+
165178}
You can’t perform that action at this time.
0 commit comments