@@ -1657,7 +1657,7 @@ def test_attempt_unsuccessful_connection_default_error(self):
16571657
16581658 self .assertEqual (mock_sc .call_count , 1 )
16591659 self .assertIn (
1660- ' Could not connect to host " fake_host.fqdn"' , excinfo .exception .message ,
1660+ " Could not connect to host ' fake_host.fqdn'" , excinfo .exception .message ,
16611661 )
16621662
16631663 def test_attempt_unsuccessful_connection_vim_fault (self ):
@@ -1706,7 +1706,7 @@ def test_first_attempt_unsuccsessful_connection_default_error(self):
17061706
17071707 self .assertEqual (mock_sc .call_count , 2 )
17081708 self .assertIn (
1709- ' Could not connect to host " fake_host.fqdn"' , excinfo .exception .message
1709+ " Could not connect to host ' fake_host.fqdn'" , excinfo .exception .message
17101710 )
17111711
17121712 @skipIf (not SSL_VALIDATION , 'SSL validation is not enabled' )
@@ -1761,7 +1761,7 @@ def test_third_attempt_unsuccessful_connection_detault_error(self):
17611761
17621762 self .assertEqual (mock_sc .call_count , 2 )
17631763 self .assertIn (
1764- ' Could not connect to host " fake_host.fqdn"' , excinfo .exception .message
1764+ " Could not connect to host ' fake_host.fqdn'" , excinfo .exception .message
17651765 )
17661766
17671767 @skipIf (not SSL_VALIDATION , 'SSL validation is not enabled' )
@@ -1821,9 +1821,6 @@ def test_default_params(self):
18211821 None ,
18221822 verify_ssl = True ,
18231823 )
1824- mock_get_si .assert_called_once_with ('fake_host' , None , None ,
1825- 'https' , 443 , 'userpass' , None ,
1826- None )
18271824
18281825 def test_no_cached_service_instance_same_host_on_proxy (self ):
18291826 with patch ('salt.utils.platform.is_proxy' , MagicMock (return_value = True )):
@@ -1851,14 +1848,6 @@ def test_no_cached_service_instance_same_host_on_proxy(self):
18511848 'fake_domain' ,
18521849 verify_ssl = True ,
18531850 )
1854- mock_get_si .assert_called_once_with ('fake_host' ,
1855- 'fake_username' ,
1856- 'fake_password' ,
1857- 'fake_protocol' ,
1858- 1 ,
1859- 'fake_mechanism' ,
1860- 'fake_principal' ,
1861- 'fake_domain' )
18621851
18631852 def test_cached_service_instance_different_host (self ):
18641853 mock_si = MagicMock ()
@@ -1909,14 +1898,6 @@ def test_uncached_service_instance(self):
19091898 'fake_domain' ,
19101899 verify_ssl = True ,
19111900 )
1912- mock_get_si .assert_called_once_with ('fake_host' ,
1913- 'fake_username' ,
1914- 'fake_password' ,
1915- 'fake_protocol' ,
1916- 1 ,
1917- 'fake_mechanism' ,
1918- 'fake_principal' ,
1919- 'fake_domain' )
19201901
19211902 def test_unauthenticated_service_instance (self ):
19221903 mock_si_current_time = MagicMock (side_effect = vim .fault .NotAuthenticated )
0 commit comments