I am having the same error locally right now. Someone broke the unit tests, they
should get fixed sooner or later. For now just skip the tests when building with -
DskipTests
On Wednesday, April 17, 2013 11:44:04 PM 李强 wrote:
HI:All
This is my logs, thanks,
==================================================
========
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Forking command line: /bin/sh -c cd /home/liqiang/ovirt-
engine/backend/manager/modules/dal && /usr/lib/jvm/java-1.7.0-
openjdk-1.7.0.17.x86_64/jre/bin/java -jar /home/liqiang/ovirt-
engine/backend/manager/modules/dal/target/surefire/surefirebooter42615234185720
89603.jar /home/liqiang/ovirt-
engine/backend/manager/modules/dal/target/surefire/surefire7472834543455719312t
mp /home/liqiang/ovirt-
engine/backend/manager/modules/dal/target/surefire/surefire5281802986683589703t
mp
Running org.ovirt.engine.core.dao.DaoFactoryTest
Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.262 sec
Running org.ovirt.engine.core.dal.job.ExecutionMessageDirectorTest
23:39:49,030 INFO [ExecutionMessageDirector] Start initializing
ExecutionMessageDirector
23:39:49,032 ERROR [ExecutionMessageDirector] Message key job.AddDiskToVm is
not valid for enum VdcActionType
23:39:49,033 INFO [ExecutionMessageDirector] Finished initializing
ExecutionMessageDirector
23:39:49,033 INFO [ExecutionMessageDirector] Start initializing
ExecutionMessageDirector
23:39:49,034 ERROR [ExecutionMessageDirector] Message key job.AddDiskToVm is
not valid for enum VdcActionType
23:39:49,034 INFO [ExecutionMessageDirector] Finished initializing
ExecutionMessageDirector
23:39:49,034 WARN [ExecutionMessageDirector] The message key Unknown is
missing from bundles/ExecutionMessages
23:39:49,035 INFO [ExecutionMessageDirector] Start initializing
ExecutionMessageDirector
23:39:49,036 ERROR [ExecutionMessageDirector] The message key XXX cannot be
categorized since not started with job. nor step.
23:39:49,037 INFO [ExecutionMessageDirector] Finished initializing
ExecutionMessageDirector
23:39:49,037 INFO [ExecutionMessageDirector] Start initializing
ExecutionMessageDirector
23:39:49,039 ERROR [ExecutionMessageDirector] Message key job.ABC is not valid for
enum VdcActionType
23:39:49,040 INFO [ExecutionMessageDirector] Finished initializing
ExecutionMessageDirector
23:39:49,042 INFO [ExecutionMessageDirector] Start initializing
ExecutionMessageDirector
23:39:49,044 ERROR [ExecutionMessageDirector] Message key step.XYZ is not valid
for enum StepEnum
23:39:49,044 INFO [ExecutionMessageDirector] Finished initializing
ExecutionMessageDirector
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec
Running org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtilsTest
23:39:49,431 WARN [LocalConfig] The file "/usr/share/ovirt-
engine/conf/engine.conf.defaults" doesn't exist or isn't readable. Will
return an empty
set of properties.
23:39:49,431 WARN [LocalConfig] The file "/etc/ovirt-engine/engine.conf"
doesn't exist
or isn't readable. Will return an empty set of properties.
23:39:49,432 ERROR [LocalConfig] The property "ENGINE_DB_CONNECTION_TIMEOUT"
doesn't have a value.
23:39:49,433 WARN [DbFacadeLocator] Can't load connection checking parameters of
DB facade, will continue using the default values.
java.lang.IllegalArgumentException: The property
"ENGINE_DB_CONNECTION_TIMEOUT" doesn't have a value.
at org.ovirt.engine.core.utils.LocalConfig.getProperty(LocalConfig.java:234)
at org.ovirt.engine.core.utils.LocalConfig.getInteger(LocalConfig.java:293)
at
org.ovirt.engine.core.dal.dbbroker.DbFacadeLocator.loadDbFacadeConfig(DbFacadeLo
cator.java:177)
at
org.ovirt.engine.core.dal.dbbroker.DbFacadeLocator.createDbFacade(DbFacadeLocato
r.java:62)
at
org.ovirt.engine.core.dal.dbbroker.DbFacadeLocator.getDbFacade(DbFacadeLocator.ja
va:47)
at
org.ovirt.engine.core.dao.BaseDAOTestCase.initTestCase(BaseDAOTestCase.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:
45)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:4
2)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at
org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.eval
uate(RunBeforeTestClassCallbacks.java:61)
at
org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evalua
te(RunAfterTestClassCallbacks.java:71)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:47)
at org.junit.rules.RunRules.evaluate(RunRules.java:18)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4Clas
sRunner.java:174)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:12
3)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.ja
va:164)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFacto
ry.java:110)