diff --git a/.github/workflows/docker-security-test-workflow.yml b/.github/workflows/docker-security-test-workflow.yml index 590686ae0..a3177cd1b 100644 --- a/.github/workflows/docker-security-test-workflow.yml +++ b/.github/workflows/docker-security-test-workflow.yml @@ -66,9 +66,10 @@ jobs: - name: Run Index Management Test for security enabled test cases if: env.imagePresent == 'true' run: | - cluster_running=`curl -XGET https://localhost:9200/_cat/plugins -u admin:admin --insecure` - echo $cluster_running - security=`curl -XGET https://localhost:9200/_cat/plugins -u admin:admin --insecure |grep opensearch-security|wc -l` + container_id=`docker ps -q` + plugins=`docker exec $container_id /usr/share/opensearch/bin/opensearch-plugin list` + echo "plugins: $plugins" + security=`echo $plugins | grep opensearch-security | wc -l` echo $security if [ $security -gt 0 ] then diff --git a/build.gradle b/build.gradle index 58917eb2a..d0b005502 100644 --- a/build.gradle +++ b/build.gradle @@ -628,7 +628,7 @@ task integTestRemote(type: RestIntegTestTask) { // === Set up BWC tests === -String bwcVersionShort = "2.11.0" +String bwcVersionShort = "2.12.0" String bwcVersion = bwcVersionShort + ".0" String baseName = "indexmanagementBwcCluster" diff --git a/src/main/kotlin/org/opensearch/indexmanagement/transform/model/Transform.kt b/src/main/kotlin/org/opensearch/indexmanagement/transform/model/Transform.kt index ce6e50401..1403639af 100644 --- a/src/main/kotlin/org/opensearch/indexmanagement/transform/model/Transform.kt +++ b/src/main/kotlin/org/opensearch/indexmanagement/transform/model/Transform.kt @@ -77,6 +77,9 @@ data class Transform( aggregations.aggregatorFactories.forEach { require(supportedAggregations.contains(it.type)) { "Unsupported aggregation [${it.type}]" } } + aggregations.pipelineAggregatorFactories.forEach { + require(supportedAggregations.contains(it.type)) { "Unsupported aggregation [${it.type}]" } + } when (jobSchedule) { is CronSchedule -> { // Job scheduler already correctly throws errors for this