mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: validate storing of csi.volume.owner attribute
The csi.volume.owner should get stored when the csi-provisioner sidecar passes additional metadata. This option is now enabled by default, so the owner (Kubernetes Namespace) of RBD images is expected to be available. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
16cb43f0f9
commit
bccd5cef46
18
e2e/rbd.go
18
e2e/rbd.go
@ -260,6 +260,15 @@ var _ = Describe("RBD", func() {
|
||||
}
|
||||
})
|
||||
|
||||
By("create a PVC and validate owner", func() {
|
||||
err := validateImageOwner(pvcPath, f)
|
||||
if err != nil {
|
||||
e2elog.Failf("failed to validate owner of pvc with error %v", err)
|
||||
}
|
||||
// validate created backend rbd images
|
||||
validateRBDImageCount(f, 0)
|
||||
})
|
||||
|
||||
By("create a PVC and bind it to an app", func() {
|
||||
err := validatePVCAndAppBinding(pvcPath, appPath, f)
|
||||
if err != nil {
|
||||
@ -1109,8 +1118,15 @@ var _ = Describe("RBD", func() {
|
||||
|
||||
updateConfigMap("e2e-ns")
|
||||
|
||||
err := validateImageOwner(pvcPath, f)
|
||||
if err != nil {
|
||||
e2elog.Failf("failed to validate owner of pvc with error %v", err)
|
||||
}
|
||||
// validate created backend rbd images
|
||||
validateRBDImageCount(f, 0)
|
||||
|
||||
// Create a PVC and bind it to an app within the namesapce
|
||||
err := validatePVCAndAppBinding(pvcPath, appPath, f)
|
||||
err = validatePVCAndAppBinding(pvcPath, appPath, f)
|
||||
if err != nil {
|
||||
e2elog.Failf("failed to validate pvc and application binding with error %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user