From 1e111897a9c32af9d3e5c058c976ff51d7e3b34b Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Wed, 13 Jan 2021 15:58:35 -0700 Subject: [PATCH] ceph: allow progressing status during integration test cleanup The integration tests check after every test suite that the cluster is either ready or connected. Sometimes the operator is in progressing state because the reconcile may be triggered by some event that is unpredictable at the end of the test. For test stability we allow the progressing status. Signed-off-by: Travis Nielsen --- tests/framework/installer/ceph_installer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/framework/installer/ceph_installer.go b/tests/framework/installer/ceph_installer.go index 5bc63beb0..b58224739 100644 --- a/tests/framework/installer/ceph_installer.go +++ b/tests/framework/installer/ceph_installer.go @@ -758,7 +758,7 @@ func (h *CephInstaller) checkCephHealthStatus(namespace string) { clusterResource, err := h.k8shelper.RookClientset.CephV1().CephClusters(namespace).Get(ctx, h.clusterName, metav1.GetOptions{}) assert.Nil(h.T(), err) clusterPhase := string(clusterResource.Status.Phase) - if clusterPhase != "Ready" && clusterPhase != "Connected" { + if clusterPhase != "Ready" && clusterPhase != "Connected" && clusterPhase != "Progressing" { assert.Equal(h.T(), "Ready", string(clusterResource.Status.Phase)) }