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

Add support for anonymousReadOnly in LdapProperties #11744

Closed
wants to merge 2 commits into from

Conversation

eddumelendez
Copy link
Contributor

See gh-11722

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 23, 2018
Copy link
Member

@snicoll snicoll left a comment

Choose a reason for hiding this comment

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

Thanks @eddumelendez - I've added a couple of comments.

@@ -60,6 +60,11 @@
*/
private Map<String, String> baseEnvironment = new HashMap<>();

/**
* Enable anonymous read only.
Copy link
Member

Choose a reason for hiding this comment

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

This description could use some love, something like

Whether read-only operations should use an anonymous environment.

import org.springframework.boot.test.util.TestPropertyValues;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
Copy link
Member

Choose a reason for hiding this comment

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

Can the refactoring of the test be done in a separate commit please? First that with the test unchanged and then an extra commit on top with the feature.

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Jan 23, 2018
@snicoll snicoll added type: enhancement A general enhancement priority: normal and removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Jan 24, 2018
@snicoll snicoll self-assigned this Jan 24, 2018
@snicoll snicoll added this to the 2.0.0.RC1 milestone Jan 24, 2018
snicoll added a commit that referenced this pull request Jan 24, 2018
@snicoll snicoll closed this in 960989c Jan 24, 2018
snicoll added a commit that referenced this pull request Jan 24, 2018
* pr/11744:
  Polish "Add support for anonymousReadOnly in LdapProperties"
  Add support for anonymousReadOnly in LdapProperties
  Move tests to use ApplicationContextRunner
@snicoll
Copy link
Member

snicoll commented Jan 24, 2018

Thanks @eddumelendez - regarding the test refactoring, that's not what I had in mind by "separate commit". What I meant here is first a commit that upgrades the existing tests and then one commit on top that implements the feature (with the relevant tests). I've restructured your PR with that and I've also polished it

@eddumelendez
Copy link
Contributor Author

@snicoll I'll take it into account next time. Thanks! 👍

@eddumelendez eddumelendez deleted the gh-11722 branch January 24, 2018 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants