Skip to content

Commit

Permalink
feat(ci): disable cluster upgrade (#2275)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu committed May 5, 2023
1 parent 9b6302a commit 08e683b
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 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,21 @@ 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 08e683b

Please sign in to comment.