-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Ensure enrich policy is immutable #43604
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
Conversation
This commit ensures the policy cannot be overwritten. An error is thrown if the policy exists. All tests have been updated accordingly.
|
Pinging @elastic/es-core-features |
martijnvg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one comment about testing. LGTM otherwise.
| .build(); | ||
| } | ||
|
|
||
| public void testImmutablePolicy() throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this test should be added to CommonEnrichRestTestCase instead of here?
The outcome should be the same whether security is enabled or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol i cant believe i put it there... blame my ailing mind.
|
@elasticmachine run elasticsearch-ci/2 |
|
@elasticmachine run elasticsearch-ci/1 |
|
@elasticmachine update branch |
|
@elasticmachine update branch |
|
@elasticmachine run elasticsearch-ci/2 |
This commit ensures the policy cannot be overwritten. An error is thrown if the policy exists. All tests have been updated accordingly.
This commit ensures the policy cannot be overwritten. An error is thrown
if the policy exists. All tests have been updated accordingly.