abra/test.bats

34 lines
734 B
Plaintext
Raw Normal View History

2020-10-23 03:03:01 +00:00
#!/usr/bin/env bats
@test "docker is available" {
command -v docker
}
@test "abra is executable" {
2020-10-23 03:04:35 +00:00
./abra --help
2020-10-23 03:03:01 +00:00
}
@test "git is available" {
command -v git
}
@test "running in a container" {
ls /etc/alpine-release
}
2020-10-26 09:58:15 +00:00
@test "abra server add/rm works" {
2020-10-26 16:48:19 +00:00
./abra server add swarm.test.com
docker context ls | grep swarm.test.com
./abra server rm swarm.test.com
2020-10-26 17:25:40 +00:00
./abra server add swarm.test.com foobar 12345
./abra server rm swarm.test.com
2020-10-26 09:58:15 +00:00
}
@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
}