summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest_cli.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/test_cli.sh b/test_cli.sh
new file mode 100755
index 0000000..73c09ea
--- /dev/null
+++ b/test_cli.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+OPTS='-v9'
+LEAP="leap $OPTS"
+
+# use env var if set, otherwise use default
+[ -z "$PROVIDER_DIR" ] && PROVIDER_DIR='/tmp/provider_test'
+[ -z "$PLATFORM_DIR" ] && PLATFORM_DIR='/tmp/leap_platform'
+
+
+[ -e $PROVIDER_DIR ] && rm -rf $PROVIDER_DIR
+mkdir $PROVIDER_DIR
+cd $PROVIDER_DIR
+$LEAP new --contacts your@email.here --domain example.org --name Example --platform="$PLATFORM_DIR" .
+
+$LEAP node add test1 ip_address:1.2.3.4 services:webapp,couchdb,mx
+$LEAP add-user --self --ssh-pub-key="/home/${USER}/.ssh/id_rsa.pub" --pgp-pub-key=/dev/null
+$LEAP cert ca
+$LEAP cert csr
+
+
+$LEAP list
+
+$LEAP compile