diff options
Diffstat (limited to 'docker/federation-test/tests.sh')
-rwxr-xr-x | docker/federation-test/tests.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docker/federation-test/tests.sh b/docker/federation-test/tests.sh new file mode 100755 index 00000000..2e88ffb2 --- /dev/null +++ b/docker/federation-test/tests.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -xe + +pushd ../../ui +echo "Waiting for Lemmy to start..." +while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8540/api/v1/site')" != "200" ]]; do sleep 1; done +while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8550/api/v1/site')" != "200" ]]; do sleep 1; done +while [[ "$(curl -s -o /dev/null -w '%{http_code}' 'localhost:8560/api/v1/site')" != "200" ]]; do sleep 1; done +yarn api-test || true +popd |