Skip to content

Commit 0c82877

Browse files
committed
e2e: wait for operator deployment to disable metadata
Signed-off-by: Niels de Vos <ndevos@ibm.com>
1 parent 4754365 commit 0c82877

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

e2e/operator.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ func (OperatorDeployment) setEnableMetadata(value bool) error {
7373
return err
7474
}
7575

76+
// FIXME: wait for the change to be propagated to the pods (see e2e/rbd.go)
77+
7678
return nil
7779
}
7880

e2e/rbd.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5221,6 +5221,12 @@ var _ = Describe("RBD", func() {
52215221
cephCSINamespace, rbdDeployment.getDeploymentName(), err)
52225222
}
52235223

5224+
// FIXME: OperatorDeployment.setEnableMetadata() should wait
5225+
if testOperator {
5226+
// give ceph-csi-operator time to apply the change
5227+
time.Sleep(1 * time.Minute)
5228+
}
5229+
52245230
pvcSmartClone, err := loadPVC(pvcSmartClonePath)
52255231
if err != nil {
52265232
logAndFail("failed to load PVC: %v", err)

0 commit comments

Comments
 (0)