-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Adding tests for deprecation message when a REST wrapper implementing plugin presents (#66827) #73329
Conversation
@elasticmachine update branch |
-Test the right deprecation message logged when custom security plugin installs rest handler -Test no deprecation message logged when elastic Security plugin installs rest handler
Pinging @elastic/es-security (Team:Security) |
test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/XPackPluginTests.java
Outdated
Show resolved
Hide resolved
...ernalClusterTest/java/org/elasticsearch/xpack/security/SecurityPluginNoDeprecationTests.java
Outdated
Show resolved
Hide resolved
test/framework/src/main/java/org/elasticsearch/test/ESIntegTestCase.java
Outdated
Show resolved
Hide resolved
...ernalClusterTest/java/org/elasticsearch/xpack/security/SecurityPluginNoDeprecationTests.java
Outdated
Show resolved
Hide resolved
@elasticmachine update branch |
@elasticmachine update branch |
-Test the right deprecation message logged when custom security plugin installs rest handler -Test no deprecation message logged when elastic Security plugin installs rest handler
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.
Can you update the name of the PR to something that is meaningful by itself.
The reader should not be required to know what PR #73249 is in order to know what this change is about.
server/src/test/java/org/elasticsearch/action/ActionModuleTests.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/Security.java
Outdated
Show resolved
Hide resolved
@elasticmachine update branch |
|
server/src/test/java/org/elasticsearch/action/ActionModuleTests.java
Outdated
Show resolved
Hide resolved
@elasticmachine update branch |
Sorry, forgot to commit half of the change -ლ |
@@ -234,4 +228,11 @@ public void testCustomRestWrapperDeprecationMessage() { | |||
public void handleRequest(RestRequest request, RestChannel channel, NodeClient client) throws Exception { | |||
} | |||
} | |||
|
|||
class SecPlugin implements ActionPlugin { |
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.
Nit: I don't think the abbreviation helps here - why Sec
rather than Security
?
@elasticmachine update branch |
In 7.13 we added a deprecation message when a security REST
wrapper implementing plugin presents.
This change adding tests to:
-Test the right deprecation message logged when custom
security plugin installs rest handler
-Test no deprecation message logged when elastic Security
plugin installs rest handler