mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #67511 from oomichi/add-debug-info
Add debugging info in pv/pvc protection e2e tests
This commit is contained in:
commit
b5615259e5
@ -85,7 +85,7 @@ var _ = utils.SIGDescribe("PV Protection", func() {
|
|||||||
By("Checking that PV Protection finalizer is set")
|
By("Checking that PV Protection finalizer is set")
|
||||||
pv, err = client.CoreV1().PersistentVolumes().Get(pv.Name, metav1.GetOptions{})
|
pv, err = client.CoreV1().PersistentVolumes().Get(pv.Name, metav1.GetOptions{})
|
||||||
Expect(err).NotTo(HaveOccurred(), "While getting PV status")
|
Expect(err).NotTo(HaveOccurred(), "While getting PV status")
|
||||||
Expect(slice.ContainsString(pv.ObjectMeta.Finalizers, volumeutil.PVProtectionFinalizer, nil)).To(BeTrue())
|
Expect(slice.ContainsString(pv.ObjectMeta.Finalizers, volumeutil.PVProtectionFinalizer, nil)).To(BeTrue(), "PV Protection finalizer(%v) is not set in %v", volumeutil.PVProtectionFinalizer, pv.ObjectMeta.Finalizers)
|
||||||
})
|
})
|
||||||
|
|
||||||
AfterEach(func() {
|
AfterEach(func() {
|
||||||
|
@ -64,7 +64,7 @@ var _ = utils.SIGDescribe("PVC Protection", func() {
|
|||||||
By("Checking that PVC Protection finalizer is set")
|
By("Checking that PVC Protection finalizer is set")
|
||||||
pvc, err = client.CoreV1().PersistentVolumeClaims(pvc.Namespace).Get(pvc.Name, metav1.GetOptions{})
|
pvc, err = client.CoreV1().PersistentVolumeClaims(pvc.Namespace).Get(pvc.Name, metav1.GetOptions{})
|
||||||
Expect(err).NotTo(HaveOccurred(), "While getting PVC status")
|
Expect(err).NotTo(HaveOccurred(), "While getting PVC status")
|
||||||
Expect(slice.ContainsString(pvc.ObjectMeta.Finalizers, volumeutil.PVCProtectionFinalizer, nil)).To(BeTrue())
|
Expect(slice.ContainsString(pvc.ObjectMeta.Finalizers, volumeutil.PVCProtectionFinalizer, nil)).To(BeTrue(), "PVC Protection finalizer(%v) is not set in %v", volumeutil.PVCProtectionFinalizer, pvc.ObjectMeta.Finalizers)
|
||||||
})
|
})
|
||||||
|
|
||||||
AfterEach(func() {
|
AfterEach(func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user