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

[QA](7.0.z) Make the authentication configurable in the eap testsuite

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Optional
    • 7.0.8.CR1, 7.0.8.GA
    • 7.0.0.GA
    • Test Suite
    • EAP 7.0.8

    Description

      Actually some tests cases of EAP's testsuite fails when running against a remote eap instance.

      In this specific case, EAP 6/7 instances running on Openshift v3.
      In order to get those tests working we have to modify some classes to configure the authentication.
      Example:

      org.jboss.as.test.integration.ee.jmx.property.JMXPropertyEditorsTestCase, had to change this:

          private MBeanServerConnection getMBeanServerConnection() throws IOException {
              final String address = managementClient.getMgmtAddress()+":"+managementClient.getMgmtPort();
              connector = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:http-remoting-jmx://"+address));
              return connector.getMBeanServerConnection();
      
          }
      

      To:

          private MBeanServerConnection getMBeanServerConnection() throws IOException {
              HashMap<String, String[]> propEnv = new HashMap<String, String[]>();
              String[] credentials = {  System.getProperty("jboss.management.user",""), System.getProperty("jboss.management.password","") };
              propEnv.put(JMXConnector.CREDENTIALS, credentials);
              final String address = managementClient.getMgmtAddress()+":"+managementClient.getMgmtPort();
              connector = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:http-remoting-jmx://"+address),propEnv);
              return connector.getMBeanServerConnection();
          }
      

      Could these kind of authentication being configurable?
      It is important to us because this allows the tests to be executed against the docker images running in openshift.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-fspolti Filippe Spolti
              rhn-support-fspolti Filippe Spolti
              Peter Mackay Peter Mackay
              Peter Mackay Peter Mackay
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: