summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-04-11 12:55:39 +0200
committervarac <varacanero@zeromail.org>2016-04-11 12:55:39 +0200
commit51d99219c6aba415c0e771fb59f307d9f853f55e (patch)
tree9d60a0c994a91023a8eb8ae61cde14bcd291277b
parent6d6e701651341ee58832527b54793c4cb9282d88 (diff)
added leap_cli test script
-rwxr-xr-xtest_cli.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/test_cli.sh b/test_cli.sh
new file mode 100755
index 0000000..204590f
--- /dev/null
+++ b/test_cli.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# 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"
+leap cert ca
+leap cert csr
+
+
+leap list
+
+leap compile