summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-10-31 23:16:24 -0400
committerJames Moger <james.moger@gitblit.com>2012-10-31 23:16:24 -0400
commit644bdd5a59a5ed5fbf93a0765f92608b0530c16a (patch)
tree011d6f9921cf2affcd720ace8a67c289bf1a6377 /tests
parent2ea85bfe371215ef21fcd528bc40fa57c48ee698 (diff)
downloadgitblit-644bdd5a59a5ed5fbf93a0765f92608b0530c16a.tar.gz
gitblit-644bdd5a59a5ed5fbf93a0765f92608b0530c16a.zip
Improve transparency of permissions by indicating permission source
Diffstat (limited to 'tests')
-rw-r--r--tests/com/gitblit/tests/RpcTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/com/gitblit/tests/RpcTests.java b/tests/com/gitblit/tests/RpcTests.java
index 3df0ff8e..62d87bf9 100644
--- a/tests/com/gitblit/tests/RpcTests.java
+++ b/tests/com/gitblit/tests/RpcTests.java
@@ -200,7 +200,7 @@ public class RpcTests {
List<RegistrantAccessPermission> permissions = RpcUtils.getRepositoryMemberPermissions(retrievedRepository, url, account,
password.toCharArray());
assertEquals("Membership permissions is not empty!", 0, permissions.size());
- permissions.add(new RegistrantAccessPermission(testMember.username, AccessPermission.PUSH, PermissionType.EXPLICIT, RegistrantType.USER, true));
+ permissions.add(new RegistrantAccessPermission(testMember.username, AccessPermission.PUSH, PermissionType.EXPLICIT, RegistrantType.USER, null, true));
assertTrue(
"Failed to set member permissions!",
RpcUtils.setRepositoryMemberPermissions(retrievedRepository, permissions, url, account,
@@ -289,7 +289,7 @@ public class RpcTests {
// set no teams
List<RegistrantAccessPermission> permissions = new ArrayList<RegistrantAccessPermission>();
for (String team : helloworldTeams) {
- permissions.add(new RegistrantAccessPermission(team, AccessPermission.NONE, PermissionType.EXPLICIT, RegistrantType.TEAM, true));
+ permissions.add(new RegistrantAccessPermission(team, AccessPermission.NONE, PermissionType.EXPLICIT, RegistrantType.TEAM, null, true));
}
assertTrue(RpcUtils.setRepositoryTeamPermissions(helloworld, permissions, url, account,
password.toCharArray()));