[jboss-jira] [JBoss JIRA] (WFCORE-126) Add test cases to verify LDAP caching on security realms.

Darran Lofthouse (JIRA) issues at jboss.org
Thu Sep 25 06:22:02 EDT 2014


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

Darran Lofthouse commented on WFCORE-126:
-----------------------------------------

I have taken this one so I can enable the caches for the existing LDAP tests we already have within domain management, this should give us a reasonable level of coverage to cover things such as missing resource registration and obvious bugs like NPEs.

Contribution is still welcome for additional verification to test when the LDAP server is actually accessed.

I am not familiar enough myself with the ApacheDS interceptors to use those to test a cache miss but they could be one option.  Also changing the entries in the directory during tests could help verify what is and what is not cached.  e.g. delete an entry, change a password, change group membership and verify before and after evicting an entry from the cache.

> Add test cases to verify LDAP caching on security realms.
> ---------------------------------------------------------
>
>                 Key: WFCORE-126
>                 URL: https://issues.jboss.org/browse/WFCORE-126
>             Project: WildFly Core
>          Issue Type: Task
>          Components: Domain Management, Security
>            Reporter: Darran Lofthouse
>            Assignee: Darran Lofthouse
>             Fix For: 1.0.0.Alpha9
>
>
> The existing test cases are based on a statically defined set of LDIFs, testing of caching could consider a couple of options: -
>  1 - Interceptors within ApacheDS to verify if calls hit the directory.
>  2 - Updates to the directory that would affect the outcome of tests if there is a cache hit, tests can then be repeated with and without clearing the cache.
> Note: It would be beneficial for this to use different users and groups and maybe even different partitions so that test ordering does not affect the outcome if changes are made to the directory.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list