Make tests run locally isolated
This commit is contained in:
parent
b423d61fce
commit
86a790bbe4
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
||||
default: test
|
||||
|
||||
test:
|
||||
@bats test.bats
|
||||
@docker run -it --rm -v "$(pwd):/workdir" docker:dind apk add bats && bats test.bats
|
||||
|
||||
dev-install-yq:
|
||||
@wget https://github.com/mikefarah/yq/releases/download/3.3.2/yq_linux_amd64 && \
|
||||
|
@ -9,8 +9,8 @@
|
||||
}
|
||||
|
||||
@test "abra server add/rm works" {
|
||||
./abra server add swarm.example.com
|
||||
docker context ls | grep swarm.example.com
|
||||
./abra server rm swarm.example.com
|
||||
./abra server add swarm-test.autonomic.zone calix 222
|
||||
./abra server add swarm.test.com
|
||||
docker context ls | grep swarm.test.com
|
||||
./abra server rm swarm.test.com
|
||||
./abra server add swarm.test.come foobar 12345
|
||||
}
|
||||
|
Reference in New Issue
Block a user