[ 
https://issues.apache.org/jira/browse/KARAF-5845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16709344#comment-16709344
 ] 

ASF GitHub Bot commented on KARAF-5845:
---------------------------------------

jbonofre closed pull request #680: [KARAF-5845] Disable 
testJMXSecurityAsManager and testJMXSecurityAsAdmin as they randomly fail on 
Jenkins
URL: https://github.com/apache/karaf/pull/680
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/itests/test/src/test/java/org/apache/karaf/itests/JMXSecurityTest.java 
b/itests/test/src/test/java/org/apache/karaf/itests/JMXSecurityTest.java
index ee7630e538..f160a52298 100644
--- a/itests/test/src/test/java/org/apache/karaf/itests/JMXSecurityTest.java
+++ b/itests/test/src/test/java/org/apache/karaf/itests/JMXSecurityTest.java
@@ -49,6 +49,7 @@
 import javax.management.remote.JMXConnector;
 
 import org.apache.karaf.jaas.boot.principal.RolePrincipal;
+import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.ops4j.pax.exam.Configuration;
@@ -126,6 +127,7 @@ public void testJMXSecurityAsViewer() throws Exception {
     }
 
     @Test
+    @Ignore("Randomly fails on Jenkins. See KARAF-5845")
     public void testJMXSecurityAsManager() throws Exception {
         String suffix = "_" + counter.incrementAndGet();
         String managerUser = "managerUser" + System.currentTimeMillis() + 
suffix;
@@ -166,6 +168,7 @@ public void testJMXSecurityAsManager() throws Exception {
     }
 
     @Test
+    @Ignore("Randomly fails on Jenkins. See KARAF-5845")
     public void testJMXSecurityAsAdmin() throws Exception {
         JMXConnector connector = getJMXConnector();
         MBeanServerConnection connection = 
connector.getMBeanServerConnection();


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> JMXSecurityTest.testJMXSecurityAs[Admin|Manager] is flaky
> ---------------------------------------------------------
>
>                 Key: KARAF-5845
>                 URL: https://issues.apache.org/jira/browse/KARAF-5845
>             Project: Karaf
>          Issue Type: Test
>          Components: karaf
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>              Labels: itest
>             Fix For: 4.2.2
>
>
> {{JMXSecurityTest.testJMXSecurityAsManager}} randomly fails on Jenkins:
> {code}
> java.lang.AssertionError: expected:<y> but was:<null>
>       at 
> org.apache.karaf.itests.JMXSecurityTest.testKarafConfigAdminMBean(JMXSecurityTest.java:356)
>       at 
> org.apache.karaf.itests.JMXSecurityTest.testKarafConfigAdminMBean(JMXSecurityTest.java:337)
>       at 
> org.apache.karaf.itests.JMXSecurityTest.testJMXSecurityAsManager(JMXSecurityTest.java:164)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to