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

[Test] Enure test assertions are called for API key creation #74431

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

ywangd
Copy link
Member

@ywangd ywangd commented Jun 22, 2021

Since #74165, API key creation has one additional async layer. Hence the
test assertions are now executed asynchronously and may not get called
in time before the test ends. This PR ensures the assertions are always
called by waiting for a flag.

Resolves: #74427

Since elastic#74165, API key creation has one additional async layer. Hence the
test assertions are now executed asynchronously and may not get called
in time before the test ends. This PR ensures the assertions are always
called by waiting for a flag.

Resolves: elastic#74427
@ywangd ywangd added >test Issues or PRs that are addressing/adding tests :Security/Security Security issues without another label v8.0.0 v7.14.0 labels Jun 22, 2021
@ywangd ywangd requested a review from tvernum June 22, 2021 14:03
@elasticmachine elasticmachine added the Team:Security Meta label for security team label Jun 22, 2021
@elasticmachine
Copy link
Collaborator

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

@ywangd ywangd merged commit 092e9bc into elastic:master Jun 23, 2021
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Jun 23, 2021
…#74431)

Since elastic#74165, API key creation has one additional async layer. Hence the
test assertions are now executed asynchronously and may not get called
in time before the test ends. This PR ensures the assertions are always
called by waiting for a flag.
ywangd added a commit that referenced this pull request Jun 24, 2021
…#74527)

Since #74165, API key creation has one additional async layer. Hence the
test assertions are now executed asynchronously and may not get called
in time before the test ends. This PR ensures the assertions are always
called by waiting for a flag.
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 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] ApiKeyServiceTests testCreateApiKeyWillUseBulkAction failing
4 participants