Skip to content

Commit 5cdff5b

Browse files
committed
test: correct subset of tests
1 parent b25399c commit 5cdff5b

File tree

4 files changed

+6
-21
lines changed

4 files changed

+6
-21
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ vet: ## Run go vet against code.
8989

9090
.PHONY: test
9191
test: manifests generate update-test-crds fmt vet envtest ginkgo ## Run tests.
92-
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" $(GINKGO) -r --junit-report="junit.e2e_suite.xml" --cover -- $$(go list ./... | grep -v /e2e) -coverprofile cover.out
92+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" $(GINKGO) -r --junit-report="junit.e2e_suite.xml" --cover -coverprofile cover.out $$(go list ./... | grep -v /e2e | sed "s|github.com/metal-stack/cluster-api-provider-metal-stack|.|")
9393

9494
# The default setup assumes Kind is pre-installed and builds/loads the Manager Docker image locally.
9595
# Prometheus and CertManager are installed by default; skip with:
@@ -145,7 +145,7 @@ test-e2e: manifests generate fmt vet ginkgo
145145
FIREWALL_SIZE=$(E2E_FIREWALL_SIZE) \
146146
FIREWALL_NETWORKS=$(E2E_FIREWALL_NETWORKS) \
147147
ARTIFACTS=$(ARTIFACTS) \
148-
$(GINKGO) --tags=integration -vv -r --junit-report="junit.e2e_suite.xml" --output-dir="$(ARTIFACTS)" -timeout 60m ./test/e2e/frmwrk
148+
$(GINKGO) -vv -r --junit-report="junit.e2e_suite.xml" --output-dir="$(ARTIFACTS)" -timeout 60m ./test/e2e/frmwrk
149149

150150
.PHONY: lint
151151
lint: golangci-lint ## Run golangci-lint linter

test/e2e/frmwrk/bootstrap_test.go

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build integration
2-
// +build integration
3-
41
package frmwrk
52

63
import (
@@ -66,16 +63,10 @@ func createE2ECluster(ctx context.Context, e2eCtx *E2EContext, cfg ClusterConfig
6663
ec.GenerateAndApplyClusterTemplate(ctx)
6764

6865
By("Wait for cluster")
69-
cluster := framework.DiscoveryAndWaitForCluster(ctx, framework.DiscoveryAndWaitForClusterInput{
70-
Namespace: ec.NamespaceName,
71-
Name: ec.ClusterName,
72-
Getter: e2eCtx.Environment.Bootstrap.GetClient(),
73-
}, e2eCtx.E2EConfig.GetIntervals("default", "wait-cluster")...)
74-
7566
controlPlane := framework.GetKubeadmControlPlaneByCluster(ctx, framework.GetKubeadmControlPlaneByClusterInput{
7667
Lister: e2eCtx.Environment.Bootstrap.GetClient(),
77-
ClusterName: cluster.Name,
78-
Namespace: cluster.Namespace,
68+
ClusterName: ec.Refs.Cluster.Name,
69+
Namespace: ec.Refs.Cluster.Namespace,
7970
})
8071

8172
Expect(controlPlane).To(Not(BeNil()))
@@ -97,11 +88,11 @@ func createE2ECluster(ctx context.Context, e2eCtx *E2EContext, cfg ClusterConfig
9788
By("Wait for kubeadm control plane")
9889
framework.DiscoveryAndWaitForControlPlaneInitialized(ctx, framework.DiscoveryAndWaitForControlPlaneInitializedInput{
9990
Lister: e2eCtx.Environment.Bootstrap.GetClient(),
100-
Cluster: cluster,
91+
Cluster: ec.Refs.Cluster,
10192
}, e2eCtx.E2EConfig.GetIntervals("default", "wait-control-plane")...)
10293

10394
framework.WaitForClusterToProvision(ctx, framework.WaitForClusterToProvisionInput{
104-
Cluster: cluster,
95+
Cluster: ec.Refs.Cluster,
10596
Getter: e2eCtx.Environment.Bootstrap.GetClient(),
10697
}, e2eCtx.E2EConfig.GetIntervals("default", "wait-cluster-provisioned")...)
10798
return ec

test/e2e/frmwrk/frmwrk_suite_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build integration
2-
// +build integration
3-
41
package frmwrk
52

63
import (

test/e2e/frmwrk/shared.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build integration
2-
// +build integration
3-
41
package frmwrk
52

63
import (

0 commit comments

Comments
 (0)