Bug 346379

Summary: [server] Failing tests due to assertion on missing Git section
Product: [ECD] Orion (Archived) Reporter: Tomasz Zarna <tomasz.zarna>
Component: ClientAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: test
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: All   
URL: http://download.eclipse.org/e4/orion/drops/N201105182000/org.eclipse.orion.server.tests.AllServerTests.html
Whiteboard:

Description Tomasz Zarna CLA 2011-05-19 03:54:31 EDT
Stack trace for the first error:

testGitUrisAfterLinkingToExistingClone Error N/A 

java.lang.AssertionError: 
at org.eclipse.orion.server.tests.servlets.git.GitUriTest.testGitUrisAfterLinkingToExistingClone(GitUriTest.java:45)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:416)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:249)
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:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
at org.eclipse.core.launcher.Main.main(Main.java:34)
 
 
All tests pass when ran locally on Windows.
Comment 1 Tomasz Zarna CLA 2011-05-19 04:39:34 EDT
(In reply to comment #0)
> All tests pass when ran locally on Windows.

Forgot to pull, they fail on Windows as well. This is caused by bug 336560 and the change in org.eclipse.orion.server.git.GitFileDecorator.initGitRepository(HttpServletRequest, IPath, JSONObject) where a value for ServerConstants.CONFIG_FILE_DEFAULT_SCM can be null but we still try to make it lower case. The default should be "".