Skip to content

Commit

Permalink
[CI] Fix test DeprecatedLoggingAuditTrailTests
Browse files Browse the repository at this point in the history
CI for #34475 ran successfuly but 6.x did
not had #33894 merged in yet.

Closes #34627
  • Loading branch information
albertzaharovits committed Oct 19, 2018
1 parent d071863 commit 6cf8a40
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
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 {
Expand Down Expand Up @@ -131,9 +130,9 @@ protected String expectedMessage() {
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);
Expand Down

0 comments on commit 6cf8a40

Please sign in to comment.