Skip to content

Commit

Permalink
add quick e2e tests for vsphere (#7564)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxbrowne1207 authored Feb 13, 2024
1 parent 56b58de commit 91339ef
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/QUICK_TESTS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ quick_tests:
# Docker
- TestDocker.*128
# vSphere
- ^TestVSphereKubernetes127To128RedHatUpgrade$
- TestVSphereKubernetes127To128StackedEtcdRedHatUpgrade
- ^TestVSphereKubernetes127UbuntuTo128Upgrade$
- TestVSphereKubernetes127UbuntuTo128StackedEtcdUpgrade
- TestVSphereKubernetes127To128Ubuntu2204Upgrade
- TestVSphereKubernetes127To128Ubuntu2204StackedEtcdUpgrade
- TestVSphereKubernetes128Ubuntu2004To2204Upgrade
- TestVSphereKubernetes127BottlerocketTo128Upgrade
- TestVSphereKubernetes127BottlerocketTo128StackedEtcdUpgrade
Expand Down
50 changes: 50 additions & 0 deletions test/e2e/vsphere_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,37 @@ func TestVSphereKubernetes128RedHatSimpleFlow(t *testing.T) {
runSimpleFlow(test)
}

func TestVSphereKubernetes127To128RedHatUpgrade(t *testing.T) {
provider := framework.NewVSphere(t, framework.WithRedHat127VSphere())
test := framework.NewClusterE2ETest(
t,
provider,
framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube127)),
)
runSimpleUpgradeFlow(
test,
v1alpha1.Kube128,
framework.WithClusterUpgrade(api.WithKubernetesVersion(v1alpha1.Kube128)),
provider.WithProviderUpgrade(provider.Redhat128Template()),
)
}

func TestVSphereKubernetes127To128StackedEtcdRedHatUpgrade(t *testing.T) {
provider := framework.NewVSphere(t, framework.WithRedHat127VSphere())
test := framework.NewClusterE2ETest(
t,
provider,
framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube127)),
framework.WithClusterFiller(api.WithStackedEtcdTopology()),
)
runSimpleUpgradeFlow(
test,
v1alpha1.Kube128,
framework.WithClusterUpgrade(api.WithKubernetesVersion(v1alpha1.Kube128)),
provider.WithProviderUpgrade(provider.Redhat128Template()),
)
}

func TestVSphereKubernetes128ThreeReplicasFiveWorkersSimpleFlow(t *testing.T) {
test := framework.NewClusterE2ETest(
t,
Expand Down Expand Up @@ -1880,6 +1911,25 @@ func TestVSphereKubernetes127To128Ubuntu2204Upgrade(t *testing.T) {
)
}

func TestVSphereKubernetes127To128Ubuntu2204StackedEtcdUpgrade(t *testing.T) {
provider := framework.NewVSphere(t)
test := framework.NewClusterE2ETest(
t,
provider,
).WithClusterConfig(
provider.WithKubeVersionAndOS(v1alpha1.Kube127, framework.Ubuntu2204, nil),
api.ClusterToConfigFiller(
api.WithStackedEtcdTopology(),
),
)
runSimpleUpgradeFlowWithoutClusterConfigGeneration(
test,
v1alpha1.Kube128,
framework.WithClusterUpgrade(api.WithKubernetesVersion(v1alpha1.Kube128)),
provider.WithProviderUpgrade(provider.Ubuntu2204Kubernetes128Template()),
)
}

func TestVSphereKubernetes126Ubuntu2004To2204Upgrade(t *testing.T) {
provider := framework.NewVSphere(t)
test := framework.NewClusterE2ETest(
Expand Down

0 comments on commit 91339ef

Please sign in to comment.