From 7596a67ad5bdda30796c82ec58b8119c3cff3fb3 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Sun, 2 Jan 2022 14:05:02 +0100 Subject: [PATCH] refactor: refocus the script purpose --- tests/{e2e.sh => integration/core.sh} | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) rename tests/{e2e.sh => integration/core.sh} (82%) diff --git a/tests/e2e.sh b/tests/integration/core.sh similarity index 82% rename from tests/e2e.sh rename to tests/integration/core.sh index 6a7db383..a7b38d8f 100755 --- a/tests/e2e.sh +++ b/tests/integration/core.sh @@ -1,5 +1,11 @@ #!/bin/bash +# the goal of this script is to ensure basic core functionality is working +# before we make new releases. we try to make a balance between manual testing +# and automated testing, i.e. we don't invest too much time in a fragile +# automation that costs us more time to maintain and instead just do the test +# manually. it is a balance which we figure out together. + set -ex ABRA="$HOME/.local/bin/abra -d" @@ -108,9 +114,19 @@ $ABRA recipe lint gitea # ======================================================================== # server command # ======================================================================== +$ABRA -n server new -p hetzner-cloud --hn e2e -# echo "" -# echo "" +# TODO: add --no-domain-check to server add +# TODO: figure out how to pass a password for ssh password auth +# TODO: how to deploy traefik daemonless mode? +$ABRA server add -p -t e2e root "TODO-PASSWORD" + +$ABRA server ls | grep -q e2e + +$ABRA -n server rm -s -p hetzner-cloud --hn e2e + +echo "" +echo "" # ======================================================================== # app command