Skip to content

Commit

Permalink
Run all the integration tests - 2024-07-01 PT
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Jul 2, 2024
1 parent e1b7a42 commit 2ae1fa3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
3 changes: 2 additions & 1 deletion json-logs/samples/api/files.completeUploadExternal.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
}
},
"channels": [
"C00000000"
"C00000000",
""
],
"groups": [
""
Expand Down
6 changes: 2 additions & 4 deletions json-logs/samples/api/users.discoverableContacts.lookup.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
"error": "",
"needed": "",
"provided": "",
"user": {
"is_discoverable": false
},
"response_metadata": {
"messages": [
""
]
}
},
"is_discoverable": false
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.slack.api.methods.response.users.discoverable_contacts;

import com.google.gson.annotations.SerializedName;
import com.slack.api.methods.SlackApiTextResponse;
import com.slack.api.model.ResponseMetadata;
import lombok.Data;
Expand All @@ -18,13 +17,6 @@ public class UsersDiscoverableContactsLookupResponse implements SlackApiTextResp
private String provided;
private transient Map<String, List<String>> httpResponseHeaders;

private UserContact user;

private Boolean isDiscoverable;
private ResponseMetadata responseMetadata;

@Data
public static class UserContact {
@SerializedName("is_discoverable")
private boolean discoverable;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,7 @@ public void discoverableContacts() throws Exception {
String email = user.getUser().getProfile().getEmail();
UsersDiscoverableContactsLookupResponse response = slack.methods(orgBotToken)
.usersDiscoverableContactsLookup(r -> r.email(email));
// TODO: valid tests
assertThat(response.getError(), is("not_allowed"));
assertThat(response.getError(), is(nullValue()));
}

@Test
Expand Down

0 comments on commit 2ae1fa3

Please sign in to comment.