directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn McKinney (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FC-57) Fortress testCreateSession fails negative test
Date Wed, 11 Feb 2015 00:42:11 GMT

     [ https://issues.apache.org/jira/browse/FC-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shawn McKinney resolved FC-57.
------------------------------
    Resolution: Fixed

This was a serious issue:  The authenticate dao method was not throwing security exception
on bad password!!

This regression error appeared somewhere after the apache ldap api migration.  The good news
is the fortress core junit tests catch it (which is why we test automate!)  But it took our
friends from Penn St to point it out that test failure before it caught my attention and got
fixed.


> Fortress testCreateSession fails negative test
> ----------------------------------------------
>
>                 Key: FC-57
>                 URL: https://issues.apache.org/jira/browse/FC-57
>             Project: FORTRESS
>          Issue Type: Bug
>    Affects Versions: 1.0.0-RC39
>            Reporter: Shawn McKinney
>             Fix For: 1.0.0-RC40
>
>
> when running fortress junit tests, this failure occurs:
> Tests run: 83, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 296.562 sec <<<
FAILURE! - in org.apache.directory.fortress.core.rbac.FortressJUnitTest
> testCreateSession(org.apache.directory.fortress.core.rbac.AccessMgrImplTest) Time elapsed:
0.065 sec <<< FAILURE!
> junit.framework.AssertionFailedError: org.apache.directory.fortress.core.rbac.AccessMgrImplTest.createSessions
failed negative test
> at junit.framework.Assert.fail(Assert.java:57)
> at junit.framework.TestCase.fail(TestCase.java:227)
> at org.apache.directory.fortress.core.rbac.AccessMgrImplTest.createSessions(AccessMgrImplTest.java:382)
> at org.apache.directory.fortress.core.rbac.AccessMgrImplTest.testCreateSession(AccessMgrImplTest.java:340)
> Results :
> Failed tests: 
> AccessMgrImplTest.testCreateSession:340->createSessions:382 org.apache.directory.fortress.core.rbac.AccessMgrImplTest.createSessions
failed negative test
> Tests run: 83, Failures: 1, Errors: 0, Skipped: 0



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message