Add latest v1beta1 release to main clusterctl upgrade e2e test
@@ -130,6 +130,31 @@ var _ = ginkgo.Context("[unmanaged] [Cluster API Framework]", func() {
})
})
+ ginkgo.Describe("Clusterctl Upgrade Spec [from latest v1beta1 release to main]", func() {
+ ginkgo.BeforeEach(func() {
+ // As the resources cannot be defined by the It() clause in CAPI tests, using the largest values required for all It() tests in this CAPI test.
+ requiredResources = &shared.TestResource{EC2Normal: 5 * e2eCtx.Settings.InstanceVCPU, IGW: 2, NGW: 2, VPC: 2, ClassicLB: 2, EIP: 2}
+ requiredResources.WriteRequestedResources(e2eCtx, "capi-clusterctl-upgrade-test-v1alpha3")
+ Expect(shared.AcquireResources(requiredResources, config.GinkgoConfig.ParallelNode, flock.New(shared.ResourceQuotaFilePath))).To(Succeed())
+ })
+
+ capi_e2e.ClusterctlUpgradeSpec(ctx, func() capi_e2e.ClusterctlUpgradeSpecInput {
+ return capi_e2e.ClusterctlUpgradeSpecInput{
+ E2EConfig: e2eCtx.E2EConfig,
+ ClusterctlConfigPath: e2eCtx.Environment.ClusterctlConfigPath,
+ BootstrapClusterProxy: e2eCtx.Environment.BootstrapClusterProxy,
+ ArtifactFolder: e2eCtx.Settings.ArtifactFolder,
+ SkipCleanup: e2eCtx.Settings.SkipCleanup,
+ MgmtFlavor: "remote-management-cluster",
+ InitWithBinary: e2eCtx.E2EConfig.GetVariable("INIT_WITH_BINARY_V1BETA1"),
+ InitWithProvidersContract: "v1beta1",
+ }
+ })
+ ginkgo.AfterEach(func() {
+ shared.ReleaseResources(requiredResources, config.GinkgoConfig.ParallelNode, flock.New(shared.ResourceQuotaFilePath))
+ })
+ })
+
ginkgo.Describe("Clusterctl Upgrade Spec [from v1alpha3]", func() {
ginkgo.BeforeEach(func() {
// As the resources cannot be defined by the It() clause in CAPI tests, using the largest values required for all It() tests in this CAPI test.
