-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow guests for exporting users which will exclude email
- Loading branch information
Showing
6 changed files
with
44 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,14 @@ void create_get_export_users() { | |
assertThat(response.getLastSessionTimesMap()).doesNotContainKeys(nani.getJid()); | ||
|
||
String exportedCsv = userClient.exportUsers(adminToken, List.of("nani", "nano", "bogus")); | ||
assertThat(exportedCsv).isEqualTo(String.format("jid,username,email\n" | ||
+ "%s,nani,[email protected]\n" | ||
+ "%s,nano,[email protected]\n", nani.getJid(), nano.getJid())); | ||
assertThat(exportedCsv).isEqualTo(String.format("username,jid,email\n" | ||
+ "nani,%s,[email protected]\n" | ||
+ "nano,%s,[email protected]\n", nani.getJid(), nano.getJid())); | ||
|
||
exportedCsv = userClient.exportUsers(List.of("nani", "nano", "bogus")); | ||
assertThat(exportedCsv).isEqualTo(String.format("username,jid\n" | ||
+ "nani,%s\n" | ||
+ "nano,%s\n", nani.getJid(), nano.getJid())); | ||
} | ||
|
||
@Test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters