summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-01-06 17:22:43 -0500
committerJames Moger <james.moger@gitblit.com>2013-01-06 17:22:43 -0500
commitb8fab611aa1d9c12c447014014bec43a1fdc617f (patch)
tree0e065afecb4652337b898d19116f997881b6b0c9 /tests
parent6b47835583764f31315de99e98e79d7446e13ea2 (diff)
downloadgitblit-b8fab611aa1d9c12c447014014bec43a1fdc617f.tar.gz
gitblit-b8fab611aa1d9c12c447014014bec43a1fdc617f.zip
Allow username/password Redmine authentication
Diffstat (limited to 'tests')
-rw-r--r--tests/com/gitblit/tests/RedmineUserServiceTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/com/gitblit/tests/RedmineUserServiceTest.java b/tests/com/gitblit/tests/RedmineUserServiceTest.java
index 0e12542d..12fa73ff 100644
--- a/tests/com/gitblit/tests/RedmineUserServiceTest.java
+++ b/tests/com/gitblit/tests/RedmineUserServiceTest.java
@@ -30,8 +30,8 @@ public class RedmineUserServiceTest {
RedmineUserService redmineUserService = new RedmineUserService();
redmineUserService.setup(new MemorySettings(new HashMap<String, Object>()));
redmineUserService.setTestingCurrentUserAsJson(JSON);
- UserModel userModel = redmineUserService.authenticate("RedmineUserId", "RedmineAPIKey".toCharArray());
- assertThat(userModel.getName(), is("redmineuserid"));
+ UserModel userModel = redmineUserService.authenticate("RedmineAdminId", "RedmineAPIKey".toCharArray());
+ assertThat(userModel.getName(), is("redmineadminid"));
assertThat(userModel.getDisplayName(), is("baz foo"));
assertThat(userModel.emailAddress, is("baz@example.com"));
assertNotNull(userModel.cookie);
@@ -44,7 +44,7 @@ public class RedmineUserServiceTest {
redmineUserService.setup(new MemorySettings(new HashMap<String, Object>()));
redmineUserService.setTestingCurrentUserAsJson(NOT_ADMIN_JSON);
UserModel userModel = redmineUserService.authenticate("RedmineUserId", "RedmineAPIKey".toCharArray());
- assertThat(userModel.getName(), is("baz@example.com"));
+ assertThat(userModel.getName(), is("redmineuserid"));
assertThat(userModel.getDisplayName(), is("baz foo"));
assertThat(userModel.emailAddress, is("baz@example.com"));
assertNotNull(userModel.cookie);