Skip to content

Commit 53edb09

Browse files
committed
wip
Signed-off-by: Simo Sorce <[email protected]>
1 parent 235b66a commit 53edb09

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/test_requests_gssapi.py

100644100755
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_generate_request_header(self):
9898
auth = requests_gssapi.HTTPKerberosAuth()
9999
self.assertEqual(auth.generate_request_header(response, host), b64_negotiate_response)
100100
fake_init.assert_called_with(
101-
name=gssapi_sname("[email protected]"), creds=None, mech=SPNEGO, flags=gssflags, usage="initiate"
101+
name=gssapi_sname("[email protected]"), creds=None, mech=SPNEGO, flags=gssflags, usage="initiate", channel_bindings=None
102102
)
103103
fake_resp.assert_called_with(b"token")
104104

@@ -113,7 +113,7 @@ def test_generate_request_header_init_error(self):
113113
requests_gssapi.exceptions.SPNEGOExchangeError, auth.generate_request_header, response, host
114114
)
115115
fake_init.assert_called_with(
116-
name=gssapi_sname("[email protected]"), usage="initiate", flags=gssflags, creds=None, mech=SPNEGO
116+
name=gssapi_sname("[email protected]"), usage="initiate", flags=gssflags, creds=None, mech=SPNEGO, channel_bindings=None
117117
)
118118

119119
def test_generate_request_header_step_error(self):
@@ -127,7 +127,7 @@ def test_generate_request_header_step_error(self):
127127
requests_gssapi.exceptions.SPNEGOExchangeError, auth.generate_request_header, response, host
128128
)
129129
fake_init.assert_called_with(
130-
name=gssapi_sname("[email protected]"), usage="initiate", flags=gssflags, creds=None, mech=SPNEGO
130+
name=gssapi_sname("[email protected]"), usage="initiate", flags=gssflags, creds=None, mech=SPNEGO, channel_bindings=None
131131
)
132132
fail_resp.assert_called_with(b"token")
133133

@@ -162,7 +162,7 @@ def test_authenticate_user(self):
162162
connection.send.assert_called_with(request)
163163
raw.release_conn.assert_called_with()
164164
fake_init.assert_called_with(
165-
name=gssapi_sname("[email protected]"), flags=gssflags, usage="initiate", creds=None, mech=SPNEGO
165+
name=gssapi_sname("[email protected]"), flags=gssflags, usage="initiate", creds=None, mech=SPNEGO, channel_bindings=None
166166
)
167167
fake_resp.assert_called_with(b"token")
168168

@@ -197,7 +197,7 @@ def test_handle_401(self):
197197
connection.send.assert_called_with(request)
198198
raw.release_conn.assert_called_with()
199199
fake_init.assert_called_with(
200-
name=gssapi_sname("[email protected]"), creds=None, mech=SPNEGO, flags=gssflags, usage="initiate"
200+
name=gssapi_sname("[email protected]"), creds=None, mech=SPNEGO, flags=gssflags, usage="initiate", channel_bindings=None
201201
)
202202
fake_resp.assert_called_with(b"token")
203203

@@ -402,7 +402,7 @@ def test_handle_response_401(self):
402402
connection.send.assert_called_with(request)
403403
raw.release_conn.assert_called_with()
404404
fake_init.assert_called_with(
405-
name=gssapi_sname("[email protected]"), usage="initiate", flags=gssflags, creds=None, mech=SPNEGO
405+
name=gssapi_sname("[email protected]"), usage="initiate", flags=gssflags, creds=None, mech=SPNEGO, channel_bindings=None
406406
)
407407
fake_resp.assert_called_with(b"token")
408408

@@ -443,7 +443,7 @@ def connection_send(self, *args, **kwargs):
443443
connection.send.assert_called_with(request)
444444
raw.release_conn.assert_called_with()
445445
fake_init.assert_called_with(
446-
name=gssapi_sname("[email protected]"), usage="initiate", flags=gssflags, creds=None, mech=SPNEGO
446+
name=gssapi_sname("[email protected]"), usage="initiate", flags=gssflags, creds=None, mech=SPNEGO, channel_bindings=None
447447
)
448448
fake_resp.assert_called_with(b"token")
449449

@@ -456,7 +456,7 @@ def test_generate_request_header_custom_service(self):
456456
auth = requests_gssapi.HTTPKerberosAuth(service="barfoo")
457457
auth.generate_request_header(response, host),
458458
fake_init.assert_called_with(
459-
name=gssapi_sname("[email protected]"), usage="initiate", flags=gssflags, creds=None, mech=SPNEGO
459+
name=gssapi_sname("[email protected]"), usage="initiate", flags=gssflags, creds=None, mech=SPNEGO, channel_bindings=None
460460
)
461461
fake_resp.assert_called_with(b"token")
462462

0 commit comments

Comments
 (0)