Skip to content

Commit 659a3ce

Browse files
Add passing OPENSEARCH_JAVA_OPTS into the docker container used for tests (#454)
Signed-off-by: Neetika Singhal <[email protected]>
1 parent 83343b2 commit 659a3ce

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/opensearch-cluster/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ services:
88
- '9600:9600'
99
environment:
1010
- 'OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-myStrongPassword123!}'
11+
- OPENSEARCH_JAVA_OPTS=${OPENSEARCH_JAVA_OPTS}
1112
- discovery.type=single-node
1213
- path.repo=/tmp/opensearch/repo
13-
- plugins.index_state_management.job_interval=1
14+
- plugins.index_state_management.job_interval=1

.github/workflows/test-spec.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
- {version: 1.3.17, admin_password: admin}
2727
- {version: 2.0.0, admin_password: admin}
2828
- {version: 2.15.0}
29-
- {version: 2.16.0, hub: opensearchstaging, ref: '@sha256:50fbfe3b95c41e92a113ada3e80513ba4524dfc8a25dc6aaeff2bbe1e1145d5f'}
29+
- version: 2.16.0
30+
hub: opensearchstaging
31+
ref: '@sha256:50fbfe3b95c41e92a113ada3e80513ba4524dfc8a25dc6aaeff2bbe1e1145d5f'
3032

3133
name: test-opensearch-spec (version=${{ matrix.entry.version }}, hub=${{ matrix.entry.hub || 'opensearchproject' }})
3234
runs-on: ubuntu-latest
@@ -36,6 +38,7 @@ jobs:
3638
OPENSEARCH_DOCKER_REF: ${{ matrix.entry.ref }}
3739
OPENSEARCH_VERSION: ${{ matrix.entry.version }}
3840
OPENSEARCH_PASSWORD: ${{ matrix.entry.admin_password || 'myStrongPassword123!' }}
41+
OPENSEARCH_JAVA_OPTS: ${{ matrix.entry.opts }}
3942

4043
steps:
4144
- name: Checkout Repo

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
5656
- Added test coverage ([#443](https://github.com/opensearch-project/opensearch-api-specification/pull/443))
5757
- Added `--opensearch-version` to `merger` that excludes schema elements per semver ([#428](https://github.com/opensearch-project/opensearch-api-specification/pull/428))
5858
- Added `retry` to `tester` to support asynchronous tasks ([453](https://github.com/opensearch-project/opensearch-api-specification/pull/453))
59+
- Added passing OPENSEARCH_JAVA_OPTS into the docker container used for tests ([#454](https://github.com/opensearch-project/opensearch-api-specification/pull/454))
5960

6061
### Changed
6162

0 commit comments

Comments
 (0)