Skip to content

Commit

Permalink
adds the ceph report command to ceph-api with basic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shutstart authored and arttor committed Jan 22, 2025
1 parent 9f2c83d commit 336ee1d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,4 @@ func Test_GetCephReport(t *testing.T) {
poolsList := poolsField.GetListValue()
r.NotNil(poolsList, "Pools field in OSDMap should be a list")

firstPool := poolsList.Values[0].GetStructValue()
r.NotNil(firstPool, "First pool should be a struct")
poolName, ok := firstPool.Fields["pool_name"]
r.True(ok, "Pool name field should exist in the first pool")
r.NotEmpty(poolName.GetStringValue(), "Pool name should not be empty")
}

0 comments on commit 336ee1d

Please sign in to comment.