Update tests for app-name
This commit is contained in:
parent
6761574d74
commit
bbaacb7b9f
@ -21,29 +21,29 @@ teardown() {
|
||||
}
|
||||
|
||||
@test "abra app new/rm works" {
|
||||
./abra app new --server default --domain traefik.test.com traefik
|
||||
./abra app new --server default --domain traefik.test.com --app-name traefik_test_com traefik
|
||||
[ -f $ABRA_DIR/servers/default/traefik.test.com.env ]
|
||||
|
||||
# interactive prompt
|
||||
echo "y" | ./abra app traefik.test.com delete
|
||||
[ ! -f $ABRA_DIR/servers/default/traefik.test.com.env ]
|
||||
echo "y" | ./abra app traefik_test_com delete
|
||||
[ ! -f $ABRA_DIR/servers/default/traefik_test_com.env ]
|
||||
|
||||
# --force
|
||||
./abra app new --server default --domain traefik.test.com traefik
|
||||
./abra app new --server default --domain traefik_test_com --app-name traefik_test_com traefik
|
||||
./abra app traefik.test.com delete --force
|
||||
[ ! -f $ABRA_DIR/servers/default/traefik.test.com.env ]
|
||||
[ ! -f $ABRA_DIR/servers/default/traefik_test_com.env ]
|
||||
}
|
||||
|
||||
@test "abra app <domain> secret (insert|generate|rm)" {
|
||||
# TODO 3wc: mock `server new` so we don't endlessly re-test it
|
||||
./abra app new --server default --domain traefik.test.com traefik
|
||||
./abra app new --server default --domain traefik_test_com --app-name traefik_test_com traefik
|
||||
|
||||
./abra app traefik.test.com secret insert foobar v1 "foobar"
|
||||
./abra app traefik_test_com secret insert foobar v1 "foobar"
|
||||
|
||||
# interactive prompt
|
||||
echo "y" | ./abra app traefik.test.com secret rm foobar
|
||||
echo "y" | ./abra app traefik_test_com secret rm foobar
|
||||
|
||||
./abra app traefik.test.com secret insert foobar v1 "foobar"
|
||||
./abra app traefik_test_com secret insert foobar v1 "foobar"
|
||||
# prompt
|
||||
./abra app traefik.test.com secret rm foobar --force
|
||||
./abra app traefik_test_com secret rm foobar --force
|
||||
}
|
||||
|
Reference in New Issue
Block a user