Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions integ-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,12 @@ testClusters {
// Only /_cluster/health is registered; pin the allow-list to it for RestCommandSecurityIT.
setting 'plugins.ppl.rest.allowed_endpoints', '/_cluster/health'
}
// Long-lived local dev cluster with the security (FGAC) plugin, for `runWithSecurity`.
runWithSecurity {
testDistribution = 'archive'
plugin(getJobSchedulerPlugin())
plugin ":opensearch-sql-plugin"
}
remoteIntegTestWithSecurity {
testDistribution = 'archive'
plugin(getJobSchedulerPlugin())
Expand Down Expand Up @@ -863,6 +869,15 @@ task integTestWithSecurity(type: RestIntegTestTask) {
}
}

// analogous to the plugin project's `run` task but with a demo config for testing roles.
task runWithSecurity(type: org.opensearch.gradle.testclusters.RunTask) {
useCluster testClusters.runWithSecurity
dependsOn ':opensearch-sql-plugin:bundlePlugin'
description = 'Run a local dev cluster with the opensearch-security (FGAC) plugin installed.'
group = 'verification'
}
configureSecurityPlugin(testClusters.runWithSecurity)

yamlRestTest {
systemProperty 'tests.security.manager', 'false'
}
Expand Down
1 change: 1 addition & 0 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -364,3 +364,4 @@ testClusters.integTest {
run {
useCluster testClusters.integTest
}

Loading