Skip to content

Commit

Permalink
Set discovery.type.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Apr 19, 2024
1 parent 2a1552c commit 5ffcda8
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/test_unreleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,16 @@ jobs:
working-directory: opensearch/distribution/archives/linux-tar/build/distributions
run: |
tar xf opensearch-min-*
echo "discovery.type: single-node" >> ./opensearch-*/config/opensearch.yml
./opensearch-*/bin/opensearch &
for attempt in {1..20}; do sleep 5; if curl -s localhost:9200; then echo '=====> ready'; break; fi; echo '=====> waiting...'; done
./opensearch-*/bin/opensearch -d
for attempt in {1..20}; do
sleep 5
if curl -s localhost:9200; then
echo '=====> ready'
exit 0
fi
echo '=====> waiting...'
done
exit 1
- name: Checkout PHP Client
uses: actions/checkout@v2
Expand All @@ -73,9 +80,6 @@ jobs:
- name: Wait for Search server
run: php ./.github/wait_for_opensearch.php


- name: Integration tests
run: |
composer run integration
env:
OPENSEARCH_URL: 'http://localhost:9200'
OPENSEARCH_URL=http://localhost:9200 composer run integration

0 comments on commit 5ffcda8

Please sign in to comment.