incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ewan Mellor <Ewan.Mel...@eu.citrix.com>
Subject Unit test failures
Date Sat, 04 Aug 2012 01:15:30 GMT
Hi everyone,

We have fixed almost all of our unit tests, and we are down to 3 failures (two of which look
like the same cause).  The details are below. If someone has any ideas on these, then it would
be greatly appreciated.  We need a perfect green light on unit tests before we can release.

Thanks,

Ewan.

http://jenkins.cloudstack.org/job/junit-test/
http://jenkins.cloudstack.org/job/junit-test/150/consoleFull


    [junit] 2012-08-03 20:57:41,104 TRACE [utils.component.ComponentLocator] (main:) Dao:com.cloud.storage.dao.VMTemplateZoneDao
    [junit] 2012-08-03 20:57:41,104 TRACE [utils.component.ComponentLocator] (main:) Dao:com.cloud.storage.dao.VMTemplateDetailsDao
    [junit] 2012-08-03 20:57:41,106 ERROR [utils.component.ComponentLocator] (main:) Problems
while configuring DAO: VMTemplateDao
    [junit] com.cloud.utils.exception.CloudRuntimeException: Unable to find DAO com.cloud.storage.dao.VMTemplateDetailsDao
    [junit]      at com.cloud.utils.component.ComponentLocator.getDao(ComponentLocator.java:365)
    [junit]      at com.cloud.utils.component.ComponentLocator.getDao(ComponentLocator.java:388)
    [junit]      at com.cloud.utils.component.ComponentLocator.inject(ComponentLocator.java:462)
    [junit]      at com.cloud.utils.component.ComponentLocator.createInstance(ComponentLocator.java:348)
    [junit]      at com.cloud.utils.component.ComponentLocator.startDaos(ComponentLocator.java:256)
    [junit]      at com.cloud.utils.component.ComponentLocator.parse(ComponentLocator.java:211)
    [junit]      at com.cloud.utils.component.MockComponentLocator.makeActive(MockComponentLocator.java:89)
    [junit]      at com.cloud.agent.manager.ResourceManagerTest.setUp(ResourceManagerTest.java:319)
    [junit]      at junit.framework.TestCase.runBare(TestCase.java:132)
    [junit]      at junit.framework.TestResult$1.protect(TestResult.java:110)
    [junit]      at junit.framework.TestResult.runProtected(TestResult.java:128)
    [junit]      at junit.framework.TestResult.run(TestResult.java:113)
    [junit]      at junit.framework.TestCase.run(TestCase.java:124)
    [junit]      at junit.framework.TestSuite.runTest(TestSuite.java:232)
    [junit]      at junit.framework.TestSuite.run(TestSuite.java:227)
    [junit]      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
    [junit]      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
    [junit]      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
    [junit] Running com.cloud.agent.manager.ResourceManagerTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Test com.cloud.agent.manager.ResourceManagerTest FAILED (crashed)




    [junit] 2012-08-03 20:57:46,794 INFO  [utils.component.ComponentLocator] (main:) Starting
singleton Manager: ClusterManager

    [junit] 2012-08-03 20:57:46,794 INFO  [utils.component.ComponentLocator] (main:) Started
Manager: ClusterManager

    [junit] 2012-08-03 20:57:46,795 ERROR [utils.component.ComponentLocator] (main:) Unable
to load configuration for management-server from fake file

    [junit] java.lang.NullPointerException

    [junit]      at com.cloud.utils.component.ComponentLocator.instantiatePluggableServices(ComponentLocator.java:644)

    [junit]      at com.cloud.utils.component.ComponentLocator.parse(ComponentLocator.java:223)

    [junit]      at com.cloud.utils.component.MockComponentLocator.makeActive(MockComponentLocator.java:89)

    [junit]      at com.cloud.cluster.CheckPointManagerTest.setUp(CheckPointManagerTest.java:64)

    [junit]      at junit.framework.TestCase.runBare(TestCase.java:132)

    [junit]      at junit.framework.TestResult$1.protect(TestResult.java:110)

    [junit]      at junit.framework.TestResult.runProtected(TestResult.java:128)

    [junit]      at junit.framework.TestResult.run(TestResult.java:113)

    [junit]      at junit.framework.TestCase.run(TestCase.java:124)

    [junit]      at junit.framework.TestSuite.runTest(TestSuite.java:232)

    [junit]      at junit.framework.TestSuite.run(TestSuite.java:227)

    [junit]      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)

    [junit]      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)

    [junit]      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)

    [junit] Running com.cloud.cluster.CheckPointManagerTest

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test com.cloud.cluster.CheckPointManagerTest FAILED (crashed)



    [junit] 2012-08-03 20:58:09,955 INFO  [utils.component.ComponentLocator] (main:) Starting
singleton Manager: AccountManager

    [junit] 2012-08-03 20:58:09,955 INFO  [utils.component.ComponentLocator] (main:) Started
Manager: AccountManager

    [junit] 2012-08-03 20:58:09,956 ERROR [utils.component.ComponentLocator] (main:) Unable
to load configuration for management-server from fake file

    [junit] java.lang.NullPointerException

    [junit]      at com.cloud.utils.component.ComponentLocator.instantiatePluggableServices(ComponentLocator.java:644)

    [junit]      at com.cloud.utils.component.ComponentLocator.parse(ComponentLocator.java:223)

    [junit]      at com.cloud.utils.component.MockComponentLocator.makeActive(MockComponentLocator.java:89)

    [junit]      at com.cloud.network.security.SecurityGroupManagerImpl2Test.setUp(SecurityGroupManagerImpl2Test.java:76)

    [junit]      at junit.framework.TestCase.runBare(TestCase.java:132)

    [junit]      at junit.framework.TestResult$1.protect(TestResult.java:110)

    [junit]      at junit.framework.TestResult.runProtected(TestResult.java:128)

    [junit]      at junit.framework.TestResult.run(TestResult.java:113)

    [junit]      at junit.framework.TestCase.run(TestCase.java:124)

    [junit]      at junit.framework.TestSuite.runTest(TestSuite.java:232)

    [junit]      at junit.framework.TestSuite.run(TestSuite.java:227)

    [junit]      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)

    [junit]      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)

    [junit]      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)

    [junit] Running com.cloud.network.security.SecurityGroupManagerImpl2Test

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Test com.cloud.network.security.SecurityGroupManagerImpl2Test FAILED (crashed)


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message