diff options
author | James Moger <james.moger@gitblit.com> | 2013-11-25 09:12:47 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-11-29 11:05:51 -0500 |
commit | 5ae529ea8a73edc8e2bb1e7f9576e51c9d870224 (patch) | |
tree | 683d1efa15f9c64da9de31ad3366dbb92d2858c9 /src/test | |
parent | 3a9e76b63f09a32e0b6812e18ffff00fab8e58e6 (diff) | |
download | gitblit-5ae529ea8a73edc8e2bb1e7f9576e51c9d870224.tar.gz gitblit-5ae529ea8a73edc8e2bb1e7f9576e51c9d870224.zip |
Change IGitblit API to be more distinct from IUserService
Change-Id: I8fb38fb6a3dae74ad7a12b045b054373b9b02518
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/com/gitblit/tests/GitServletTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/java/com/gitblit/tests/GitServletTest.java b/src/test/java/com/gitblit/tests/GitServletTest.java index ad61a676..705684a3 100644 --- a/src/test/java/com/gitblit/tests/GitServletTest.java +++ b/src/test/java/com/gitblit/tests/GitServletTest.java @@ -177,7 +177,7 @@ public class GitServletTest extends GitblitUnitTest { model.authorizationControl = AuthorizationControl.NAMED;
UserModel user = new UserModel("james");
user.password = "james";
- gitblit().updateUserModel(user.username, user, true);
+ gitblit().addUser(user);
repositories().updateRepositoryModel(model.name, model, false);
FileUtils.delete(ticgit2Folder, FileUtils.RECURSIVE);
@@ -419,7 +419,7 @@ public class GitServletTest extends GitblitUnitTest { // grant user push permission
user.setRepositoryPermission(model.name, AccessPermission.PUSH);
- gitblit().updateUserModel(user.username, user, true);
+ gitblit().addUser(user);
repositories().updateRepositoryModel(model.name, model, false);
// clone temp bare repo to working copy
@@ -504,7 +504,7 @@ public class GitServletTest extends GitblitUnitTest { // grant user push permission
user.setRepositoryPermission(model.name, AccessPermission.PUSH);
- gitblit().updateUserModel(user.username, user, true);
+ gitblit().addUser(user);
repositories().updateRepositoryModel(model.name, model, false);
// clone temp bare repo to working copy
@@ -657,7 +657,7 @@ public class GitServletTest extends GitblitUnitTest { // grant user specified
user.setRepositoryPermission(model.name, permission);
- gitblit().updateUserModel(user.username, user, true);
+ gitblit().addUser(user);
repositories().updateRepositoryModel(model.name, model, false);
// clone temp bare repo to working copy
@@ -827,7 +827,7 @@ public class GitServletTest extends GitblitUnitTest { user.canCreate = canCreate;
user.canAdmin = canAdmin;
- gitblit().updateUserModel(user.username, user, true);
+ gitblit().addUser(user);
CredentialsProvider cp = new UsernamePasswordCredentialsProvider(user.username, user.password);
|