Test for git, container, and test app new ...

This commit is contained in:
3wc 2020-10-29 19:38:42 +02:00
parent e3983c2440
commit b5d84d5e0d

View File

@ -8,6 +8,14 @@
./abra --help
}
@test "git is available" {
command -v git
}
@test "running in a container" {
ls /etc/alpine-release
}
@test "abra server add/rm works" {
./abra server add swarm.test.com
docker context ls | grep swarm.test.com
@ -16,3 +24,10 @@
./abra server add swarm.test.com foobar 12345
./abra server rm swarm.test.com
}
@test "abra app new/rm works" {
./abra server add swarm.test.com
./abra app new --server swarm.test.com --domain traefik.test.com traefik
ls ~/.abra/servers/swarm.test.com/traefik.test.com.env
./abra app traefik.test.com delete --force
}