Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4330

Subsystem test framework does not work with model overrides

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.CR1, 8.0.0.Final
    • 8.0.0.Beta5
    • Test Suite
    • None

      JGroups subsystem is using model overrides, however the test framework fails with the following when tranforming current model to e.g. 7.2.:

      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.jboss.as.clustering.jgroups.subsystem.JGroupsTransformersTestCase
      [ERROR] Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 14.029 s <<< FAILURE! - in org.jboss.as.clustering.jgroups.subsystem.JGroupsTransformersTestCase
      [ERROR] testTransformerEAP720(org.jboss.as.clustering.jgroups.subsystem.JGroupsTransformersTestCase)  Time elapsed: 1.435 s  <<< FAILURE!
      java.lang.AssertionError:
      WFLYCTL0158: Operation handler failed: java.lang.RuntimeException: WFLYCTL0282: Model contains fields that are not known in definition, fields: [key-alias, key-store, key-credential-reference], path: [
          ("subsystem" => "jgroups"),
          ("stack" => "*"),
          ("protocol" => "*")
      ]
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.assertTrue(Assert.java:41)
      	at org.jboss.as.model.test.ModelTestUtils.checkOutcome(ModelTestUtils.java:134)
      	at org.jboss.as.model.test.ModelTestUtils.checkResultAndGetContents(ModelTestUtils.java:119)
      	at org.jboss.as.subsystem.test.MainKernelServicesImpl.readTransformedModel(MainKernelServicesImpl.java:135)
      	at org.jboss.as.subsystem.test.SubsystemTestDelegate.checkSubsystemModelTransformation(SubsystemTestDelegate.java:430)
      	at org.jboss.as.subsystem.test.AbstractSubsystemTest.checkSubsystemModelTransformation(AbstractSubsystemTest.java:222)
      	at org.jboss.as.clustering.jgroups.subsystem.JGroupsTransformersTestCase.testTransformation(JGroupsTransformersTestCase.java:165)
      	at org.jboss.as.clustering.jgroups.subsystem.JGroupsTransformersTestCase.testTransformerEAP720(JGroupsTransformersTestCase.java:135)
      	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.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	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.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      	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)
      
      [INFO]
      [INFO] Results:
      [INFO]
      [ERROR] Failures:
      [ERROR]   JGroupsTransformersTestCase.testTransformerEAP720:135->testTransformation:165->AbstractSubsystemTest.checkSubsystemModelTransformation:222 WFLYCTL0158: Operation handler failed: java.lang.RuntimeException: WFLYCTL0282: Model contains fields that are not known in definition, fields: [key-alias, key-store, key-credential-reference], path: [
          ("subsystem" => "jgroups"),
          ("stack" => "*"),
          ("protocol" => "*")
      ]
      [INFO]
      [ERROR] Tests run: 8, Failures: 1, Errors: 0, Skipped: 0
      

              kkhan1@redhat.com Kabir Khan
              rhn-engineering-rhusar Radoslav Husar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: