]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
src/test/mon: test_monmap_monitor.cc 68409/head
authorKamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
Wed, 22 Apr 2026 23:28:18 +0000 (23:28 +0000)
committerKamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
Mon, 11 May 2026 15:53:44 +0000 (15:53 +0000)
commitb3c35bc41970caae1ca96ffa17d8c1f44ba457f7
treee8023a516c7e5b8d27d817f3a156c6d359b5bfd2
parentd52cfb50ddd9817e39cac08b4e727f4f9488a817
src/test/mon: test_monmap_monitor.cc

Added the following test cases:
- Test success when explicitly supplied tiebreaker
- Test success when auto-selecting tiebreaker monitor
- Test success with minimal valid configuration (1 monitor per zone)
- Test success with auto-selection and minimal config (1 monitor per zone)
- Test success when strategy is automatically changed to CONNECTIVITY
- Test failure when auto-selecting and tiebreaker is in a data zone
- Test failure when explicitly specifying tiebreaker in a data zone
- Test failure when multiple potential tiebreakers exist
- Test failure when one data zone has 0 monitors
- Test failure when tiebreaker monitor doesn't exist

Signed-off-by: Kamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
src/test/mon/CMakeLists.txt
src/test/mon/test_monmap_monitor.cc [new file with mode: 0644]