Enable functional tests with OpenSearch 2 (#8121)

## What changed?
Enable functional tests with OpenSearch 2 in CICD

## Why?
Run compatibility with OpenSearch 2

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)

## Potential risks
This commit is contained in:
Rodrigo Zhou
2025-08-01 14:06:32 -07:00
committed by GitHub
parent b4a6070012
commit 00e21a5569
2 changed files with 29 additions and 2 deletions

View File

@@ -51,3 +51,16 @@ services:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms1g -Xmx1g
opensearch2:
image: opensearchproject/opensearch:2.7.0
ports:
- "9200:9200"
environment:
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.low=512mb
- cluster.routing.allocation.disk.watermark.high=256mb
- cluster.routing.allocation.disk.watermark.flood_stage=128mb
- discovery.type=single-node
- DISABLE_SECURITY_PLUGIN=true
- OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g