Skip to content

Commit c3800b2

Browse files
committedApr 15, 2024
Dev: unittest: Adjust unit test for previous commit
1 parent 4b0dd66 commit c3800b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎test/unittests/test_bootstrap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ def test_join_ssh_no_seed_host(self, mock_error):
577577
bootstrap.join_ssh(None, None)
578578
mock_error.assert_called_once_with("No existing IP/hostname specified (use -c option)")
579579

580+
@mock.patch('crmsh.bootstrap.detect_cluster_service_on_node')
580581
@mock.patch('crmsh.bootstrap.get_node_canonical_hostname')
581582
@mock.patch('crmsh.bootstrap.swap_public_ssh_key_for_secondary_user')
582583
@mock.patch('crmsh.bootstrap.change_user_shell')
@@ -588,6 +589,7 @@ def test_join_ssh(
588589
self,
589590
mock_start_service, mock_config_ssh, mock_ssh_copy_id, mock_swap, mock_change, mock_swap_2,
590591
mock_get_node_cononical_hostname,
592+
mock_detect_cluster_service_on_node
591593
):
592594
bootstrap._context = mock.Mock(current_user="bob", default_nic="eth1", use_ssh_agent=False)
593595
mock_swap.return_value = None

0 commit comments

Comments
 (0)