-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Indicate so in the HISTORY file. - Bump version (though we're on 0.x, so we're only bumping the minor version) - Change the argument order for generate_request_header to make the changes minimally invasive.
- Loading branch information
Showing
4 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,7 +115,7 @@ def test_generate_request_header(self): | |
host = urlparse(response.url).hostname | ||
auth = requests_kerberos.HTTPKerberosAuth() | ||
self.assertEqual( | ||
auth.generate_request_header(host, response=response), | ||
auth.generate_request_header(response, host), | ||
"Negotiate GSSRESPONSE" | ||
) | ||
clientInit_complete.assert_called_with( | ||
|
@@ -138,7 +138,7 @@ def test_generate_request_header_init_error(self): | |
host = urlparse(response.url).hostname | ||
auth = requests_kerberos.HTTPKerberosAuth() | ||
self.assertRaises(requests_kerberos.exceptions.KerberosExchangeError, | ||
auth.generate_request_header, host, response=response, | ||
auth.generate_request_header, response, host | ||
) | ||
clientInit_error.assert_called_with( | ||
"[email protected]", | ||
|
@@ -160,7 +160,7 @@ def test_generate_request_header_step_error(self): | |
host = urlparse(response.url).hostname | ||
auth = requests_kerberos.HTTPKerberosAuth() | ||
self.assertRaises(requests_kerberos.exceptions.KerberosExchangeError, | ||
auth.generate_request_header, host, response=response, | ||
auth.generate_request_header, response, host | ||
) | ||
clientInit_complete.assert_called_with( | ||
"[email protected]", | ||
|
@@ -568,7 +568,7 @@ def test_generate_request_header_custom_service(self): | |
response.headers = {'www-authenticate': 'negotiate token'} | ||
host = urlparse(response.url).hostname | ||
auth = requests_kerberos.HTTPKerberosAuth(service="barfoo") | ||
auth.generate_request_header(host, response=response), | ||
auth.generate_request_header(response, host) | ||
clientInit_complete.assert_called_with( | ||
"[email protected]", | ||
gssflags=( | ||
|
@@ -633,7 +633,7 @@ def test_principal_override(self): | |
response.headers = {'www-authenticate': 'negotiate token'} | ||
host = urlparse(response.url).hostname | ||
auth = requests_kerberos.HTTPKerberosAuth(principal="user@REALM") | ||
auth.generate_request_header(host, response=response) | ||
auth.generate_request_header(response, host) | ||
clientInit_complete.assert_called_with( | ||
"[email protected]", | ||
gssflags=( | ||
|
@@ -651,7 +651,7 @@ def test_realm_override(self): | |
response.headers = {'www-authenticate': 'negotiate token'} | ||
host = urlparse(response.url).hostname | ||
auth = requests_kerberos.HTTPKerberosAuth(hostname_override="otherhost.otherdomain.org") | ||
auth.generate_request_header(host, response=response) | ||
auth.generate_request_header(response, host) | ||
clientInit_complete.assert_called_with( | ||
"[email protected]", | ||
gssflags=( | ||
|