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

JmxControlledStateNotificationsTestCase test cases fail with security manager on Java 11

    XMLWordPrintable

Details

    • Hide

      set Java 11
      cd testsuite/manualmode or testsuite/standalone
      mvn clean test -Dtest=JmxControlledStateNotificationsTestCase -Dsecurity.manager

      Show
      set Java 11 cd testsuite/manualmode or testsuite/standalone mvn clean test -Dtest=JmxControlledStateNotificationsTestCase -Dsecurity.manager

    Description

      Three JmxControlledStateNotificationsTestCase test cases fail with security manager on Java 11 due to missing permissions:

      [ERROR] Failure when constructing test  Time elapsed: 0.004 s  <<< FAILURE!
      java.lang.AssertionError: 
      {"outcome" => "failed","failure-description" => {"WFLYCTL0080: Failed services" => {"test.deployment.jmx" => "java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.io.FilePermission\" \"/home/okotek/test/asts-core-intermit/testsuite/standalone/target/notifications/data/jmx-facade\" \"read\")\" in code source \"(vfs:/content/test-jmx-notifications-deployment.jar <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.test-jmx-notifications-deployment.jar\" from Service Module Loader\")
          Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.io.FilePermission\" \"/home/okotek/test/asts-core-intermit/testsuite/standalone/target/notifications/data/jmx-facade\" \"read\")\" in code source \"(vfs:/content/test-jmx-notifications-deployment.jar <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.test-jmx-notifications-deployment.jar\" from Service Module Loader\")"}},"rolled-back" => true}
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.jboss.as.test.integration.management.rbac.RbacUtil.checkOperationResult(RbacUtil.java:115)
      	at org.jboss.as.test.integration.management.rbac.RbacUtil.executeOperation(RbacUtil.java:100)
      	at org.wildfly.test.jmx.JMXListenerDeploymentSetupTask.deploy(JMXListenerDeploymentSetupTask.java:97)
      	at org.wildfly.test.jmx.JMXListenerDeploymentSetupTask.setup(JMXListenerDeploymentSetupTask.java:66)
      	at org.wildfly.core.testrunner.WildflyTestRunner.runSetupTasks(WildflyTestRunner.java:121)
      	at org.wildfly.core.testrunner.WildflyTestRunner.run(WildflyTestRunner.java:107)
      	at org.junit.runners.Suite.runChild(Suite.java:128)
      ...
      

      The failing tests:

      • org.jboss.as.test.integration.domain.events.JmxControlledStateNotificationsTestCase
      • org.wildfly.core.test.standalone.mgmt.events.JmxControlledStateNotificationsTestCase
      • org.jboss.as.test.integration.jmx.JmxControlledStateNotificationsTestCase

      Attachments

        Issue Links

          Activity

            People

              ehugonne1@redhat.com Emmanuel Hugonnet
              okotek@redhat.com Ondrej Kotek
              Ondrej Kotek Ondrej Kotek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: