From 3fccf57f243c8929a8a0bcf09dd4f4d709396c21 Mon Sep 17 00:00:00 2001 From: Maciej Mierzwa Date: Tue, 7 Nov 2023 20:41:32 +0100 Subject: [PATCH] WhoAmITests Signed-off-by: Maciej Mierzwa --- .../java/org/opensearch/security/rest/WhoAmITests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integrationTest/java/org/opensearch/security/rest/WhoAmITests.java b/src/integrationTest/java/org/opensearch/security/rest/WhoAmITests.java index 6b72a36277..f18191102a 100644 --- a/src/integrationTest/java/org/opensearch/security/rest/WhoAmITests.java +++ b/src/integrationTest/java/org/opensearch/security/rest/WhoAmITests.java @@ -170,7 +170,7 @@ public void testAuditLogSimilarityWithTransportLayer() { assertThat(client.get("_cat/indices").getStatusCode(), equalTo(HttpStatus.SC_OK)); // transport layer audit messages - auditLogsRule.assertExactly(2, grantedPrivilege(AUDIT_LOG_VERIFIER, "GetSettingsRequest")); + auditLogsRule.assertAtLeastTransportMessages(1, grantedPrivilege(AUDIT_LOG_VERIFIER, "GetSettingsRequest")); List grantedPrivilegesMessages = auditLogsRule.getCurrentTestAuditMessages() .stream()