Skip to content

Commit df95014

Browse files
committed
fix(ci): start OpenSearch 3.x service for integration tests
1 parent 9e79638 commit df95014

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎.github/workflows/integration-tests.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ jobs:
3434
# `opensearch-port`. OpenSearch 2.11 (port 9200) covers Magento 2.4.7–2.4.8;
3535
# OpenSearch 3.x (port 9201) is required by Magento 2.4.9 and Mage-OS latest.
3636
# Security is disabled on both so no credentials are needed.
37+
#
38+
# OpenSearch >= 2.12 made OPENSEARCH_INITIAL_ADMIN_PASSWORD mandatory: the
39+
# image entrypoint runs the security demo-config installer and aborts the
40+
# container if it is unset. plugins.security.disabled only changes
41+
# opensearch.yml and does NOT stop that installer, so the 3.x service must
42+
# disable the security plugin and demo config via the entrypoint env vars
43+
# (DISABLE_SECURITY_PLUGIN / DISABLE_INSTALL_DEMO_CONFIG). 2.11 predates the
44+
# requirement and starts fine with the original config.
3745
opensearch2:
3846
image: opensearchproject/opensearch:2.11.0
3947
env:
@@ -53,7 +61,8 @@ jobs:
5361
image: opensearchproject/opensearch:3.1.0
5462
env:
5563
discovery.type: single-node
56-
plugins.security.disabled: "true"
64+
DISABLE_SECURITY_PLUGIN: "true"
65+
DISABLE_INSTALL_DEMO_CONFIG: "true"
5766
OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx512m"
5867
ports:
5968
- 9201:9200

0 commit comments

Comments
 (0)