Skip to content

Commit a30c6ab

Browse files
committed
ci(tests):added baseUrl with ip instead of localhost
1 parent 6b438fc commit a30c6ab

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,20 @@ jobs:
8282
# cd test
8383
# rm -rf package-lock.json
8484
# npm install
85-
- name: Wait for Splunk Web UI to be fully ready
86-
run: |
87-
echo "Waiting for Splunk Web UI at http://$SPLUNK_IP:8000/en-US/account/login"
88-
# Try for up to 60 * 5 = 300 seconds (5 minutes)
89-
for i in $(seq 1 60); do
90-
if curl -s -f http://$SPLUNK_IP:8000/en-US/account/login; then
91-
echo "Splunk Web UI is ready!"
92-
exit 0
93-
fi
94-
echo "Splunk Web UI not ready yet, waiting 5 seconds... (Attempt $i/60)"
95-
sleep 5
96-
done
97-
echo "Error: Splunk Web UI did not become ready within 5 minutes."
98-
exit 1
85+
# - name: Wait for Splunk Web UI to be fully ready
86+
# run: |
87+
# echo "Waiting for Splunk Web UI at http://$SPLUNK_IP:8000/en-US/account/login"
88+
# # Try for up to 60 * 5 = 300 seconds (5 minutes)
89+
# for i in $(seq 1 60); do
90+
# if curl -s -f http://$SPLUNK_IP:8000/en-US/account/login; then
91+
# echo "Splunk Web UI is ready!"
92+
# exit 0
93+
# fi
94+
# echo "Splunk Web UI not ready yet, waiting 5 seconds... (Attempt $i/60)"
95+
# sleep 5
96+
# done
97+
# echo "Error: Splunk Web UI did not become ready within 5 minutes."
98+
# exit 1
9999

100100
- name: Cypress run
101101
uses: cypress-io/github-action@v6
@@ -107,9 +107,10 @@ jobs:
107107
ELECTRON_EXTRA_LAUNCH_ARGS: --disable-gpu
108108
with:
109109
# start: npm run test
110-
wait-on: 'http://localhost:8000'
110+
wait-on: 'http://$SPLUNK_IP:8000'
111111
# No videos can be recorded w/ ff as per https://github.com/cypress-io/cypress/issues/18415
112112
# browser: firefox
113+
config: baseUrl=http://$SPLUNK_IP:8000
113114
working-directory: test
114115

115116
# - name: Verify results availability

0 commit comments

Comments
 (0)