[jboss-jira] [JBoss JIRA] (WFCORE-4102) ModelPersistenceTestCase fails when running after ReadConfigAsFeaturesStandaloneTestCase
Richard Janík (JIRA)
issues at jboss.org
Tue Sep 11 08:50:01 EDT 2018
[ https://issues.jboss.org/browse/WFCORE-4102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13631742#comment-13631742 ]
Richard Janík commented on WFCORE-4102:
---------------------------------------
The issue is that the {{ReadConfigAsFeaturesStandaloneTestCase}} reloads the container with with a snapshot configuration file (e.g. {{20180911-141111004standalone.xml}}) and keeps using it - never reloads back to the default ({{standalone.xml}}).
The test {{ModelPersistenceTestCase}} expects the container uses a non-snapshot configuration file (e.g. {{standalone.xml}}). Files like the {{*.last.xml}} only seem to exist for non-snapshot configurations. I know next to nothing about this, so I'll assume this is all by design.
I'll submit a PR with a fix to {{ReadConfigAsFeaturesStandaloneTestCase}} in a few moments.
> ModelPersistenceTestCase fails when running after ReadConfigAsFeaturesStandaloneTestCase
> ----------------------------------------------------------------------------------------
>
> Key: WFCORE-4102
> URL: https://issues.jboss.org/browse/WFCORE-4102
> Project: WildFly Core
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 6.0.1.Final
> Reporter: Jan Kalina
> Assignee: Richard Janík
>
> ModelPersistenceTestCase fails when ReadConfigAsFeaturesStandaloneTestCase runs in order before it.
> Not depending on JDK version - affects JDK 8,9,11.
> {code}
> [INFO] Running org.wildfly.core.test.standalone.mgmt.api.core.ReadConfigAsFeaturesStandaloneTestCase
> [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.29 s - in org.wildfly.core.test.standalone.mgmt.api.core.ReadConfigAsFeaturesStandaloneTestCase
> [INFO] Running org.wildfly.core.test.standalone.mgmt.api.ModelPersistenceTestCase
> [ERROR] Tests run: 5, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.088 s <<< FAILURE! - in org.wildfly.core.test.standalone.mgmt.api.ModelPersistenceTestCase
> [ERROR] testTakeAndDeleteSnapshot(org.wildfly.core.test.standalone.mgmt.api.ModelPersistenceTestCase) Time elapsed: 0.017 s <<< ERROR!
> java.io.FileNotFoundException: /home/jkalina/work/wildfly-core/testsuite/standalone/target/wildfly-core/standalone/configuration/standalone_xml_history/20180910-161302223standalone.last.xml (No such file or directory)
> at java.io.FileInputStream.open0(Native Method)
> at java.io.FileInputStream.open(FileInputStream.java:195)
> at java.io.FileInputStream.<init>(FileInputStream.java:138)
> at org.apache.commons.io.FileUtils.checksum(FileUtils.java:2873)
> at org.apache.commons.io.FileUtils.checksumCRC32(FileUtils.java:2846)
> at org.wildfly.core.test.standalone.mgmt.api.ModelPersistenceTestCase.testTakeAndDeleteSnapshot(ModelPersistenceTestCase.java:207)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> 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.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> at org.wildfly.core.testrunner.WildflyTestRunner.run(WildflyTestRunner.java:109)
> at org.junit.runners.Suite.runChild(Suite.java:128)
> at org.junit.runners.Suite.runChild(Suite.java:27)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
> at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
> at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
> at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
> at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
> at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
> at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
> at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list