Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-11231

Remove jboss-ejb-client.properties and wildfly-config.xml from default locations in the test suite

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • None
    • EJB, Test Suite
    • None

      Currently, the test suite contains

      testsuite/integration/basic/src/test/resources/jboss-ejb-client.properties
      testsuite/integration/basic/src/test/resources/wildfly-config.xml
      testsuite/integration/legacy-ejb-client/src/test/resources/jboss-ejb-client.properties
      testsuite/integration/manualmode/src/test/resources/jboss-ejb-client.properties
      

      This means that all @RunAsClient tests pick them up by default and it's very difficult to add new tests which need to use the same configuration files but with different contents than the default ones, without negatively affecting other tests.

      For example, it's not easily possible to make a test completely ignore the jboss-ejb-client.properties because setting the jboss.ejb.client.properties.file.path property to an empty string still makes the EJB client use the file from the default location (it is possible to switch to a different valid jboss-ejb-client.properties but not to just tell the test to not use any at all).

      No such file should be present in the location from which it is picked up by default, tests which need such file should set up paths to them (for example, using wildfly.config.url and jboss.ejb.client.properties.file.path system properties).

            yborgess1@redhat.com Yeray Borges Santana
            jmartisk@redhat.com Jan Martiska
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: