Skip to content

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

Merged
jkakavas merged 1 commit intoelastic:7.xfrom
jkakavas:backport-49477-7x
Feb 6, 2020
Merged

Cleanup test user in HLRC test (#49477)#51942
jkakavas merged 1 commit intoelastic:7.xfrom
jkakavas:backport-49477-7x

Conversation

@jkakavas
Copy link
Copy Markdown
Contributor

@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
@jkakavas jkakavas requested a review from tvernum February 5, 2020 13:37
@jkakavas jkakavas merged commit 5092d30 into elastic:7.x 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