Skip to content

Commit 547aaa8

Browse files
fix(e2e): break capx-feature test into two (#540)
capx-feature-test takes too long. it's now split between tests that solely exercise CAPX features and tests that solely exercise nutanix ahv features.
1 parent cef525d commit 547aaa8

File tree

9 files changed

+13
-11
lines changed

9 files changed

+13
-11
lines changed

.github/workflows/build-dev.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ jobs:
107107
- "clusterctl-upgrade"
108108
- "clusterclass"
109109
- "capx-feature-test"
110+
- "nutanix-feature-test"
110111
- "scaling"
112+
- "kubernetes-upgrade"
111113
fail-fast: false
112114
needs: check_approvals
113115
uses: ./.github/workflows/e2e.yaml

test/e2e/categories_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const (
3636
defaultNonExistingAdditionalCategoryValue = "nonExistingCategoryValueCAPX"
3737
)
3838

39-
var _ = Describe("Nutanix categories", Label("capx-feature-test", "categories"), func() {
39+
var _ = Describe("Nutanix categories", Label("nutanix-feature-test", "categories"), func() {
4040
const (
4141
specName = "cluster-categories"
4242
)

test/e2e/cluster_upgrade_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var _ = Describe("When upgrading a workload cluster and testing K8S conformance"
5555
// })
5656
// })
5757

58-
var _ = Describe("When upgrading a workload cluster with a single control plane machine", Label("cluster-upgrade-conformance"), func() {
58+
var _ = Describe("When upgrading a workload cluster with a single control plane machine", Label("kubernetes-upgrade"), func() {
5959
capi_e2e.ClusterUpgradeConformanceSpec(ctx, func() capi_e2e.ClusterUpgradeConformanceSpecInput {
6060
return capi_e2e.ClusterUpgradeConformanceSpecInput{
6161
E2EConfig: e2eConfig,
@@ -72,7 +72,7 @@ var _ = Describe("When upgrading a workload cluster with a single control plane
7272
})
7373
})
7474

75-
var _ = Describe("When upgrading a workload cluster with a HA control plane", Label("cluster-upgrade-conformance"), func() {
75+
var _ = Describe("When upgrading a workload cluster with a HA control plane", Label("kubernetes-upgrade"), func() {
7676
capi_e2e.ClusterUpgradeConformanceSpec(ctx, func() capi_e2e.ClusterUpgradeConformanceSpecInput {
7777
return capi_e2e.ClusterUpgradeConformanceSpecInput{
7878
E2EConfig: e2eConfig,
@@ -89,7 +89,7 @@ var _ = Describe("When upgrading a workload cluster with a HA control plane", La
8989
})
9090
})
9191

92-
var _ = Describe("When upgrading a workload cluster with a HA control plane using scale-in rollout", Label("cluster-upgrade-conformance"), func() {
92+
var _ = Describe("When upgrading a workload cluster with a HA control plane using scale-in rollout", Label("kubernetes-upgrade"), func() {
9393
capi_e2e.ClusterUpgradeConformanceSpec(ctx, func() capi_e2e.ClusterUpgradeConformanceSpecInput {
9494
return capi_e2e.ClusterUpgradeConformanceSpecInput{
9595
E2EConfig: e2eConfig,

test/e2e/clusterclass_changes_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
capi_e2e "sigs.k8s.io/cluster-api/test/e2e"
2626
)
2727

28-
var _ = Describe("When mutating ClusterClass fields", Label("clusterclass", "capx-feature-test"), func() {
28+
var _ = Describe("When mutating ClusterClass fields", Label("clusterclass"), func() {
2929
capi_e2e.ClusterClassChangesSpec(ctx, func() capi_e2e.ClusterClassChangesSpecInput {
3030
return capi_e2e.ClusterClassChangesSpecInput{
3131
E2EConfig: e2eConfig,

test/e2e/csi_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
"sigs.k8s.io/controller-runtime/pkg/client"
3636
)
3737

38-
var _ = Describe("Nutanix flavor CSI", Label("capx-feature-test", "csi"), func() {
38+
var _ = Describe("Nutanix flavor CSI", Label("nutanix-feature-test", "csi"), func() {
3939
const (
4040
specName = "cluster-csi"
4141

test/e2e/data_disks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
infrav1 "github.com/nutanix-cloud-native/cluster-api-provider-nutanix/api/v1beta1"
3232
)
3333

34-
var _ = Describe("Nutanix machine data disks", Label("capx-feature-test", "data-disks"), func() {
34+
var _ = Describe("Nutanix machine data disks", Label("nutanix-feature-test", "data-disks"), func() {
3535
const specName = "cluster-data-disks"
3636

3737
var (

test/e2e/gpu_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const (
3535
nutanixGPUVirtualNameEnv = "NUTANIX_GPU_VIRTUAL_NAME"
3636
)
3737

38-
var _ = Describe("Nutanix Passthrough GPU", Label("capx-feature-test", "only-for-validation", "passthrough", "gpu"), func() {
38+
var _ = Describe("Nutanix Passthrough GPU", Label("nutanix-feature-test", "only-for-validation", "passthrough", "gpu"), func() {
3939
const specName = "cluster-gpu-passthrough"
4040

4141
var (
@@ -187,7 +187,7 @@ var _ = Describe("Nutanix Passthrough GPU", Label("capx-feature-test", "only-for
187187
})
188188
})
189189

190-
var _ = Describe("Nutanix Virtual GPU", Label("capx-feature-test", "only-for-validation", "virtual", "gpu"), func() {
190+
var _ = Describe("Nutanix Virtual GPU", Label("nutanix-feature-test", "only-for-validation", "virtual", "gpu"), func() {
191191
const specName = "cluster-gpu-virtual"
192192

193193
var (

test/e2e/multi_nic_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const (
3535
additionalSubnetVarKey = "NUTANIX_ADDITIONAL_SUBNET_NAME"
3636
)
3737

38-
var _ = Describe("Nutanix Subnets", Label("capx-feature-test", "multi-nic"), func() {
38+
var _ = Describe("Nutanix Subnets", Label("nutanix-feature-test", "multi-nic"), func() {
3939
const specName = "cluster-multi-nic"
4040

4141
var (

test/e2e/projects_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
infrav1 "github.com/nutanix-cloud-native/cluster-api-provider-nutanix/api/v1beta1"
3232
)
3333

34-
var _ = Describe("Nutanix projects", Label("capx-feature-test", "projects"), func() {
34+
var _ = Describe("Nutanix projects", Label("nutanix-feature-test", "projects"), func() {
3535
const (
3636
specName = "cluster-projects"
3737
nonExistingProjectName = "nonExistingProjectNameCAPX"

0 commit comments

Comments
 (0)