2019-08-05 21:47:37 +00:00
|
|
|
TEST_IMAGE?=vault-helm-test
|
2018-08-20 22:26:37 +00:00
|
|
|
|
2019-09-27 02:59:53 +00:00
|
|
|
test-image:
|
2018-08-20 22:26:37 +00:00
|
|
|
@docker build --rm -t '$(TEST_IMAGE)' -f $(CURDIR)/test/docker/Test.dockerfile $(CURDIR)
|
|
|
|
|
2019-09-27 02:59:53 +00:00
|
|
|
test-unit:
|
|
|
|
@docker run -it -v ${PWD}:/helm-test vault-helm-test bats /helm-test/test/unit
|
|
|
|
|
|
|
|
test-acceptance:
|
|
|
|
@docker run -it -v ${PWD}:/helm-test vault-helm-test bats /helm-test/test/acceptance
|
|
|
|
|
|
|
|
test-bats: test-unit test-acceptance
|
|
|
|
|
|
|
|
test: test-image test-bats
|
|
|
|
|
|
|
|
|
2018-08-20 22:26:37 +00:00
|
|
|
.PHONY: test-docker
|