Skip to content

Commit

Permalink
Add remaining quick e2e tests for cloudstack, nutanix and snow (#7643)
Browse files Browse the repository at this point in the history
* add remaining quick e2e tests for cloudstack, nutanix and snow

* skip new stacked etcd snow simple flow test
  • Loading branch information
cxbrowne1207 authored Feb 20, 2024
1 parent 2171fea commit c3ac3a8
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e/QUICK_TESTS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ quick_tests:
- TestVSphereKubernetes128BottlerocketTo129StackedEtcdUpgrade
# CloudStack
- TestCloudStackKubernetes128To129RedhatMultipleFieldsUpgrade
- TestCloudStackKubernetes128To129StackedEtcdRedhatMultipleFieldsUpgrade
# Nutanix
- TestNutanixKubernetes128to129RedHat9Upgrade
- TestNutanixKubernetes128to129StackedEtcdRedHat9Upgrade
- TestNutanixKubernetes128to129RedHat8Upgrade
- TestNutanixKubernetes128to129StackedEtcdRedHat8Upgrade
- TestNutanixKubernetes128To129UbuntuUpgrade
- TestNutanixKubernetes128To129StackedEtcdUbuntuUpgrade
# Snow
# - TestSnowKubernetes128SimpleFlow
# - TestSnowKubernetes128StackedEtcdSimpleFlow
# Tinkerbell
# - ^TestTinkerbellKubernetes127UbuntuTo128Upgrade$
# - TestTinkerbellKubernetes128Ubuntu2004To2204Upgrade
Expand Down
1 change: 1 addition & 0 deletions test/e2e/SKIPPED_TESTS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ skipped_tests:
- TestSnowKubernetes126SimpleFlow
- TestSnowKubernetes127SimpleFlow
- TestSnowKubernetes128SimpleFlow
- TestSnowKubernetes128StackedEtcdSimpleFlow
- TestSnowKubernetes127To128UbuntuManagementCPUpgradeAPI
- TestSnowKubernetes128UbuntuAWSIamAuth
- TestSnowKubernetes127To128AWSIamAuthUpgrade
Expand Down
20 changes: 20 additions & 0 deletions test/e2e/cloudstack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3500,6 +3500,26 @@ func TestCloudStackKubernetes128To129RedhatMultipleFieldsUpgrade(t *testing.T) {
)
}

func TestCloudStackKubernetes128To129StackedEtcdRedhatMultipleFieldsUpgrade(t *testing.T) {
provider := framework.NewCloudStack(t, framework.WithCloudStackRedhat9Kubernetes128())
test := framework.NewClusterE2ETest(
t,
provider,
framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube128)),
framework.WithClusterFiller(api.WithStackedEtcdTopology()),
)
runSimpleUpgradeFlow(
test,
v1alpha1.Kube129,
framework.WithClusterUpgrade(api.WithKubernetesVersion(v1alpha1.Kube129)),
framework.WithClusterFiller(api.WithControlPlaneCount(1)),
provider.WithProviderUpgrade(
provider.Redhat9Kubernetes129Template(),
framework.UpdateLargerCloudStackComputeOffering(),
),
)
}

// This test is skipped as registry mirror was not configured for CloudStack
func TestCloudStackKubernetes125RedhatAirgappedRegistryMirror(t *testing.T) {
test := framework.NewClusterE2ETest(
Expand Down
55 changes: 55 additions & 0 deletions test/e2e/nutanix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,12 +649,29 @@ func TestNutanixKubernetes127To128UbuntuUpgrade(t *testing.T) {
)
}

func TestNutanixKubernetes128To129StackedEtcdUbuntuUpgrade(t *testing.T) {
provider := framework.NewNutanix(t, framework.WithUbuntu128Nutanix())
test := framework.NewClusterE2ETest(
t,
provider,
framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube128)),
framework.WithClusterFiller(api.WithStackedEtcdTopology()),
)
runSimpleUpgradeFlow(
test,
v1alpha1.Kube129,
framework.WithClusterUpgrade(api.WithKubernetesVersion(v1alpha1.Kube129)),
provider.WithProviderUpgrade(provider.Ubuntu129Template()),
)
}

func TestNutanixKubernetes128To129UbuntuUpgrade(t *testing.T) {
provider := framework.NewNutanix(t, framework.WithUbuntu128Nutanix())
test := framework.NewClusterE2ETest(
t,
provider,
framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube128)),
framework.WithClusterFiller(api.WithExternalEtcdTopology(1)),
)
runSimpleUpgradeFlow(
test,
Expand Down Expand Up @@ -723,6 +740,25 @@ func TestNutanixKubernetes128to129RedHat8Upgrade(t *testing.T) {
framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube128)),
framework.WithClusterFiller(api.WithControlPlaneCount(1)),
framework.WithClusterFiller(api.WithWorkerNodeCount(1)),
framework.WithClusterFiller(api.WithExternalEtcdTopology(1)),
)
runSimpleUpgradeFlow(
test,
v1alpha1.Kube129,
framework.WithClusterUpgrade(api.WithKubernetesVersion(v1alpha1.Kube129)),
provider.WithProviderUpgrade(provider.RedHat129Template()),
)
}

func TestNutanixKubernetes128to129StackedEtcdRedHat8Upgrade(t *testing.T) {
provider := framework.NewNutanix(t, framework.WithRedHat128Nutanix())
test := framework.NewClusterE2ETest(
t,
provider,
framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube128)),
framework.WithClusterFiller(api.WithControlPlaneCount(1)),
framework.WithClusterFiller(api.WithWorkerNodeCount(1)),
framework.WithClusterFiller(api.WithStackedEtcdTopology()),
)
runSimpleUpgradeFlow(
test,
Expand Down Expand Up @@ -774,6 +810,25 @@ func TestNutanixKubernetes128to129RedHat9Upgrade(t *testing.T) {
framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube128)),
framework.WithClusterFiller(api.WithControlPlaneCount(1)),
framework.WithClusterFiller(api.WithWorkerNodeCount(1)),
framework.WithClusterFiller(api.WithExternalEtcdTopology(1)),
)
runSimpleUpgradeFlow(
test,
v1alpha1.Kube129,
framework.WithClusterUpgrade(api.WithKubernetesVersion(v1alpha1.Kube129)),
provider.WithProviderUpgrade(provider.RedHat9Kubernetes129Template()),
)
}

func TestNutanixKubernetes128to129StackedEtcdRedHat9Upgrade(t *testing.T) {
provider := framework.NewNutanix(t, framework.WithRedHat9Kubernetes128Nutanix())
test := framework.NewClusterE2ETest(
t,
provider,
framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube128)),
framework.WithClusterFiller(api.WithControlPlaneCount(1)),
framework.WithClusterFiller(api.WithWorkerNodeCount(1)),
framework.WithClusterFiller(api.WithStackedEtcdTopology()),
)
runSimpleUpgradeFlow(
test,
Expand Down
10 changes: 10 additions & 0 deletions test/e2e/snow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,16 @@ func TestSnowKubernetes128SimpleFlow(t *testing.T) {
runSimpleFlow(test)
}

func TestSnowKubernetes128StackedEtcdSimpleFlow(t *testing.T) {
test := framework.NewClusterE2ETest(
t,
framework.NewSnow(t, framework.WithSnowUbuntu128()),
framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube128)),
framework.WithClusterFiller(api.WithStackedEtcdTopology()),
)
runSimpleFlow(test)
}

// Taints
func TestSnowKubernetes128UbuntuTaintsUpgradeFlow(t *testing.T) {
provider := framework.NewSnow(t,
Expand Down

0 comments on commit c3ac3a8

Please sign in to comment.