-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove Retry From Abstract Event Consumer * - Add Check for null Or Empty in isAdmin * - Fix Test
- Loading branch information
1 parent
7959e25
commit fe2db2d
Showing
5 changed files
with
17 additions
and
12 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1146,29 +1146,30 @@ void testUserImportExport() throws IOException { | |
String user = | ||
"userImportExport,d,s,[email protected],America/Los_Angeles,true,teamImportExport,"; | ||
String user1 = | ||
"userImportExport1,,,[email protected],,,teamImportExport1,DataConsumer"; | ||
String user11 = "userImportExport11,,,[email protected],,,teamImportExport11,"; | ||
"userImportExport1,,,[email protected],,false,teamImportExport1,DataConsumer"; | ||
String user11 = "userImportExport11,,,[email protected],,false,teamImportExport11,"; | ||
List<String> createRecords = listOf(user, user1, user11); | ||
|
||
// Update user descriptions | ||
user = "userImportExport,displayName,,[email protected],,,teamImportExport,"; | ||
user1 = "userImportExport1,displayName1,,[email protected],,,teamImportExport1,"; | ||
user = "userImportExport,displayName,,[email protected],,false,teamImportExport,"; | ||
user1 = | ||
"userImportExport1,displayName1,,[email protected],,false,teamImportExport1,"; | ||
user11 = | ||
"userImportExport11,displayName11,,[email protected],,,teamImportExport11,"; | ||
"userImportExport11,displayName11,,[email protected],,false,teamImportExport11,"; | ||
List<String> updateRecords = listOf(user, user1, user11); | ||
|
||
// Add new users | ||
String user2 = | ||
"userImportExport2,displayName2,,[email protected],,,teamImportExport1,"; | ||
"userImportExport2,displayName2,,[email protected],,false,teamImportExport1,"; | ||
String user21 = | ||
"userImportExport21,displayName21,,[email protected],,,teamImportExport11,"; | ||
"userImportExport21,displayName21,,[email protected],,false,teamImportExport11,"; | ||
List<String> newRecords = listOf(user2, user21); | ||
testImportExport("teamImportExport", UserCsv.HEADERS, createRecords, updateRecords, newRecords); | ||
|
||
// Import to team11 a user in team1 - since team1 is not under team11 hierarchy, import should | ||
// fail | ||
String user3 = | ||
"userImportExport3,displayName3,,[email protected],,,teamImportExport1,"; | ||
"userImportExport3,displayName3,,[email protected],,false,teamImportExport1,"; | ||
csv = EntityCsvTest.createCsv(UserCsv.HEADERS, listOf(user3), null); | ||
result = importCsv("teamImportExport11", csv, false); | ||
String error = | ||
|
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