Skip to content

Commit 05ffe85

Browse files
committed
Trim "ghost-basics" test to just what's supported
Remove 2.x, 3.x, and use 5.x as the fallback (since the API should be stable now).
1 parent ffc195e commit 05ffe85

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/tests/ghost-basics/run.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ _request() {
3535
# Check that /ghost/ redirects to setup (the image is unconfigured by default)
3636
ghostVersion="$(docker inspect --format '{{range .Config.Env}}{{ . }}{{"\n"}}{{end}}' "$serverImage" | awk -F= '$1 == "GHOST_VERSION" { print $2 }')"
3737
case "$ghostVersion" in
38-
2.*) _request GET '/ghost/api/v2/admin/authentication/setup/' | grep 'status":false' > /dev/null ;;
39-
3.*) _request GET '/ghost/api/v3/admin/authentication/setup/' | grep 'status":false' > /dev/null ;;
4038
4.*) _request GET '/ghost/api/v4/admin/authentication/setup/' | grep 'status":false' > /dev/null ;;
41-
5.*) _request GET '/ghost/api/admin/authentication/setup/' | grep 'status":false' > /dev/null ;;
42-
*) echo "no tests for version ${ghostVersion}" && exit 1 ;;
39+
*) _request GET '/ghost/api/admin/authentication/setup/' | grep 'status":false' > /dev/null ;;
4340
esac

0 commit comments

Comments
 (0)