Bring back reverted fixes.
This commit is contained in:
parent
13c20d366e
commit
5f21904b31
|
@ -568,7 +568,7 @@ class KerberosTestCase(unittest.TestCase):
|
|||
principal=None)
|
||||
|
||||
def test_delegation(self):
|
||||
with patch.multiple('kerberos',
|
||||
with patch.multiple(kerberos_module_name,
|
||||
authGSSClientInit=clientInit_complete,
|
||||
authGSSClientResponse=clientResponse,
|
||||
authGSSClientStep=clientStep_continue):
|
||||
|
@ -624,7 +624,7 @@ class KerberosTestCase(unittest.TestCase):
|
|||
response.headers = {'www-authenticate': 'negotiate token'}
|
||||
host = urlparse(response.url).hostname
|
||||
auth = requests_kerberos.HTTPKerberosAuth(principal="user@REALM")
|
||||
auth.generate_request_header(response, host),
|
||||
auth.generate_request_header(response, host)
|
||||
clientInit_complete.assert_called_with(
|
||||
"HTTP@www.example.org",
|
||||
gssflags=(
|
||||
|
@ -642,7 +642,7 @@ class KerberosTestCase(unittest.TestCase):
|
|||
response.headers = {'www-authenticate': 'negotiate token'}
|
||||
host = urlparse(response.url).hostname
|
||||
auth = requests_kerberos.HTTPKerberosAuth(hostname_override="otherhost.otherdomain.org")
|
||||
auth.generate_request_header(response, host),
|
||||
auth.generate_request_header(response, host)
|
||||
clientInit_complete.assert_called_with(
|
||||
"HTTP@otherhost.otherdomain.org",
|
||||
gssflags=(
|
||||
|
|
Loading…
Reference in New Issue