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 5, 2022
1 parent d905297 commit b3a84df
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 b3a84df

Please sign in to comment.