[jboss-jira] [JBoss JIRA] (WFLY-6467) Some tests from "org.jboss.as.test.integration.security.loginmodules.*" fail with security manager

Ivo Studensky (JIRA) issues at jboss.org
Thu Apr 7 07:51:00 EDT 2016


     [ https://issues.jboss.org/browse/WFLY-6467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivo Studensky reassigned WFLY-6467:
-----------------------------------

    Assignee: Ivo Studensky  (was: Jan Tymel)


> Some tests from "org.jboss.as.test.integration.security.loginmodules.*" fail with security manager
> --------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-6467
>                 URL: https://issues.jboss.org/browse/WFLY-6467
>             Project: WildFly
>          Issue Type: Bug
>          Components: Test Suite
>            Reporter: Jan Tymel
>            Assignee: Ivo Studensky
>
> *org.jboss.as.test.integration.security.loginmodules.CustomLoginModuleTestCase#testSuccessfulAuth*
> *org.jboss.as.test.integration.security.loginmodules.CustomLoginModuleTestCase#testUnsuccessfulAuth*
> {{./integration-tests.sh -DtestLogToFile=false -Dts.noSmoke -Dts.basic -Dtest=org.jboss.as.test.integration.security.loginmodules.CustomLoginModuleTestCase -Dsecurity.manager}}
> Fail with:
> {code}
> java.lang.AssertionError: expected:<302> but was:<200>
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.junit.Assert.failNotEquals(Assert.java:834)
> 	at org.junit.Assert.assertEquals(Assert.java:645)
> 	at org.junit.Assert.assertEquals(Assert.java:631)
> 	at org.jboss.as.test.integration.security.loginmodules.CustomLoginModuleTestCase.makeCall(CustomLoginModuleTestCase.java:202)
> 	at org.jboss.as.test.integration.security.loginmodules.CustomLoginModuleTestCase.testSuccessfulAuth(CustomLoginModuleTestCase.java:153)
> {code}
> *org.jboss.as.test.integration.security.loginmodules.RunAsLoginModuleTestCase#testCleartextPassword1*
> {{./integration-tests.sh -DtestLogToFile=false -Dts.noSmoke -Dts.basic -Dtest=org.jboss.as.test.integration.security.loginmodules.RunAsLoginModuleTestCase#testCleartextPassword1 -Dsecurity.manager}}
> Fails with:
> {code}
> java.lang.AssertionError: An unexpected response: <html><head><title>Error</title></head><body>Unauthorized</body></html>
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.junit.Assert.assertTrue(Assert.java:41)
> 	at org.jboss.as.test.integration.security.loginmodules.RunAsLoginModuleTestCase.testCleartextPassword1(RunAsLoginModuleTestCase.java:172)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list