Skip to content

Remove all "user" related methods from HLRC#84011

Merged
tvernum merged 5 commits intoelastic:masterfrom
tvernum:hlrc/remove-user-methods
Feb 16, 2022
Merged

Remove all "user" related methods from HLRC#84011
tvernum merged 5 commits intoelastic:masterfrom
tvernum:hlrc/remove-user-methods

Conversation

@tvernum
Copy link
Copy Markdown
Contributor

@tvernum tvernum commented Feb 16, 2022

Removes the following methods from the SecurityClient component of the High Level Rest Client

  • putUser
  • deleteUser
  • changePassword
  • authenticate

As part of this change, I renamed the SecurityClientTestHelper class to TestSecurityClient and made it a real object rather than a set of utility methods.

This was needed because different tests need different RequestOptions objects, but passing it into every method made it cumbersome.
The code is clearer if we use a field in the test client itself.

Relates: #83423

@elasticmachine elasticmachine added Team:Security Meta label for security team Team:Data Management (obsolete) DO NOT USE. This team no longer exists. labels Feb 16, 2022
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Contributor

@albertzaharovits albertzaharovits left a comment

Choose a reason for hiding this comment

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

LGTM

@tvernum tvernum merged commit f9f6ec9 into elastic:master Feb 16, 2022
@tvernum tvernum mentioned this pull request Feb 16, 2022
66 tasks
probakowski pushed a commit to probakowski/elasticsearch that referenced this pull request Feb 23, 2022
Removes the following methods from the SecurityClient component
of the High Level Rest Client

- putUser
- deleteUser
- changePassword
- authenticate

As part of this change, I renamed the SecurityClientTestHelper class
to TestSecurityClient and made it a real object rather than a set of
utility methods.

This was needed because different tests need different RequestOptions
objects, but passing it into every method made it cumbersome.
The code is clearer if we use a field in the test client itself. 

Relates: elastic#83423
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Security/Security Security issues without another label Team:Data Management (obsolete) DO NOT USE. This team no longer exists. Team:Security Meta label for security team v8.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants