mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
Merge pull request #116071 from yuanchen8911/symlink
Add symlink data verification to statefulset e2e
This commit is contained in:
commit
b6d102d634
@ -157,6 +157,10 @@ var _ = SIGDescribe("StatefulSet", func() {
|
||||
ginkgo.By("Running " + cmd + " in all stateful pods")
|
||||
framework.ExpectNoError(e2estatefulset.ExecInStatefulPods(ctx, c, ss, cmd))
|
||||
|
||||
cmd = "ln -s /data/hostname /data/hostname-symlink"
|
||||
ginkgo.By("Running " + cmd + " in all stateful pods")
|
||||
framework.ExpectNoError(e2estatefulset.ExecInStatefulPods(ctx, c, ss, cmd))
|
||||
|
||||
ginkgo.By("Restarting statefulset " + ss.Name)
|
||||
e2estatefulset.Restart(ctx, c, ss)
|
||||
e2estatefulset.WaitForRunningAndReady(ctx, c, *ss.Spec.Replicas, ss)
|
||||
@ -167,6 +171,10 @@ var _ = SIGDescribe("StatefulSet", func() {
|
||||
cmd = "if [ \"$(cat /data/hostname)\" = \"$(hostname)\" ]; then exit 0; else exit 1; fi"
|
||||
ginkgo.By("Running " + cmd + " in all stateful pods")
|
||||
framework.ExpectNoError(e2estatefulset.ExecInStatefulPods(ctx, c, ss, cmd))
|
||||
|
||||
cmd = "if [ \"$(cat /data/hostname-symlink)\" = \"$(hostname)\" ]; then exit 0; else exit 1; fi"
|
||||
ginkgo.By("Running " + cmd + " in all stateful pods")
|
||||
framework.ExpectNoError(e2estatefulset.ExecInStatefulPods(ctx, c, ss, cmd))
|
||||
})
|
||||
|
||||
// This can't be Conformance yet because it depends on a default
|
||||
|
Loading…
Reference in New Issue
Block a user