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

Cleanup test user in HLRC test (#49477) #51943

Merged
merged 1 commit into from
Feb 6, 2020

Conversation

jkakavas
Copy link
Member

@jkakavas jkakavas commented Feb 5, 2020

SecurityIT.testGetUser creates a user for testing purposes, but did
not delete the user at the end of the test. This could leave the
cluster in an unexpected state for other tests.

This commit:

  • Deletes the user at the end of testGetUser
  • Adds the test-name as metadata to the users that are created in SecurityIT
    so that their origin is clear if they do interfere with other tests
  • Enables SecurityDocumentationIT.testGetUsers on the expectation that
    the new cleanup step will resolve the unreliability of that test.

Relates: #48440

SecurityIT.testGetUser creates a user for testing purposes, but did
not delete the user at the end of the test. This could leave the
cluster in an unexpected state for other tests.

This commit:
- Deletes the user at the end of `testGetUser`
- Adds the test-name as metadata to the users that are created in `SecurityIT`
  so that their origin is clear if they do interfere with other tests
- Enables SecurityDocumentationIT.testGetUsers on the expectation that
  the new cleanup step will resolve the unreliability of that test.

Relates: elastic#48440
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.

Thanks, somehow I missed the backport-pending label on the original PR.

@jkakavas jkakavas merged commit 67a264b into elastic:7.6 Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants