From b5d84d5e0d1e3df8a345d31b7258474909cbbf4d Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Thu, 29 Oct 2020 19:38:42 +0200 Subject: [PATCH] Test for git, container, and test `app new ...` --- test.bats | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test.bats b/test.bats index 7aec757..fce336b 100644 --- a/test.bats +++ b/test.bats @@ -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 +}