Community
Participate
Working Groups
GitCloneTest.testCloneMissingUserInfo() failed again. expected:<200> but was:<400> java.lang.AssertionError: expected:<200> but was:<400> at org.eclipse.orion.server.tests.servlets.git.GitCloneTest.testCloneMissingUserInfo(GitCloneTest.java:248) at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:501) at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:259) at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:36) at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:32) at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:352) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:624) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:579) at org.eclipse.equinox.launcher.Main.run(Main.java:1433) at org.eclipse.equinox.launcher.Main.main(Main.java:1409) at org.eclipse.core.launcher.Main.main(Main.java:34)
It's most probably caused by a "missing host exception" returned from the server as 400. Modified the test a bit to double check it -- c4f02acd7ca1c718b297d340a5ca912b14bb069f
*** Bug 370687 has been marked as a duplicate of this bug. ***
From the failure in I201202052230 [1] we can get this kind of additional info: { "Severity":"Error", "Message":"ssh://git.eclipse.org/gitroot/platform/eclipse.platform.news.git: username must not be null.", "HttpCode":400, "Code":0, "DetailedMessage":"ssh://git.eclipse.org/gitroot/platform/eclipse.platform.news.git: username must not be null.", "JsonData":{ "Scheme":"ssh", "Url":"ssh://git.eclipse.org/gitroot/platform/eclipse.platform.news.git", "Host":"git.eclipse.org", "HumanishName":"eclipse.platform.news" } } Rest of the stacktrace is identical to the one from comment 0. [1] http://download.eclipse.org/orion/drops/I201202052230/org.eclipse.orion.server.tests.AllServerTests.html
It seems that we expected this error in test. The only problem here is that the test was expected to end up as a task and it finished much faster. I had to miss this test when I migrated clone operation to TaskJob that does not necessary end up as a task, or maybe this test is newer. I can take it from here, Tomek, if you want.
(In reply to comment #4) > I had to miss this test when I migrated clone operation to TaskJob that does not necessary end > up as a task, or maybe this test is newer. You didn't miss it, it's a new test added in bug 369282. > I can take it from here, Tomek, if you want. Be my guest. Thx!
Done. I added getResult helper method to GitTest that returns what should be in task Result no meter if it ended in task or returned directly.