[jboss-jira] [JBoss JIRA] (WFLY-7309) Make the authentication configurable in the testsuite

RH Bugzilla Integration (JIRA) issues at jboss.org
Wed Jul 12 13:36:00 EDT 2017


    [ https://issues.jboss.org/browse/WFLY-7309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434872#comment-13434872 ] 

RH Bugzilla Integration commented on WFLY-7309:
-----------------------------------------------

Fedor Gavrilov <fgavrilo at redhat.com> changed the Status of [bug 1384542|https://bugzilla.redhat.com/show_bug.cgi?id=1384542] from POST to MODIFIED

> Make the authentication configurable in the testsuite 
> ------------------------------------------------------
>
>                 Key: WFLY-7309
>                 URL: https://issues.jboss.org/browse/WFLY-7309
>             Project: WildFly
>          Issue Type: Bug
>          Components: Test Suite
>    Affects Versions: 10.1.0.Final
>            Reporter: Filippe Spolti
>            Assignee: Filippe Spolti
>            Priority: Optional
>             Fix For: 11.0.0.Alpha1
>
>
> Actually some tests cases fails when running against a remote eap instance. 
> In this specific case 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:
> {code:java}
>     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();
>     }
> {code}
> To:
> {code:java}
>     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();
>     }
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list