From e238ba23dbc5a70763da8a2084331803fe77c4be Mon Sep 17 00:00:00 2001 From: varac Date: Mon, 11 Apr 2016 20:31:55 +0200 Subject: improved leap_cli test script --- test_cli.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/test_cli.sh b/test_cli.sh index 204590f..73c09ea 100755 --- a/test_cli.sh +++ b/test_cli.sh @@ -1,5 +1,8 @@ #!/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' @@ -8,14 +11,14 @@ [ -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 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 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 list -leap compile +$LEAP compile -- cgit v1.2.3