From 0081e8036ca539f3141438f87d48d89039cb36e1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 19 Jun 2024 00:32:20 +0000 Subject: [PATCH] fix integ test failures (#1580) * fix integ test failures in jenkins infra Signed-off-by: Riya Saxena * fix integ test failures in jenkins infra Signed-off-by: Riya Saxena --------- Signed-off-by: Riya Saxena (cherry picked from commit 8801a635cc8736cb9214b3ae9f6a55be65fb57cf) Signed-off-by: github-actions[bot] --- .../alerting/transport/GetRemoteIndexesActionIT.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/alerting/src/test/kotlin/org/opensearch/alerting/transport/GetRemoteIndexesActionIT.kt b/alerting/src/test/kotlin/org/opensearch/alerting/transport/GetRemoteIndexesActionIT.kt index 0b9282d10..83e24332e 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/transport/GetRemoteIndexesActionIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/transport/GetRemoteIndexesActionIT.kt @@ -102,9 +102,6 @@ class GetRemoteIndexesActionIT : AlertingRestTestCase() { assertNotNull(clusterDetails[ClusterIndexes.INDEXES_FIELD]) val indexes = clusterDetails[ClusterIndexes.INDEXES_FIELD] as Map> - // Skipping this assert when security is enabled as it doesn't consider the existence of system indexes. - if (!securityEnabled()) assertEquals(expectedNames.size, indexes.keys.size) - // Validate index-level response details expectedNames.forEach { indexName -> assertNotNull(indexes[indexName]) @@ -152,9 +149,6 @@ class GetRemoteIndexesActionIT : AlertingRestTestCase() { assertNotNull(clusterDetails[ClusterIndexes.INDEXES_FIELD]) val indexes = clusterDetails[ClusterIndexes.INDEXES_FIELD] as Map> - // Skipping this assert when security is enabled as it doesn't consider the existence of system indexes. - if (!securityEnabled()) assertEquals(expectedNames.size, indexes.keys.size) - // Validate index-level response details expectedNames.forEach { indexName -> assertNotNull(indexes[indexName]) @@ -201,8 +195,6 @@ class GetRemoteIndexesActionIT : AlertingRestTestCase() { assertNotNull(clusterDetails[ClusterIndexes.INDEXES_FIELD]) val indexes = clusterDetails[ClusterIndexes.INDEXES_FIELD] as Map> - // Skipping this assert when security is enabled as it doesn't consider the existence of system indexes. - if (!securityEnabled()) assertEquals(expectedNames.size, indexes.keys.size) // Validate index-level response details expectedNames.forEach { indexName ->