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

Fix remover unit test #107711

Merged
merged 1 commit into from Apr 25, 2024
Merged

Fix remover unit test #107711

merged 1 commit into from Apr 25, 2024

Conversation

jfreden
Copy link
Contributor

@jfreden jfreden commented Apr 22, 2024

Fixes: #107699

When the api key remover did not run yet when the waitForInactiveApiKeysRemoverTriggerReadyAndGetClient is called, the expected behaviour is that it will return any of the nodes in the internal test cluster. In #107602 the default value for lastRun was updated from 0 to -1. This caused the waitForInactiveApiKeysRemoverTriggerReadyAndGetClient to not select any node since the condition is > -1 in the loop selecting a node.

@jfreden jfreden force-pushed the fix_api_key_ci branch 2 times, most recently from f978f65 to c9ab4d2 Compare April 23, 2024 07:30
@jfreden jfreden marked this pull request as ready for review April 23, 2024 07:32
@jfreden jfreden added >test Issues or PRs that are addressing/adding tests :Security/Security Security issues without another label labels Apr 23, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Security Meta label for security team label Apr 23, 2024
@jfreden jfreden merged commit b412ae6 into elastic:main Apr 25, 2024
14 checks passed
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 v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] ApiKeyIntegTests testApiKeyRemover failing
3 participants