Test for git, container, and test app new ...
This commit is contained in:
parent
e3983c2440
commit
b5d84d5e0d
15
test.bats
15
test.bats
@ -8,6 +8,14 @@
|
|||||||
./abra --help
|
./abra --help
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "git is available" {
|
||||||
|
command -v git
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "running in a container" {
|
||||||
|
ls /etc/alpine-release
|
||||||
|
}
|
||||||
|
|
||||||
@test "abra server add/rm works" {
|
@test "abra server add/rm works" {
|
||||||
./abra server add swarm.test.com
|
./abra server add swarm.test.com
|
||||||
docker context ls | grep swarm.test.com
|
docker context ls | grep swarm.test.com
|
||||||
@ -16,3 +24,10 @@
|
|||||||
./abra server add swarm.test.com foobar 12345
|
./abra server add swarm.test.com foobar 12345
|
||||||
./abra server rm swarm.test.com
|
./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
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user