Skip to content

Conversation

@ali-jalaal
Copy link
Contributor

Add OPAAutoConfiguration to auto-configure OPAClient and OPAAuthorizationManager beans.

Implements #22

Copy link
Member

@anderseknert anderseknert left a comment

Choose a reason for hiding this comment

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

This is terrific, thanks! 😃 Just a question but nothing blocking as far as I can see.

[externally](https://docs.spring.io/spring-boot/reference/features/external-config.html), e.g. via
`application.properties`, `application.yaml`, system properties, or environment variables.

Example `application.yaml` to modify properties:
Copy link
Member

Choose a reason for hiding this comment

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

Nice!

private Map<String, OPAAuthorizationManager> opaAuthorizationManagers;

@Test
public void test() {
Copy link
Member

Choose a reason for hiding this comment

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

Is it convention to name the tests test, or could we use something more descriptive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At first I used simple test name since there was 1 test method per class, but as you suggested better to use more descriptive names. Just updated. :)

…orizationManager` beans - rename test methods
@anderseknert anderseknert merged commit 3c0e2aa into open-policy-agent:main Feb 19, 2025
1 check passed
@anderseknert
Copy link
Member

Thanks! 👏

@ali-jalaal ali-jalaal deleted the add-opa_auto_configuration branch February 19, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants