File tree Expand file tree Collapse file tree 14 files changed +49
-23
lines changed Expand file tree Collapse file tree 14 files changed +49
-23
lines changed Original file line number Diff line number Diff line change 2222 TERM : xterm
2323 # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment
2424 NODE_OPTIONS : ' --max-old-space-size=6144 --dns-result-order=ipv4first'
25+ # 2.12 onwards security demo configuration require a custom admin password
26+ OPENSEARCH_INITIAL_ADMIN_PASSWORD : ' myStrongPassword123!'
2527 steps :
2628 - name : Set up JDK
2729 uses : actions/setup-java@v1
6264 else
6365 echo "Keep OpenSearch Security"
6466 nohup ./opensearch-windows-install.bat &
65- timeout 900 bash -c 'while [[ "$(curl -o /dev/null -w ''%{http_code}'' -u admin:admin -k https://localhost:9200)" != "200" ]]; do echo sleeping 5; sleep 5; done'
66- curl -sk https://localhost:9200/_cluster/health?pretty -u admin:admin
67+ timeout 900 bash -c 'while [[ "$(curl -o /dev/null -w ''%{http_code}'' -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} -k https://localhost:9200)" != "200" ]]; do echo sleeping 5; sleep 5; done'
68+ curl -sk https://localhost:9200/_cluster/health?pretty -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }}
6769 fi
6870 netstat -anP tcp | grep LISTEN | grep 9200 || netstat -ntlp | grep 9200
6971 shell : bash
@@ -104,8 +106,8 @@ jobs:
104106 else
105107 echo "Keep Dashboards Security"
106108 bin/opensearch-dashboards.bat &
107- timeout 300 bash -c 'while [[ "$(curl -k http://localhost:5601/api/status -u admin:admin | jq -r '.status.overall.state')" != "green" ]]; do echo sleeping 5; sleep 5; done'
108- curl -sk localhost:5601/api/status -u admin:admin | jq
109+ timeout 300 bash -c 'while [[ "$(curl -k http://localhost:5601/api/status -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} | jq -r '.status.overall.state')" != "green" ]]; do echo sleeping 5; sleep 5; done'
110+ curl -sk localhost:5601/api/status -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} | jq
109111 fi
110112 netstat -anP tcp | grep LISTEN | grep 5601 || netstat -ntlp | grep 5601
111113 shell : bash
Original file line number Diff line number Diff line change 2525 TERM : xterm
2626 # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment
2727 NODE_OPTIONS : ' --max-old-space-size=6144 --dns-result-order=ipv4first'
28+ # 2.12 onwards security demo configuration require a custom admin password
29+ OPENSEARCH_INITIAL_ADMIN_PASSWORD : ' myStrongPassword123!'
2830 steps :
2931 - name : Set up JDK
3032 uses : actions/setup-java@v1
6163 else
6264 echo "Keep OpenSearch Security"
6365 ./opensearch-tar-install.sh &
64- timeout 900 bash -c 'while [[ "$(curl -o /dev/null -w ''%{http_code}'' -u admin:admin -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
65- curl https://localhost:9200 -u admin:admin --insecure
66+ timeout 900 bash -c 'while [[ "$(curl -o /dev/null -w ''%{http_code}'' -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
67+ curl https://localhost:9200 -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} --insecure
6668 fi
6769 - name : Get OpenSearch-Dashboards
6870 run : |
9294 else
9395 echo "Keep Dashboards Security"
9496 bin/opensearch-dashboards serve ${{ inputs.osd-serve-args }} &
95- timeout 300 bash -c 'while [[ "$(curl -u admin:admin -k http://localhost:5601/api/status | jq -r '.status.overall.state')" != "green" ]]; do sleep 5; done'
96- curl http://localhost:5601/api/status -u admin:admin --insecure
97+ timeout 300 bash -c 'while [[ "$(curl -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} -k http://localhost:5601/api/status | jq -r '.status.overall.state')" != "green" ]]; do sleep 5; done'
98+ curl http://localhost:5601/api/status -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} --insecure
9799 fi
98100 - name : Get Cypress version
99101 id : cypress_version
Original file line number Diff line number Diff line change 1313 TERM : xterm
1414 # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment
1515 NODE_OPTIONS : ' --max-old-space-size=6144 --dns-result-order=ipv4first'
16+ # 2.12 onwards security demo configuration require a custom admin password
17+ OPENSEARCH_INITIAL_ADMIN_PASSWORD : ' myStrongPassword123!'
1618 steps :
1719 - name : Checkout functional-test
1820 uses : actions/checkout@v2
2931 tar -xzf opensearch-${{ env.VERSION }}-linux-x64.tar.gz
3032 cd opensearch-${{ env.VERSION }}/
3133 ./opensearch-tar-install.sh &
32- timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:admin -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
34+ timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
3335 - name : Get OpenSearch-Dashboards
3436 run : |
3537 wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz
Original file line number Diff line number Diff line change 1313 TERM : xterm
1414 # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment
1515 NODE_OPTIONS : ' --max-old-space-size=6144 --dns-result-order=ipv4first'
16+ # 2.12 onwards security demo configuration require a custom admin password
17+ OPENSEARCH_INITIAL_ADMIN_PASSWORD : ' myStrongPassword123!'
1618 steps :
1719 - name : Checkout functional-test
1820 uses : actions/checkout@v2
2931 tar -xzf opensearch-${{ env.VERSION }}-linux-x64.tar.gz
3032 cd opensearch-${{ env.VERSION }}/
3133 ./opensearch-tar-install.sh &
32- timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:admin -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
34+ timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
3335 - name : Get OpenSearch-Dashboards
3436 run : |
3537 wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz
Original file line number Diff line number Diff line change 1313 TERM : xterm
1414 # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment
1515 NODE_OPTIONS : ' --max-old-space-size=6144 --dns-result-order=ipv4first'
16+ # 2.12 onwards security demo configuration require a custom admin password
17+ OPENSEARCH_INITIAL_ADMIN_PASSWORD : ' myStrongPassword123!'
1618 steps :
1719 - name : Checkout functional-test
1820 uses : actions/checkout@v2
2931 tar -xzf opensearch-${{ env.VERSION }}-linux-x64.tar.gz
3032 cd opensearch-${{ env.VERSION }}/
3133 ./opensearch-tar-install.sh &
32- timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:admin -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
34+ timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
3335 - name : Get OpenSearch-Dashboards
3436 run : |
3537 wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz
Original file line number Diff line number Diff line change 1313 TERM : xterm
1414 # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment
1515 NODE_OPTIONS : ' --max-old-space-size=6144 --dns-result-order=ipv4first'
16+ # 2.12 onwards security demo configuration require a custom admin password
17+ OPENSEARCH_INITIAL_ADMIN_PASSWORD : ' myStrongPassword123!'
1618 steps :
1719 - name : Checkout functional-test
1820 uses : actions/checkout@v2
2931 tar -xzf opensearch-${{ env.VERSION }}-linux-x64.tar.gz
3032 cd opensearch-${{ env.VERSION }}/
3133 ./opensearch-tar-install.sh &
32- timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:admin -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
34+ timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
3335 - name : Get OpenSearch-Dashboards
3436 run : |
3537 wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz
Original file line number Diff line number Diff line change 1313 TERM : xterm
1414 # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment
1515 NODE_OPTIONS : ' --max-old-space-size=6144 --dns-result-order=ipv4first'
16+ # 2.12 onwards security demo configuration require a custom admin password
17+ OPENSEARCH_INITIAL_ADMIN_PASSWORD : ' myStrongPassword123!'
1618 steps :
1719 - name : Checkout functional-test
1820 uses : actions/checkout@v2
2931 tar -xzf opensearch-${{ env.VERSION }}-linux-x64.tar.gz
3032 cd opensearch-${{ env.VERSION }}/
3133 ./opensearch-tar-install.sh &
32- timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:admin -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
34+ timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
3335 - name : Get OpenSearch-Dashboards
3436 run : |
3537 wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz
Original file line number Diff line number Diff line change 1313 TERM : xterm
1414 # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment
1515 NODE_OPTIONS : ' --max-old-space-size=6144 --dns-result-order=ipv4first'
16+ # 2.12 onwards security demo configuration require a custom admin password
17+ OPENSEARCH_INITIAL_ADMIN_PASSWORD : ' myStrongPassword123!'
1618 steps :
1719 - name : Checkout functional-test
1820 uses : actions/checkout@v2
2931 tar -xzf opensearch-${{ env.VERSION }}-linux-x64.tar.gz
3032 cd opensearch-${{ env.VERSION }}/
3133 ./opensearch-tar-install.sh &
32- timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:admin -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
34+ timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
3335 - name : Get OpenSearch-Dashboards
3436 run : |
3537 wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz
Original file line number Diff line number Diff line change 1313 TERM : xterm
1414 # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment
1515 NODE_OPTIONS : ' --max-old-space-size=6144 --dns-result-order=ipv4first'
16+ # 2.12 onwards security demo configuration require a custom admin password
17+ OPENSEARCH_INITIAL_ADMIN_PASSWORD : ' myStrongPassword123!'
1618 steps :
1719 - name : Checkout functional-test
1820 uses : actions/checkout@v2
2931 tar -xzf opensearch-${{ env.VERSION }}-linux-x64.tar.gz
3032 cd opensearch-${{ env.VERSION }}/
3133 ./opensearch-tar-install.sh &
32- timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:admin -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
34+ timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
3335 - name : Get OpenSearch-Dashboards
3436 run : |
3537 wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz
Original file line number Diff line number Diff line change 1313 TERM : xterm
1414 # make Node run in ipv4 first so that cypress can detect 5601 port in CI environment
1515 NODE_OPTIONS : ' --max-old-space-size=6144 --dns-result-order=ipv4first'
16+ # 2.12 onwards security demo configuration require a custom admin password
17+ OPENSEARCH_INITIAL_ADMIN_PASSWORD : ' myStrongPassword123!'
1618 steps :
1719 - name : Checkout functional-test
1820 uses : actions/checkout@v2
2931 tar -xzf opensearch-${{ env.VERSION }}-linux-x64.tar.gz
3032 cd opensearch-${{ env.VERSION }}/
3133 ./opensearch-tar-install.sh &
32- timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:admin -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
34+ timeout 900 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' -u admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} -k https://localhost:9200)" != "200" ]]; do sleep 5; done'
3335 - name : Get OpenSearch-Dashboards
3436 run : |
3537 wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz
You can’t perform that action at this time.
0 commit comments