Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,6 @@ tests:
- class: org.elasticsearch.xpack.search.AsyncSearchConcurrentStatusIT
method: testConcurrentStatusFetchWhileTaskCloses
issue: https://github.com/elastic/elasticsearch/issues/138543
- class: org.elasticsearch.xpack.core.security.authc.AuthenticationTests
method: testMaybeRewriteForOlderVersionWithCrossClusterAccessRewritesAuthenticationInMetadata
issue: https://github.com/elastic/elasticsearch/issues/139167
- class: org.elasticsearch.smoketest.MlWithSecurityIT
method: test {yaml=ml/sparse_vector_search/Test sparse_vector search with query vector and pruning config}
issue: https://github.com/elastic/elasticsearch/issues/139196
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,6 @@ public void testBwcWithStoredAuthenticationHeaders() throws IOException {
}

public void testMaybeRewriteForOlderVersionWithCrossClusterAccessRewritesAuthenticationInMetadata() throws IOException {
randomTransportVersion(Authentication.VERSION_CROSS_CLUSTER_ACCESS);
final TransportVersion version = randomTransportVersion(Authentication.VERSION_CROSS_CLUSTER_ACCESS);
final Authentication innerAuthentication = AuthenticationTestHelper.builder().transportVersion(version).build();
final Authentication authentication = AuthenticationTestHelper.builder()
Expand All @@ -883,7 +882,9 @@ public void testMaybeRewriteForOlderVersionWithCrossClusterAccessRewritesAuthent
new CrossClusterAccessSubjectInfo(innerAuthentication, RoleDescriptorsIntersection.EMPTY)
)
.build();
final TransportVersion maybeOldVersion = randomTransportVersion(Authentication.VERSION_CROSS_CLUSTER_ACCESS);
final TransportVersion maybeOldVersion = Authentication.VERSION_CROSS_CLUSTER_ACCESS == version
? version
: randomTransportVersionBetween(Authentication.VERSION_CROSS_CLUSTER_ACCESS, version);

final Authentication actual = authentication.maybeRewriteForOlderVersion(maybeOldVersion);

Expand Down