Skip to content

Conversation

@richard-dennehy
Copy link
Contributor

Fixes #133328

The primary issue is that in this particular code path, SecurityIndexManager.IndexState.checkIndexVersionThenExecute gets invoked but isn't stubbed; this results in the provided callback never getting invoked, and the test hangs waiting for it to run.

It looks like the issue was introduced here; that commit replaces the default mock SecurityIndexManager.IndexState - which provides an implementation of checkIndexVersionThenExecute - with another mock which doesn't

@richard-dennehy richard-dennehy added >test Issues or PRs that are addressing/adding tests :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Security Meta label for security team labels Aug 22, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@richard-dennehy richard-dennehy added auto-backport Automatically create backport pull requests when merged v9.1.4 labels Aug 22, 2025
Copy link
Contributor

@jfreden jfreden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@richard-dennehy richard-dennehy merged commit 9848a60 into elastic:main Aug 26, 2025
39 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.1

richard-dennehy added a commit to richard-dennehy/elasticsearch that referenced this pull request Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Security Meta label for security team >test Issues or PRs that are addressing/adding tests v9.1.4 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] AuthenticationServiceTests testInvalidToken failing

3 participants