Skip to content

Commit

Permalink
feat(ci): disable cluster upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
leonarliu committed May 5, 2023
1 parent 4f58b96 commit 5880155
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/e2e_installer/cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
v1 "tkestack.io/tke/api/application/v1"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
// . "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -108,19 +108,19 @@ var _ = Describe("cluster", func() {
Expect(cls.Spec.Type).Should(Equal("Imported"), "Cluster type was not 'Imported'")
})

DescribeTable("Upgrade cluster",
func(oldVersion, newVersion string) {
cls = testTKE.ClusterTemplate()
cls.Spec.Version = oldVersion
cls, err = testTKE.CreateClusterInternal(cls)
Expect(err).To(BeNil(), "Create cluster failed")

cls, err = testTKE.UpgradeCluster(cls.Name, newVersion, platformv1.UpgradeModeAuto, false)
Expect(err).Should(BeNil(), "Upgrade cluster failed")
Expect(cls.Spec.Version).Should(Equal(newVersion), "Cluster version is wrong")
},
// Entry("1.19.7->1.20.4", "1.19.7", "1.20.4"),
Entry("1.20.6-tke.2->1.21.4-tke.3", "1.20.6-tke.2", "1.21.4-tke.3"))
// DescribeTable("Upgrade cluster",
// func(oldVersion, newVersion string) {
// cls = testTKE.ClusterTemplate()
// cls.Spec.Version = oldVersion
// cls, err = testTKE.CreateClusterInternal(cls)
// Expect(err).To(BeNil(), "Create cluster failed")

// cls, err = testTKE.UpgradeCluster(cls.Name, newVersion, platformv1.UpgradeModeAuto, false)
// Expect(err).Should(BeNil(), "Upgrade cluster failed")
// Expect(cls.Spec.Version).Should(Equal(newVersion), "Cluster version is wrong")
// },
// // Entry("1.19.7->1.20.4", "1.19.7", "1.20.4"),
// Entry("1.20.6-tke.2->1.21.4-tke.3", "1.20.6-tke.2", "1.21.4-tke.3"))

It("Cluster scaling", func() {
// Prepare two instances
Expand Down

0 comments on commit 5880155

Please sign in to comment.