You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/e2e/storage/persistent_volumes.go
+51Lines changed: 51 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -201,6 +201,57 @@ var _ = utils.SIGDescribe("PersistentVolumes", func() {
201
201
framework.ExpectNoError(err)
202
202
completeTest(ctx, f, c, ns, pv, pvc)
203
203
})
204
+
205
+
// Create PV and pre-bound PVC that matches the PV, verify that when PV and PVC bind
206
+
// the LastPhaseTransitionTime filed of the PV is updated.
207
+
ginkgo.It("create a PV and a pre-bound PVC: test phase transition timestamp is set [Feature: PersistentVolumeLastPhaseTransitionTime]", func(ctx context.Context) {
framework.Failf("Persistent volume %v should have LastPhaseTransitionTime value set after transitioning phase, but it's nil.", pv.GetName())
220
+
}
221
+
completeTest(ctx, f, c, ns, pv, pvc)
222
+
})
223
+
224
+
// Create PV and pre-bound PVC that matches the PV, verify that when PV and PVC bind
225
+
// the LastPhaseTransitionTime field of the PV is set, then delete the PVC to change PV phase to
226
+
// released and validate PV LastPhaseTransitionTime correctly updated timestamp.
227
+
ginkgo.It("create a PV and a pre-bound PVC: test phase transition timestamp multiple updates [Feature: PersistentVolumeLastPhaseTransitionTime]", func(ctx context.Context) {
framework.Failf("Persistent volume %v should have LastPhaseTransitionTime value updated to be chronologically after previous phase change: %v, but it's %v.", pv.GetName(), firstPhaseTransition, pv.Status.LastPhaseTransitionTime)
253
+
}
254
+
})
204
255
})
205
256
206
257
// Create multiple pvs and pvcs, all in the same namespace. The PVs-PVCs are
0 commit comments