Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove bad test case #28

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 0 additions & 56 deletions test/e2e/polardbxcluster/lifecycle/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,62 +244,6 @@ var _ = ginkgo.Describe("[PolarDBXCluster] [Lifecycle:Upgrade]", func() {
pxcframework.NewExpectation(f, obj).ExpectCDCDeploymentsOk()
})

ginkgo.It("should columnar numbers 0 to 1 be as expected", func() {
resources := corev1.ResourceRequirements{
Limits: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("2"),
corev1.ResourceMemory: resource.MustParse("2Gi"),
},
Requests: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("100m"),
corev1.ResourceMemory: resource.MustParse("100Mi"),
},
}
obj := pxcframework.NewPolarDBXCluster(
"e2e-test-upgrade-columnar-number-0-1",
f.Namespace,
pxcframework.ProtocolVersion(5),
pxcframework.TopologyNode("cn", 2, "", "", false, resources),
pxcframework.TopologyNode("dn", 2, "", "", false, resources),
pxcframework.TopologyNode("cdc", 2, "", "", false, resources),
)

// Always run clean up to make sure objects are cleaned.
defer DeletePolarDBXClusterAndWaitUntilItDisappear(f, obj, 1*time.Minute)

// Do create and verify.
CreatePolarDBXClusterAndWaitUntilRunningOrFail(f, obj, 10*time.Minute)

// Update object.
framework.ExpectNoError(f.Client.Get(f.Ctx, types.NamespacedName{
Name: obj.Name, Namespace: f.Namespace,
}, obj))

// Expect sub-resources (especially deployments and xstores ok)
exp := pxcframework.NewExpectation(f, obj)
exp.ExpectDeploymentsOk()
exp.ExpectXStoresOk()

obj.Spec.Topology.Nodes.Columnar = &polardbxv1polardbx.TopologyNodeColumnar{
Replicas: 1,
Template: polardbxv1polardbx.ColumnarTemplate{
Image: "registry.cn-zhangjiakou.aliyuncs.com/drds_pre/polardbx-columnar:v1",
},
}
err := f.Client.Update(f.Ctx, obj)
framework.ExpectNoError(err)

framework.ExpectNoError(f.Client.Get(f.Ctx, types.NamespacedName{
Name: obj.Name, Namespace: f.Namespace,
}, obj))

obj, err = pxcframework.WaitUntilPolarDBXClusterUpgradeCompleteOrFail(f.Client, obj.Name, obj.Namespace, 10*time.Minute)
framework.ExpectNoError(err)
pxcframework.ExpectBeInPhase(obj, polardbxv1polardbx.PhaseRunning)

pxcframework.NewExpectation(f, obj).ExpectColumnarDeploymentsOk()
})

ginkgo.It("should cn resource upgrade as expected", func() {
resources := corev1.ResourceRequirements{
Limits: corev1.ResourceList{
Expand Down
Loading