Skip to content

Commit

Permalink
Dev: unittest: Add unit test for utils.compatible_role
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Dec 6, 2022
1 parent 8d593c3 commit 0a0bf0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unittests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1729,3 +1729,7 @@ def test_handle_role_for_ocf_1_1_return(mock_support):

def test_handle_role_for_ocf_1_1_return_not_role():
assert utils.handle_role_for_ocf_1_1("test", name='other') == "test"


def test_compatible_role():
assert utils.compatible_role("Slave", "Unpromoted") is True

0 comments on commit 0a0bf0a

Please sign in to comment.