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