3/5 taken out of #1269 This patch adds the setup and teardown of GoToSocial for use in the end-to-end tests Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1275 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Reviewed-by: Beowulf <beowulf@beocode.eu> Co-authored-by: famfo <famfo@famfo.xyz> Co-committed-by: famfo <famfo@famfo.xyz>
16 lines
288 B
Bash
16 lines
288 B
Bash
#!/usr/bin/env bash
|
|
|
|
source "$DIR/federation_scenario-$scenario-env"
|
|
|
|
if [[ -z "$password" ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
if [[ -z "$port" ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
status_code="$(curl -o /dev/null -w '%{http_code}' "http://localhost:$port/")"
|
|
if [[ "$status_code" != "200" ]]; then
|
|
exit 1
|
|
fi
|