| | |
| | | model.accessRestriction = AccessRestrictionType.VIEW;
|
| | | model.description = "cloneable repository " + i;
|
| | | model.lastChange = new Date();
|
| | | model.owner = "adminuser";
|
| | | model.addOwner("adminuser");
|
| | | model.name = "repo" + i + ".git";
|
| | | model.size = "5 MB";
|
| | | model.hasCommits = true;
|
| | |
| | |
|
| | | TeamModel team = new TeamModel("testteam");
|
| | | team.addUser("test");
|
| | | team.addRepository("helloworld.git");
|
| | | team.addRepositoryPermission("helloworld.git");
|
| | | assertTrue(RpcUtils.createTeam(team, url, account, password.toCharArray()));
|
| | |
|
| | | users = FederationUtils.getUsers(getRegistration());
|
| | |
| | | assertNotNull(teams);
|
| | | assertTrue(teams.size() > 0);
|
| | | }
|
| | | |
| | | @Test
|
| | | public void testPullScripts() throws Exception {
|
| | | Map<String, String> scripts = FederationUtils.getScripts(getRegistration());
|
| | | assertNotNull(scripts);
|
| | | assertTrue(scripts.keySet().contains("sendmail"));
|
| | | }
|
| | | }
|