Skip to content

Commit

Permalink
Merge pull request #617 from HumairAK/fix_make_functest
Browse files Browse the repository at this point in the history
chore: add ssl env to functest
  • Loading branch information
HumairAK committed Mar 25, 2024
2 parents 7228357 + 0eae400 commit 61a2209
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ endif
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec

ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))

.PHONY: all
all: build

Expand Down Expand Up @@ -123,7 +125,7 @@ unittest: manifests generate fmt vet envtest ## Run tests.

.PHONY: functest
functest: manifests generate fmt vet envtest ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./... --tags=test_functional -coverprofile cover.out
export SSL_CERT_FILE=${ROOT_DIR}/controllers/testdata/tls/ca-bundle.crt && KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./... --tags=test_functional -coverprofile cover.out

.PHONY: integrationtest
integrationtest: ## Run integration tests
Expand Down

0 comments on commit 61a2209

Please sign in to comment.