Simplify Configuring Operational Attributes in Embedded Test Servers #938
Labels
in: test
status: ideal-for-contribution
An issue that we actively are looking for someone to help us with
type: enhancement
Milestone
It would be nice if more of the underlying configuration settings were exposed for UnboundID's
InMemoryDirectoryServerConfig
. Specifically, it would be nice to add a custom operation interceptor so that test operational attributes can be added.This would make testing for issues like #446 more flexible.
Instead of exposing support specifically for operational interceptors, though, it would be more flexible to expose a setter in
unboundid.EmbeededLdapServerFactoryBean
for post-processing theInMemoryDirectoryServerConfig
like so:Then, UnboundID's
EmbeddedLdapServer
could invoke that before starting the directory service, like so:config.setEnforceAttributeSyntaxCompliance(true); + postProcessor.accept(config); Entry entry ...
Tests should also be added to demonstrate that the constructed
EmbeddedLdapServer
correctly uses the configured post-processor.The text was updated successfully, but these errors were encountered: