Make tests run locally isolated

This commit is contained in:
Luke Murphy 2020-10-26 17:48:19 +01:00
parent b423d61fce
commit 86a790bbe4
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
default: test default: test
test: test:
@bats test.bats @docker run -it --rm -v "$(pwd):/workdir" docker:dind apk add bats && bats test.bats
dev-install-yq: dev-install-yq:
@wget https://github.com/mikefarah/yq/releases/download/3.3.2/yq_linux_amd64 && \ @wget https://github.com/mikefarah/yq/releases/download/3.3.2/yq_linux_amd64 && \

View File

@ -9,8 +9,8 @@
} }
@test "abra server add/rm works" { @test "abra server add/rm works" {
./abra server add swarm.example.com ./abra server add swarm.test.com
docker context ls | grep swarm.example.com docker context ls | grep swarm.test.com
./abra server rm swarm.example.com ./abra server rm swarm.test.com
./abra server add swarm-test.autonomic.zone calix 222 ./abra server add swarm.test.come foobar 12345
} }