-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into securityworkflow
- Loading branch information
Showing
4 changed files
with
101 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,7 +303,7 @@ afterEvaluate { | |
node.setting("plugins.security.check_snapshot_restore_write_privileges", "true") | ||
node.setting("plugins.security.restapi.roles_enabled", "[\"all_access\", \"security_rest_api_access\"]") | ||
node.setting("plugins.security.system_indices.enabled", "true") | ||
// node.setting("plugins.security.system_indices.indices", "[\".opendistro-ism-config\"]") | ||
node.setting("plugins.security.system_indices.indices", "[\".opendistro-alerting-config\"]") | ||
} | ||
} | ||
} | ||
|
@@ -431,6 +431,7 @@ def configureCluster(OpenSearchCluster cluster, Boolean securityEnabled) { | |
// | ||
// [email protected]("cluster health yellow", pred) | ||
// cluster.waitForAllConditions() | ||
Thread.sleep(5_000) | ||
} | ||
|
||
integTest { | ||
|
@@ -477,6 +478,8 @@ integTest { | |
filter { | ||
excludeTestsMatching "org.opensearch.indexmanagement.indexstatemanagement.action.NotificationActionIT" | ||
} | ||
// Don't execute IntegTest under https | ||
exclude 'org/opensearch/indexmanagement/indexstatemanagement/MetadataRegressionIT.class' | ||
} | ||
|
||
// TODO: raise issue in Core, this is because of the test framework | ||
|
@@ -705,8 +708,9 @@ run { | |
getClusters().forEach { cluster -> | ||
if (securityEnabled) { | ||
// TODO: This is a bit of a hack | ||
LinkedHashMap<String, Predicate<TestClusterConfiguration>> waitConditions = new LinkedHashMap<>() | ||
cluster.waitForConditions(waitConditions, System.currentTimeMillis(), 40, TimeUnit.SECONDS, cluster) | ||
// LinkedHashMap<String, Predicate<TestClusterConfiguration>> waitConditions = new LinkedHashMap<>() | ||
// cluster.waitForConditions(waitConditions, System.currentTimeMillis(), 40, TimeUnit.SECONDS, cluster) | ||
configureCluster(cluster, securityEnabled) | ||
} else { | ||
cluster.waitForAllConditions() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters