Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Aug 23, 2019
1 parent e36c619 commit c3afb3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/unittests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def test_list_cluster_nodes_static(mock_get_member_iplist, mock_stdout2list):
mock_stdout2list.return_value = (1, None)
mock_get_member_iplist.return_value = None
os.environ['CIB_file'] = "cib_bsc_1145520.xml"
print(utils.list_cluster_nodes())
assert utils.list_cluster_nodes() == ["15sp1-1", "15sp1-2"]
mock_stdout2list.assert_called_once_with(['crm_node', '-l'], shell=False, stderr_on=False)
mock_get_member_iplist.assert_called_once_with()
Expand Down

0 comments on commit c3afb3b

Please sign in to comment.