summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2026-11-01 20:33:36 +0100
committerJesper Jensen <jesper@jnsn.dev>2026-11-01 21:34:19 +0100
commita265ee04af9b21379c4f33cf8838e579f71d99d6 (patch)
tree8511a085e413d813f660b0a4efa122959b27b93e /Makefile
parentf4475b5f9e2e5e0cbf86e756c0e6a1bebcf1efdd (diff)
downloadcert-manager-webhook-hostinger-a265ee04af9b21379c4f33cf8838e579f71d99d6.tar.gz
cert-manager-webhook-hostinger-a265ee04af9b21379c4f33cf8838e579f71d99d6.zip
Implement Hostinger DNS webhook
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 27d294d..b8efd83 100644
--- a/Makefile
+++ b/Makefile
@@ -13,12 +13,20 @@ ENVTEST_K8S_VERSION=1.35.0
HELM_FILES := $(shell find deploy/example-webhook)
# FIXME: The environment variables are required by the test helper in cert-manager, but not required to run the tests.
-test: setup-envtest
+.PHONY: test test-unit check-test-config
+test: check-test-config setup-envtest
TEST_ASSET_ETCD=$(LOCALBIN)/k8s/$(ENVTEST_K8S_VERSION)-$(OS)-$(ARCH)/etcd \
TEST_ASSET_KUBE_APISERVER=$(LOCALBIN)/k8s/$(ENVTEST_K8S_VERSION)-$(OS)-$(ARCH)/kube-apiserver \
TEST_ASSET_KUBECTL=$(LOCALBIN)/k8s/$(ENVTEST_K8S_VERSION)-$(OS)-$(ARCH)/kubectl \
+ $(GO) test -v -count=1 -tags=conformance -timeout=30m .
+
+test-unit:
$(GO) test -v .
+check-test-config:
+ @test -n "$$TEST_ZONE_NAME" || { echo "TEST_ZONE_NAME is required for live conformance tests" >&2; exit 1; }
+ @test -n "$$HOSTINGER_API_TOKEN" || { echo "HOSTINGER_API_TOKEN is required for live conformance tests" >&2; exit 1; }
+
.PHONY: clean
clean:
chmod -R u+w $(LOCALBIN) $(OUT) 2>/dev/null || true