summaryrefslogtreecommitdiffstats
path: root/src/test/java/com/gitblit/tests/FederationTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/gitblit/tests/FederationTests.java')
-rw-r--r--src/test/java/com/gitblit/tests/FederationTests.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/java/com/gitblit/tests/FederationTests.java b/src/test/java/com/gitblit/tests/FederationTests.java
index 8475ffeb..688ae289 100644
--- a/src/test/java/com/gitblit/tests/FederationTests.java
+++ b/src/test/java/com/gitblit/tests/FederationTests.java
@@ -129,23 +129,23 @@ public class FederationTests {
assertNotNull(users);
// admin is excluded
assertEquals(0, users.size());
-
+
UserModel newUser = new UserModel("test");
newUser.password = "whocares";
assertTrue(RpcUtils.createUser(newUser, url, account, password.toCharArray()));
-
+
TeamModel team = new TeamModel("testteam");
team.addUser("test");
team.addRepositoryPermission("helloworld.git");
assertTrue(RpcUtils.createTeam(team, url, account, password.toCharArray()));
-
+
users = FederationUtils.getUsers(getRegistration());
assertNotNull(users);
assertEquals(1, users.size());
-
+
newUser = users.get(0);
- assertTrue(newUser.isTeamMember("testteam"));
-
+ assertTrue(newUser.isTeamMember("testteam"));
+
assertTrue(RpcUtils.deleteUser(newUser, url, account, password.toCharArray()));
assertTrue(RpcUtils.deleteTeam(team, url, account, password.toCharArray()));
}
@@ -156,14 +156,14 @@ public class FederationTests {
team.addUser("test");
team.addRepositoryPermission("helloworld.git");
assertTrue(RpcUtils.createTeam(team, url, account, password.toCharArray()));
-
+
List<TeamModel> teams = FederationUtils.getTeams(getRegistration());
assertNotNull(teams);
assertTrue(teams.size() > 0);
-
+
assertTrue(RpcUtils.deleteTeam(team, url, account, password.toCharArray()));
}
-
+
@Test
public void testPullScripts() throws Exception {
Map<String, String> scripts = FederationUtils.getScripts(getRegistration());