[CI] Fix test DeprecatedLoggingAuditTrailTests
CI for ran successfuly but 6.x did
not had merged in yet.
Closes
@@ -61,7 +61,6 @@ import static org.hamcrest.Matchers.containsString;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
-@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/34627")
public class DeprecatedLoggingAuditTrailTests extends ESTestCase {
enum RestContent {
@@ -131,9 +130,9 @@ public class DeprecatedLoggingAuditTrailTests extends ESTestCase {
public void init() throws Exception {
includeRequestBody = randomBoolean();
settings = Settings.builder()
- .put("xpack.security.audit.logfile.prefix.emit_node_host_address", randomBoolean())
- .put("xpack.security.audit.logfile.prefix.emit_node_host_name", randomBoolean())
- .put("xpack.security.audit.logfile.prefix.emit_node_name", randomBoolean())
+ .put(LoggingAuditTrail.EMIT_HOST_ADDRESS_SETTING.getKey(), randomBoolean())
+ .put(LoggingAuditTrail.EMIT_HOST_NAME_SETTING.getKey(), randomBoolean())
+ .put(LoggingAuditTrail.EMIT_NODE_NAME_SETTING.getKey(), randomBoolean())
.put("xpack.security.audit.logfile.events.emit_request_body", includeRequestBody)
.build();
localNode = mock(DiscoveryNode.class);
