Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

made ldap server test resource reusable #11044

Merged
merged 1 commit into from
Jul 29, 2020
Merged

made ldap server test resource reusable #11044

merged 1 commit into from
Jul 29, 2020

Conversation

hartimcwildfly
Copy link

So quarkus users can reuse the class LdapServerTestResource. Example:

public class SdsLdapServerTestResource extends LdapServerTestResource {

    public SdsLdapServerTestResource() throws LDAPException {
        super();
        System.out.println("Applying additional ldap changes!");
        this.ldapServer.applyChangesFromLDIF(new LDIFReader(ClassLoader.getSystemResourceAsStream("add-ldap-roles.ldif")));
    }
}

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks!

@gsmet gsmet merged commit 4013241 into quarkusio:master Jul 29, 2020
@gsmet gsmet added this to the 1.7.0 - master milestone Jul 29, 2020
@hartimcwildfly hartimcwildfly deleted the make-ldap-test-resource-reusable branch July 29, 2020 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants