From 8801a635cc8736cb9214b3ae9f6a55be65fb57cf Mon Sep 17 00:00:00 2001 From: Riya <69919272+riysaxen-amzn@users.noreply.github.com> Date: Tue, 18 Jun 2024 17:32:03 -0700 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 --- .../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 ->