rbd: test for image GlobalID inequality

Signed-off-by: Daniel R <github@dann.me>
This commit is contained in:
DanWritesCode 2023-09-29 11:43:08 -04:00 committed by mergify[bot]
parent d5c981d9cb
commit e1731150a5

View File

@ -882,6 +882,7 @@ func TestMirrorImageLists(t *testing.T) {
assert.Len(t, lst, 10)
for i := 1; i < len(lst); i++ {
assert.NotEqual(t, lst[i-1].ID, lst[i].ID)
assert.NotEqual(t, lst[i-1].Status.Info.GlobalID, lst[i].Status.Info.GlobalID)
}
for i := 1; i <= iterBufSize; i++ {
lst, err := MirrorImageGlobalStatusList(ioctx, "", i)