[ovirt-devel] REST API tests failing sporadically
Tal Nisan
tnisan at redhat.com
Wed Feb 25 10:28:00 EST 2015
Patch d83d67ff715c0707b1715e09249532ca14c7e21a added a static Map that
cached UriBuilders. This made the test "testGet" in
"BackendHostNicLabelResourceTest" fail in some cases.
Since JUnit test order is not deterministic some tests would wrongly use
cached UriBuilders from previous tests and thus fail with the exception
below.
We've introduced patch 330d7aee596ad6ad8f6854eb73aeb75a3f67cd9e that
reverted the original patch till a suitable solution will be found so if
you encounter this failure you are encouraged to fetch it.
Feb 25, 2015 4:17:16 PM org.ovirt.engine.api.restapi.resource.BackendResource setActionItem
SCHWERWIEGEND: Resource to action assignment failure.
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.ovirt.engine.api.restapi.resource.BackendResource.setActionItem(BackendResource.java:452)
at org.ovirt.engine.api.restapi.resource.AbstractBackendActionableResource.actionSuccess(AbstractBackendActionableResource.java:180)
at org.ovirt.engine.api.restapi.resource.AbstractBackendActionableResource.doAction(AbstractBackendActionableResource.java:87)
at org.ovirt.engine.api.restapi.resource.AbstractBackendActionableResource.doAction(AbstractBackendActionableResource.java:120)
at org.ovirt.engine.api.restapi.resource.BackendStorageDomainImageResource.doImport(BackendStorageDomainImageResource.java:65)
at org.ovirt.engine.api.restapi.resource.BackendStorageDomainImageResourceTest.testImport(BackendStorageDomainImageResourceTest.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
at com.sun.proxy.$Proxy0.invoke(Unknown Source)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec
Running org.ovirt.engine.api.restapi.resource.BackendDisksResourceTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.142 sec
Running org.ovirt.engine.api.restapi.resource.BackendStatisticResourceTest
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec <<< FAILURE!
Running org.ovirt.engine.api.restapi.resource.BackendRoleResourceTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.081 sec
Running org.ovirt.engine.api.restapi.resource.BackendReadOnlyNicsResourceTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.098 sec
Running org.ovirt.engine.api.restapi.resource.BackendIscsiBondNetworkResourceTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.07 sec
Running org.ovirt.engine.api.restapi.resource.BackendHostHookResourceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.044 sec
Running org.ovirt.engine.api.restapi.resource.BackendCdRomsResourceTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.246 sec
Running org.ovirt.engine.api.restapi.resource.BackendTemplateDiskResourceTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.166 sec
Running org.ovirt.engine.api.restapi.resource.BackendEntityAssignedPermissionsResourceTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.199 sec
Running org.ovirt.engine.api.restapi.resource.BackendCreationResourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec
Running org.ovirt.engine.api.restapi.resource.BackendJobsResourceTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.097 sec
Running org.ovirt.engine.api.restapi.resource.BackendVmPoolResourceTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.08 sec
Running org.ovirt.engine.api.restapi.resource.BackendHostStorageResourceTest
Tests run: 9, Failures: 3, Errors: 0, Skipped: 1, Time elapsed: 0.144 sec <<< FAILURE!
Running org.ovirt.engine.api.restapi.resource.BackendStorageDomainTemplateResourceTest
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.251 sec
Running org.ovirt.engine.api.restapi.resource.BackendJobResourceTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.08 sec
Results :
Failed tests:
testGet(org.ovirt.engine.api.restapi.resource.BackendHostNicLabelResourceTest)
testQuery(org.ovirt.engine.api.restapi.resource.externalhostproviders.BackendHostKatelloErrataResourceTest)
testList(org.ovirt.engine.api.restapi.resource.externalhostproviders.BackendHostKatelloErrataResourceTest)
testGet(org.ovirt.engine.api.restapi.resource.externalhostproviders.BackendHostKatelloErratumResourceTest)
testGetForceTrue(org.ovirt.engine.api.restapi.resource.BackendHostResourceTest)
testGet(org.ovirt.engine.api.restapi.resource.BackendHostResourceTest)
testUpdateWithClusterId(org.ovirt.engine.api.restapi.resource.BackendHostResourceTest)
testUpdateWithClusterName(org.ovirt.engine.api.restapi.resource.BackendHostResourceTest)
testGetIncludeStatistics(org.ovirt.engine.api.restapi.resource.BackendHostResourceTest)
testGetForceFalse(org.ovirt.engine.api.restapi.resource.BackendHostResourceTest)
testUpdate(org.ovirt.engine.api.restapi.resource.BackendHostResourceTest)
testAddHost(org.ovirt.engine.api.restapi.resource.BackendHostsResourceTest)
testAddHostClusterById(org.ovirt.engine.api.restapi.resource.BackendHostsResourceTest)
testQuery(org.ovirt.engine.api.restapi.resource.BackendHostsResourceTest)
testList(org.ovirt.engine.api.restapi.resource.BackendHostsResourceTest)
testListIncludeStatistics(org.ovirt.engine.api.restapi.resource.BackendHostsResourceTest)
testAddHostClusterByName(org.ovirt.engine.api.restapi.resource.BackendHostsResourceTest)
testGet(org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest)
testList(org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest)
testListIncludeStatistics(org.ovirt.engine.api.restapi.resource.BackendHostNicsResourceTest)
testAddTagByName(org.ovirt.engine.api.restapi.resource.BackendHostTagsResourceTest)
testAddTag(org.ovirt.engine.api.restapi.resource.BackendHostTagsResourceTest)
testList(org.ovirt.engine.api.restapi.resource.BackendHostTagsResourceTest)
testList(org.ovirt.engine.api.restapi.resource.BackendStatisticsResourceTest)
testAdd(org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResourceTest)
testList(org.ovirt.engine.api.restapi.resource.BackendHostNicLabelsResourceTest)
testGet(org.ovirt.engine.api.restapi.resource.BackendStatisticResourceTest)
testGet(org.ovirt.engine.api.restapi.resource.BackendHostStorageResourceTest)
testGetVg(org.ovirt.engine.api.restapi.resource.BackendHostStorageResourceTest)
testList(org.ovirt.engine.api.restapi.resource.BackendHostStorageResourceTest)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20150225/7f29a553/attachment-0001.html>
More information about the Devel
mailing list