Skip to content

Commit

Permalink
Run all the integration tests - 2024-11-25 PT
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Nov 28, 2024
1 parent cabfc4c commit 0a5deb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void getFile_member_error() throws Exception {
public void getFile_member_forEach() throws Exception {
if (orgAdminUserToken != null) {
AdminAnalyticsGetFileResponse response = methodsAsync.adminAnalyticsGetFile(r -> r
.date("2023-10-20")
.date("2024-01-20")
.type("member")
).get();
assertNull(response.getError());
Expand Down Expand Up @@ -86,7 +86,7 @@ public void getFile_member_forEach() throws Exception {
public void getFile_member_forEach_validation() throws Exception {
if (orgAdminUserToken != null) {
AdminAnalyticsGetFileResponse response = methodsAsync.adminAnalyticsGetFile(r -> r
.date("2023-10-20")
.date("2024-01-20")
.type("member")
).get();
assertNull(response.getError());
Expand All @@ -105,7 +105,7 @@ public void getFile_member_forEach_validation() throws Exception {
public void getFile_member_asBytes() throws Exception {
if (orgAdminUserToken != null) {
AdminAnalyticsGetFileResponse response = methodsAsync.adminAnalyticsGetFile(r -> r
.date("2023-10-20")
.date("2024-01-20")
.type("member")
).get();
assertNotNull(response.getFileStream());
Expand All @@ -130,7 +130,7 @@ public void getFile_member_asBytes() throws Exception {
public void getFile_public_channel() throws Exception {
if (orgAdminUserToken != null) {
AdminAnalyticsGetFileResponse response = methodsAsync.adminAnalyticsGetFile(r -> r
.date("2023-10-20")
.date("2024-01-20")
.type("public_channel")
).get();
assertNull(response.getError());
Expand Down Expand Up @@ -166,7 +166,7 @@ public void getFile_public_channel() throws Exception {
public void getFile_public_channel_validation() throws Exception {
if (orgAdminUserToken != null) {
AdminAnalyticsGetFileResponse response = methodsAsync.adminAnalyticsGetFile(r -> r
.date("2023-10-20")
.date("2024-01-20")
.type("public_channel")
).get();
assertNull(response.getError());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public void adminFunctions() throws Exception {
List<String> functionIds = response.getFunctions().stream().map(AppFunction::getId).collect(Collectors.toList());
AdminFunctionsPermissionsLookupResponse permissions =
methodsAsync.adminFunctionsPermissionsLookup(r -> r.functionIds(functionIds)).get();
// TODO: starting in Nov 2024, this API call returns "internal_error"
assertThat(permissions.getError(), is(nullValue()));
String userId = methodsAsync.authTest(r -> r).get().getUserId();
AdminFunctionsPermissionsSetResponse set = methodsAsync.adminFunctionsPermissionsSet(r -> r
Expand Down

0 comments on commit 0a5deb9

Please sign in to comment.