abra/test.bats

16 lines
298 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 "abra server add/rm works" {
2020-10-23 03:04:35 +00:00
./abra server add swarm.example.com user 222
2020-10-23 03:03:01 +00:00
docker context ls | grep swarm.example.com
2020-10-23 03:04:35 +00:00
./abra server rm swarm.example.com
2020-10-23 03:03:01 +00:00
}