Skip to content

Commit 6cf8a40

Browse files
[CI] Fix test DeprecatedLoggingAuditTrailTests
CI for #34475 ran successfuly but 6.x did not had #33894 merged in yet. Closes #34627
1 parent d071863 commit 6cf8a40

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/audit/logfile/DeprecatedLoggingAuditTrailTests.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
import static org.mockito.Mockito.mock;
6262
import static org.mockito.Mockito.when;
6363

64-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/34627")
6564
public class DeprecatedLoggingAuditTrailTests extends ESTestCase {
6665

6766
enum RestContent {
@@ -131,9 +130,9 @@ protected String expectedMessage() {
131130
public void init() throws Exception {
132131
includeRequestBody = randomBoolean();
133132
settings = Settings.builder()
134-
.put("xpack.security.audit.logfile.prefix.emit_node_host_address", randomBoolean())
135-
.put("xpack.security.audit.logfile.prefix.emit_node_host_name", randomBoolean())
136-
.put("xpack.security.audit.logfile.prefix.emit_node_name", randomBoolean())
133+
.put(LoggingAuditTrail.EMIT_HOST_ADDRESS_SETTING.getKey(), randomBoolean())
134+
.put(LoggingAuditTrail.EMIT_HOST_NAME_SETTING.getKey(), randomBoolean())
135+
.put(LoggingAuditTrail.EMIT_NODE_NAME_SETTING.getKey(), randomBoolean())
137136
.put("xpack.security.audit.logfile.events.emit_request_body", includeRequestBody)
138137
.build();
139138
localNode = mock(DiscoveryNode.class);

0 commit comments

Comments
 (0)