Skip to content

Commit 40fb852

Browse files
committed
Dev: unittests: Adjust unit test for previous commit
1 parent 5862937 commit 40fb852

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/unittests/test_bootstrap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,11 +1404,11 @@ def test_adjust_properties(self, mock_is_active, mock_2node_qdevice, mock_adj_pc
14041404
mock_adj_priority.assert_called_once_with(True)
14051405
mock_adj_fence.assert_called_once_with(True)
14061406

1407-
@mock.patch('crmsh.utils.cluster_copy_file')
1407+
@mock.patch('crmsh.utils.cluster_copy_path')
14081408
def test_sync_file_skip_csync2(self, mock_copy):
14091409
bootstrap._context = mock.Mock(skip_csync2=True, node_list_in_cluster=["node1", "node2"])
14101410
bootstrap.sync_file("/file1")
1411-
mock_copy.assert_called_once_with("/file1", nodes=["node1", "node2"], output=False)
1411+
mock_copy.assert_called_once_with("/file1", nodes=["node1", "node2"])
14121412

14131413
@mock.patch('crmsh.bootstrap.csync2_update')
14141414
def test_sync_file(self, mock_csync2_update):

test/unittests/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,9 +1391,9 @@ def test_fetch_cluster_node_list_from_node(mock_run, mock_warn):
13911391

13921392

13931393
@mock.patch('crmsh.utils.list_cluster_nodes_except_me')
1394-
def test_cluster_copy_file_return(mock_list_nodes):
1394+
def test_cluster_copy_path_return(mock_list_nodes):
13951395
mock_list_nodes.return_value = []
1396-
assert utils.cluster_copy_file("/file1") == True
1396+
assert utils.cluster_copy_path("/file1") == True
13971397

13981398

13991399
@mock.patch('crmsh.sh.ShellUtils.get_stdout_stderr')

0 commit comments

Comments
 (0)