]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Add unittests for PeeringState 67304/head
authorBill Scales <bill_scales@uk.ibm.com>
Thu, 22 Jan 2026 10:53:54 +0000 (10:53 +0000)
committerBill Scales <bill_scales@uk.ibm.com>
Thu, 19 Feb 2026 13:37:59 +0000 (13:37 +0000)
commit87e3334de7bda6ac90f43ab1d9a7c6359dd10d35
treec445b5620e8ae8741cbf5d7b868912ed8b152d91
parent53f8441172c46e34523029ab88f9db7a45514e84
osd: Add unittests for PeeringState

Add test harness for testing PeeringState. Add mock classes
for PeeringListener, PGBackendListener and PGBackend to allow
instances of PeeringState to be created. Test harness to pass
peering messages between OSD instances, configure the OSDMap
with a pool and one PG. Some basic initialization unittests
plus tests that run the whole peering process to active+cleam
including testing rollback of incomplete writes in an EC pool,
recovery, async recovery and backfill.

Includes tests for issues 71493, 73891 and 74218

AI: AI assisted in writing the mock classes providing stubs
for all the virtual functions and writing the simpler unittests.
Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
src/test/osd/CMakeLists.txt
src/test/osd/TestPeeringState.cc [new file with mode: 0644]