Skip to content

[Test] Avoid use the same token name in different tests #74280

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

Merged
merged 4 commits into from
Jun 22, 2021

Conversation

ywangd
Copy link
Member

@ywangd ywangd commented Jun 18, 2021

The name token1 is used in both testGetServiceAccountCredentials and testCreateServiceAccountToken. There are times when the two tests are not fully isolated. This leads to test failure because indexing of the service token document must be an op_create. This PR fixes the failure by using a different token name in testGetServiceAccountCredentials.

Resolves: #74278

@ywangd ywangd added >test Issues or PRs that are addressing/adding tests :Security/Client Security in clients (Transport, Rest) v8.0.0 v7.14.0 labels Jun 18, 2021
@ywangd ywangd requested a review from tvernum June 18, 2021 07:37
@elasticmachine elasticmachine added the Team:Security Meta label for security team label Jun 18, 2021
@elasticmachine
Copy link
Collaborator

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

@ywangd
Copy link
Member Author

ywangd commented Jun 18, 2021

The failure is genuine but not related to my changes. I raised #74282

@ywangd ywangd merged commit 19e58c2 into elastic:master Jun 22, 2021
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Jun 22, 2021
The name token1 is used in both testGetServiceAccountCredentials and
testCreateServiceAccountToken. There are times when the two tests are not fully
isolated. This leads to test failure because indexing of the service token
document must be an op_create. This PR fixes the failure by using a different
token name in testGetServiceAccountCredentials.
ywangd added a commit that referenced this pull request Jun 22, 2021
)

The name token1 is used in both testGetServiceAccountCredentials and
testCreateServiceAccountToken. There are times when the two tests are not fully
isolated. This leads to test failure because indexing of the service token
document must be an op_create. This PR fixes the failure by using a different
token name in testGetServiceAccountCredentials.
ywangd added a commit that referenced this pull request Jun 22, 2021
ywangd added a commit that referenced this pull request Jun 22, 2021
ywangd added a commit that referenced this pull request Jun 23, 2021
ywangd added a commit that referenced this pull request Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/Client Security in clients (Transport, Rest) Team:Security Meta label for security team >test Issues or PRs that are addressing/adding tests v7.14.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] SecurityDocumentationIT testGetServiceAccountCredentials failing
4 participants