Skip to content

Commit 601bf75

Browse files
Merge pull request #610 from replicatedhq/diamonwiggins/fix-flaky-ceph-test
Fix flaky Ceph analyzer test
2 parents 0f2976c + 69b34c4 commit 601bf75

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

pkg/analyze/ceph_test.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,14 @@ func Test_cephStatus(t *testing.T) {
219219
}`,
220220
},
221221
{
222-
name: "warn case with multiple health status messages",
222+
name: "warn case with health status message and summary",
223223
analyzer: troubleshootv1beta2.CephStatusAnalyze{},
224224
expectResult: AnalyzeResult{
225225
IsPass: false,
226226
IsWarn: true,
227227
IsFail: false,
228228
Title: "Ceph Status",
229-
Message: "Ceph status is HEALTH_WARN\nPOOL_NO_REDUNDANCY: 11 pool(s) have no replicas configured\nPOOL_PG_NUM_NOT_POWER_OF_TWO: 8 pool(s) have non-power-of-two pg_num",
229+
Message: "Ceph status is HEALTH_WARN\nPOOL_NO_REDUNDANCY: 11 pool(s) have no replicas configured",
230230
URI: "https://rook.io/docs/rook/v1.4/ceph-common-issues.html",
231231
IconKey: "rook",
232232
IconURI: "https://troubleshoot.sh/images/analyzer-icons/rook.svg?w=11&h=16",
@@ -244,12 +244,6 @@ func Test_cephStatus(t *testing.T) {
244244
"count": 11
245245
},
246246
"muted": false
247-
},
248-
"POOL_PG_NUM_NOT_POWER_OF_TWO": {
249-
"severity": "HEALTH_WARN",
250-
"summary": {
251-
"message": "8 pool(s) have non-power-of-two pg_num"
252-
}
253247
}
254248
}
255249
}

0 commit comments

Comments
 (0)