diff --git a/test/e2e/apps/statefulset.go b/test/e2e/apps/statefulset.go index 17769b7bcee..dac920ed72e 100644 --- a/test/e2e/apps/statefulset.go +++ b/test/e2e/apps/statefulset.go @@ -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