From 51d99219c6aba415c0e771fb59f307d9f853f55e Mon Sep 17 00:00:00 2001 From: varac Date: Mon, 11 Apr 2016 12:55:39 +0200 Subject: added leap_cli test script --- test_cli.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 test_cli.sh 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 -- cgit v1.2.3