From 7bd80c866c25cca813a5ee977199333491b9fd7d Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Tue, 10 Sep 2024 09:29:21 -0600 Subject: [PATCH] Fix ProfileIT --- .../org/elasticsearch/xpack/security/profile/ProfileIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/security/qa/profile/src/javaRestTest/java/org/elasticsearch/xpack/security/profile/ProfileIT.java b/x-pack/plugin/security/qa/profile/src/javaRestTest/java/org/elasticsearch/xpack/security/profile/ProfileIT.java index b11c8fd39fe2c..cbf70b7735863 100644 --- a/x-pack/plugin/security/qa/profile/src/javaRestTest/java/org/elasticsearch/xpack/security/profile/ProfileIT.java +++ b/x-pack/plugin/security/qa/profile/src/javaRestTest/java/org/elasticsearch/xpack/security/profile/ProfileIT.java @@ -204,7 +204,7 @@ public void testGetProfiles() throws IOException { expectWarnings( "this request accesses system indices: [.security-profile-8], but in a future major version, " + "direct access to system indices will be prevented by default" - ) + ).toBuilder().addHeader("X-elastic-product-origin", "elastic") ); assertOK(adminClient().performRequest(indexRequest)); } @@ -515,7 +515,7 @@ public void testXpackUsageOutput() throws IOException { expectWarnings( "this request accesses system indices: [.security-profile-8], but in a future major version, " + "direct access to system indices will be prevented by default" - ) + ).toBuilder().addHeader("X-elastic-product-origin", "elastic") ); assertOK(adminClient().performRequest(indexRequest));