Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Simplify Configuring Operational Attributes in Embedded Test Servers #938

Open
jzheaux opened this issue Oct 10, 2024 · 0 comments
Open
Labels
in: test status: ideal-for-contribution An issue that we actively are looking for someone to help us with type: enhancement
Milestone

Comments

@jzheaux
Copy link
Contributor

jzheaux commented Oct 10, 2024

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 the InMemoryDirectoryServerConfig like so:

public void setDirectoryServerConfigurationPostProcessor(Consumer<InMemoryDirectoryServerConfig> postProcessor)

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.

@jzheaux jzheaux added type: enhancement in: test status: ideal-for-contribution An issue that we actively are looking for someone to help us with labels Oct 10, 2024
@jzheaux jzheaux added this to the 3.3.0-M1 milestone Oct 10, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
in: test status: ideal-for-contribution An issue that we actively are looking for someone to help us with type: enhancement
Projects
None yet
Development

No branches or pull requests

1 participant