diff --git a/pkg/cmd/cluster/create_subcmds_test.go b/pkg/cmd/cluster/create_subcmds_test.go index 31441e3be..2caf11fe8 100644 --- a/pkg/cmd/cluster/create_subcmds_test.go +++ b/pkg/cmd/cluster/create_subcmds_test.go @@ -46,9 +46,8 @@ import ( var _ = Describe("create cluster by cluster type", func() { const ( - clusterType = "apecloud-mysql" - redisCluster = "redis" - redisComponent = "redis-cluster" + clusterType = "apecloud-mysql" + redisCluster = "redis" ) var ( @@ -164,7 +163,7 @@ var _ = Describe("create cluster by cluster type", func() { Expect(o.Complete(shardCmd)).Should(Succeed()) Expect(o.Name).ShouldNot(BeEmpty()) Expect(o.Values).ShouldNot(BeNil()) - Expect(o.ChartInfo.ComponentDef[0]).Should(Equal(redisComponent)) + Expect(o.ChartInfo.ClusterDef).Should(Equal(redisCluster)) By("validate") o.Dynamic = testing.FakeDynamicClient()