Skip to content

[CI] ServiceAccountIT testAuthenticateShouldNotFallThroughInCaseOfFailure failing #120902

@elasticsearchmachine

Description

@elasticsearchmachine

Build Scans:

Reproduction Line:

./gradlew ":x-pack:plugin:security:qa:service-account:javaRestTest" --tests "org.elasticsearch.xpack.security.authc.service.ServiceAccountIT.testAuthenticateShouldNotFallThroughInCaseOfFailure" -Dtests.seed=175B5E764D4432B -Dtests.locale=kxv-Deva -Dtests.timezone=Asia/Tomsk -Druntime.java=23 

Applicable branches:
8.x

Reproduces locally?:
N/A

Failure History:
See dashboard

Failure Message:

java.lang.AssertionError: Expected: a string containing "no such index [.security]" but: was "method [GET], host [https://[::1]:40637], URI [_security/_authenticate], status line [HTTP/1.1 401 Unauthorized] {"error":{"root_cause":[{"type":"security_exception","reason":"failed to authenticate service account [elastic/fleet-server] with token name [token1]","header":{"WWW-Authenticate":["Basic realm=\"security\", charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}}],"type":"security_exception","reason":"failed to authenticate service account [elastic/fleet-server] with token name [token1]","header":{"WWW-Authenticate":["Basic realm=\"security\", charset=\"UTF-8\"","Bearer realm=\"security\"","ApiKey"]}},"status":401}" 

Issue Reasons:

  • [8.x] 5 failures in test testAuthenticateShouldNotFallThroughInCaseOfFailure (3.0% fail rate in 165 executions)
  • [8.x] 2 failures in step part-4 (3.8% fail rate in 53 executions)
  • [8.x] 2 failures in pipeline elasticsearch-pull-request (3.9% fail rate in 51 executions)

Note:
This issue was created using new test triage automation. Please report issues or feedback to es-delivery.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions