test: finish first pass on core integration script

This commit is contained in:
decentral1se 2022-01-02 15:04:49 +01:00
parent 1df69aa259
commit abf83aa641
Signed by untrusted user: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 3 additions and 39 deletions

View File

@ -27,45 +27,30 @@ export PATH=$PATH:$HOME/.local/bin
echo "choosing $ABRA as abra executable" echo "choosing $ABRA as abra executable"
echo "choosing $INSTALLER_URL as abra installer url" echo "choosing $INSTALLER_URL as abra installer url"
echo ""
echo ""
# ======================================================================== # ========================================================================
# latest stable release # latest stable release
# ======================================================================== # ========================================================================
wget -O- https://install.abra.autonomic.zone | bash wget -O- https://install.abra.autonomic.zone | bash
~/.local/bin/abra -v ~/.local/bin/abra -v
echo ""
echo ""
# ======================================================================== # ========================================================================
# latest rc release # latest rc release
# ======================================================================== # ========================================================================
wget -O- https://install.abra.autonomic.zone | bash -s -- --rc wget -O- https://install.abra.autonomic.zone | bash -s -- --rc
~/.local/bin/abra -v ~/.local/bin/abra -v
echo ""
echo ""
# ======================================================================== # ========================================================================
# upgrade to stable in-place # upgrade to stable in-place
# ======================================================================== # ========================================================================
$ABRA upgrade $ABRA upgrade
~/.local/bin/abra -v ~/.local/bin/abra -v
echo ""
echo ""
# ======================================================================== # ========================================================================
# upgrade to rc in-place # upgrade to rc in-place
# ======================================================================== # ========================================================================
$ABRA upgrade --rc $ABRA upgrade --rc
~/.local/bin/abra -v ~/.local/bin/abra -v
echo ""
echo ""
# ======================================================================== # ========================================================================
# autocomplete # autocomplete
# ======================================================================== # ========================================================================
@ -73,9 +58,6 @@ $ABRA autocomplete bash
$ABRA autocomplete fizsh $ABRA autocomplete fizsh
$ABRA autocomplete zsh $ABRA autocomplete zsh
echo ""
echo ""
# ======================================================================== # ========================================================================
# record command # record command
# ======================================================================== # ========================================================================
@ -83,24 +65,16 @@ $ABRA record new -p gandi -t A -n e2e -v 192.157.2.21 coopcloud.tech
$ABRA record list -p gandi coopcloud.tech | grep -q e2e $ABRA record list -p gandi coopcloud.tech | grep -q e2e
$ABRA -n record rm -p gandi -t A -n e2e coopcloud.tech $ABRA -n record rm -p gandi -t A -n e2e coopcloud.tech
echo ""
echo ""
# ======================================================================== # ========================================================================
# catalogue command # catalogue command
# ======================================================================== # ========================================================================
$ABRA catalogue generate $ABRA catalogue generate
$ABRA catalogue generate -s gitea $ABRA catalogue generate -s gitea
echo ""
echo ""
# ======================================================================== # ========================================================================
# recipe command # recipe command
# ======================================================================== # ========================================================================
$ABRA recipe new testrecipe $ABRA recipe new testrecipe
ls ~/.abra/apps/testrecipe
cat ~/.abra/apps/testrecipe/README.md
$ABRA recipe list $ABRA recipe list
$ABRA recipe list -p cloud $ABRA recipe list -p cloud
@ -109,29 +83,19 @@ $ABRA recipe versions peertube
$ABRA recipe lint gitea $ABRA recipe lint gitea
# echo ""
# echo ""
# ======================================================================== # ========================================================================
# server command # server command
# ======================================================================== # ========================================================================
$ABRA -n server new -p hetzner-cloud --hn e2e $ABRA -n server new -p hetzner-cloud --hn e2e
# 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 server ls | grep -q e2e
$ABRA -n server rm -s -p hetzner-cloud --hn e2e $ABRA -n server rm -s -p hetzner-cloud --hn e2e
echo ""
echo ""
# ======================================================================== # ========================================================================
# app command # app command
# ======================================================================== # ========================================================================
# echo "" $ABRA app ls
# echo ""
$ABRA app ls -S