diff options
author | James Moger <james.moger@gitblit.com> | 2013-01-06 17:22:43 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-01-06 17:22:43 -0500 |
commit | b8fab611aa1d9c12c447014014bec43a1fdc617f (patch) | |
tree | 0e065afecb4652337b898d19116f997881b6b0c9 /tests | |
parent | 6b47835583764f31315de99e98e79d7446e13ea2 (diff) | |
download | gitblit-b8fab611aa1d9c12c447014014bec43a1fdc617f.tar.gz gitblit-b8fab611aa1d9c12c447014014bec43a1fdc617f.zip |
Allow username/password Redmine authentication
Diffstat (limited to 'tests')
-rw-r--r-- | tests/com/gitblit/tests/RedmineUserServiceTest.java | 6 |
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);
|