Skip to content

Commit

Permalink
Adjusted integ tests for when security is enabled.
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Apr 30, 2024
1 parent 755f61f commit e9d89de
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ class GetRemoteIndexesActionIT : AlertingRestTestCase() {

assertNotNull(clusterDetails[ClusterIndexes.INDEXES_FIELD])
val indexes = clusterDetails[ClusterIndexes.INDEXES_FIELD] as Map<String, Map<String, Any>>
assertEquals(expectedNames.size, indexes.keys.size)
// 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 ->
Expand Down

0 comments on commit e9d89de

Please sign in to comment.