-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove kubetest2 integration in favour of exploring another e2e framework. * Revert "Update test export API version (#12)" This reverts commit 50cf0a1. * Revert "Create end to end testing deployment (#9)" This reverts commit b5fa92a. * Revert "Add kubetest2-kind for end to end testing (#8)" This reverts commit e0d0ea7.
- Loading branch information
1 parent
9642045
commit 2158517
Showing
7 changed files
with
2 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,18 +58,6 @@ test: manifests generate generate-mocks fmt vet ## Run tests. | |
test -f ${ENVTEST_ASSETS_DIR}/setup-envtest.sh || curl -sSLo ${ENVTEST_ASSETS_DIR}/setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/v0.7.2/hack/setup-envtest.sh | ||
source ${ENVTEST_ASSETS_DIR}/setup-envtest.sh; fetch_envtest_tools $(ENVTEST_ASSETS_DIR); setup_envtest_env $(ENVTEST_ASSETS_DIR); go test ./... -coverprofile cover.out | ||
|
||
KUBECTL=$(ENVTEST_ASSETS_DIR)/bin/kubectl | ||
TEST_CONFIG=$(shell pwd)/testconfig | ||
E2E_CLUSTER=aws-cloudmap-mcs-e2e | ||
e2e-test: manifests kustomize kubetest2 fmt vet | ||
$(KUBETEST2-KIND) --cluster-name $(E2E_CLUSTER) --up | ||
$(KUSTOMIZE) build config/crd | $(KUBECTL) apply -f - | ||
$(KUBECTL) create namespace aws-cloudmap-mcs-e2e | ||
$(KUBECTL) apply -f $(TEST_CONFIG)/e2e-deployment.yaml | ||
$(KUBECTL) apply -f $(TEST_CONFIG)/e2e-service-one.yaml | ||
$(KUBECTL) apply -f $(TEST_CONFIG)/e2e-export.yaml | ||
$(KUBETEST2-KIND) --cluster-name $(E2E_CLUSTER) --down | ||
|
||
##@ Build | ||
|
||
build: manifests generate generate-mocks fmt vet ## Build manager binary. | ||
|
@@ -118,9 +106,6 @@ MOCKGEN = $(shell pwd)/bin/mockgen | |
mockgen: ## Download mockgen | ||
$(call go-get-tool,$(MOCKGEN),github.com/golang/mock/[email protected]) | ||
|
||
KUBETEST2-KIND = $(shell pwd)/bin/kubetest2-kind | ||
kubetest2: ## Download kubetest2 | ||
$(call go-get-tool,$(KUBETEST2-KIND),sigs.k8s.io/kubetest2/kubetest2-kind@latest) | ||
|
||
# go-get-tool will 'go get' any package $2 and install it to $1. | ||
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST)))) | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.