diff options
author | varac <varacanero@zeromail.org> | 2016-04-11 20:31:55 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-04-11 20:31:55 +0200 |
commit | e238ba23dbc5a70763da8a2084331803fe77c4be (patch) | |
tree | 7488c2d73cdf0d29ffd12ce497424fc38845a29c | |
parent | 51d99219c6aba415c0e771fb59f307d9f853f55e (diff) |
improved leap_cli test script
-rwxr-xr-x | test_cli.sh | 17 |
1 files 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 |