diff options
author | chirontt <chirontt@chirontt.org> | 2019-04-28 15:51:21 -0400 |
---|---|---|
committer | Florian Zschocke <florian.zschocke@devolo.de> | 2019-06-07 13:57:47 +0200 |
commit | 694fd8896d2133fd5183349278be37e4f0c53d58 (patch) | |
tree | 76c00fd3001d9c7cb47d8958545bad5ecaaf50a2 /src/test/java/com/gitblit/tests/HtpasswdAuthenticationTest.java | |
parent | 845de9dbdd4a19ea7d4bd15d66fe9e22a16eae23 (diff) | |
download | gitblit-694fd8896d2133fd5183349278be37e4f0c53d58.tar.gz gitblit-694fd8896d2133fd5183349278be37e4f0c53d58.zip |
Fix for various test failures.
Most of failures were due to temporary test repos, users and/or teams
being left behind after the test run, and these left-over stuff in
$baseFolder/data/git caused assertion errors in many tests in subsequent
test runs. This fix tries to delete those left-over stuff at the end of
each test, mainly in their @Afterclass code blocks.
PushLogTest.java is deleted as it doesn't work, and has been superseded
with better tests in various protocol test suites (GitServletTest,
GitDaemonTest, SshDaemonTest, etc.)
Diffstat (limited to 'src/test/java/com/gitblit/tests/HtpasswdAuthenticationTest.java')
-rw-r--r-- | src/test/java/com/gitblit/tests/HtpasswdAuthenticationTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/gitblit/tests/HtpasswdAuthenticationTest.java b/src/test/java/com/gitblit/tests/HtpasswdAuthenticationTest.java index 26a49b24..40379f7d 100644 --- a/src/test/java/com/gitblit/tests/HtpasswdAuthenticationTest.java +++ b/src/test/java/com/gitblit/tests/HtpasswdAuthenticationTest.java @@ -200,11 +200,11 @@ public class HtpasswdAuthenticationTest extends GitblitUnitTest { public void testAuthenticationManager() { MS.put(KEY_SUPPORT_PLAINTEXT_PWD, "true"); - UserModel user = auth.authenticate("user1", "pass1".toCharArray(), null); + UserModel user = auth.authenticate("user1", "#externalAccount".toCharArray(), null); assertNotNull(user); assertEquals("user1", user.username); - user = auth.authenticate("user2", "pass2".toCharArray(), null); + user = auth.authenticate("user2", "#externalAccount".toCharArray(), null); assertNotNull(user); assertEquals("user2", user.username); |