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

Adding tests for deprecation message when a REST wrapper implementing plugin presents (#66827) #73329

Merged
merged 13 commits into from
Jun 16, 2021

Conversation

BigPandaToo
Copy link
Contributor

@BigPandaToo BigPandaToo commented May 24, 2021

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

@BigPandaToo BigPandaToo added the >test Issues or PRs that are addressing/adding tests label May 24, 2021
@BigPandaToo BigPandaToo marked this pull request as draft May 24, 2021 14:06
@BigPandaToo
Copy link
Contributor Author

@elasticmachine update branch

elasticmachine and others added 2 commits May 24, 2021 12:30
-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
@BigPandaToo BigPandaToo marked this pull request as ready for review May 26, 2021 19:22
@BigPandaToo BigPandaToo added :Security/Security Security issues without another label Team:Security Meta label for security team v7.14.0 labels May 26, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

@BigPandaToo BigPandaToo requested a review from tvernum May 26, 2021 19:23
@tvernum
Copy link
Contributor

tvernum commented May 27, 2021

@elasticmachine update branch

@BigPandaToo
Copy link
Contributor Author

@elasticmachine update branch

elasticmachine and others added 2 commits May 27, 2021 04:43
-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
Copy link
Contributor

@tvernum tvernum left a 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.

@BigPandaToo
Copy link
Contributor Author

@elasticmachine update branch

@BigPandaToo BigPandaToo requested a review from tvernum June 13, 2021 21:07
@tvernum
Copy link
Contributor

tvernum commented Jun 15, 2021

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.

@BigPandaToo
Copy link
Contributor Author

@elasticmachine update branch

@BigPandaToo BigPandaToo changed the title Adding tests to #73249 change Adding tests for deprecation message if a REST wrapper implementing plugin presents (#66827) Jun 15, 2021
@BigPandaToo BigPandaToo changed the title Adding tests for deprecation message if a REST wrapper implementing plugin presents (#66827) Adding tests for deprecation message when a REST wrapper implementing plugin presents (#66827) Jun 15, 2021
@BigPandaToo
Copy link
Contributor Author

Sorry, forgot to commit half of the change -ლ

@BigPandaToo BigPandaToo requested a review from tvernum June 15, 2021 14:35
@@ -234,4 +228,11 @@ public void testCustomRestWrapperDeprecationMessage() {
public void handleRequest(RestRequest request, RestChannel channel, NodeClient client) throws Exception {
}
}

class SecPlugin implements ActionPlugin {
Copy link
Contributor

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 ?

@BigPandaToo
Copy link
Contributor Author

@elasticmachine update branch

@BigPandaToo BigPandaToo merged commit e25a7e4 into elastic:7.x Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/Security Security issues without another label Team:Security Meta label for security team >test Issues or PRs that are addressing/adding tests v7.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants