Bug 346379 - [server] Failing tests due to assertion on missing Git section
Summary: [server] Failing tests due to assertion on missing Git section
Status: RESOLVED FIXED
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL: http://download.eclipse.org/e4/orion/...
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2011-05-19 03:54 EDT by Tomasz Zarna CLA
Modified: 2011-09-01 11:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 "".