]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/librbd: add test condition for whole-object switch with fast diff enable
authorSunny Kumar <sunkumar@redhat.com>
Tue, 15 Jun 2021 13:19:44 +0000 (14:19 +0100)
committerSunny Kumar <sunkumar@redhat.com>
Wed, 16 Jun 2021 09:49:50 +0000 (10:49 +0100)
commit8d62c4adf74d2aee02f12bc1955490175b55bfda
tree17fa54bba885b5be841183dd6fd36063dadfca9b
parent399a45e113322f3b2f8be9af83044c3aee8d96b9
test/librbd: add test condition for whole-object switch with fast diff enable

This patch adds a test condition to test fast diff between two snapshots
with whole-object switch.

`TestMockObjectMapDiffRequest.EndDelta` expects diff state
`DIFF_STATE_DATA_UPDATED` which is an incorrect expectation when diff is calculated
between two snapshots.

Fixes: https://tracker.ceph.com/issues/50787
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
src/test/librbd/object_map/test_mock_DiffRequest.cc