|
|
@ -103,11 +103,12 @@ class AuthContextTest(unittest.TestCase): |
|
|
|
auth_data = pickle.loads(response) |
|
|
|
auth_data = pickle.loads(response) |
|
|
|
self.assertIsNone(auth_data[_ID]) |
|
|
|
self.assertIsNone(auth_data[_ID]) |
|
|
|
self.assertIsNone(auth_data[_ID_KEY]) |
|
|
|
self.assertIsNone(auth_data[_ID_KEY]) |
|
|
|
self.assertDictEqual({ |
|
|
|
self.assertDictEqual( |
|
|
|
'security_level': [b'TSI_PRIVACY_AND_INTEGRITY'], |
|
|
|
{ |
|
|
|
'transport_security_type': [b'ssl'], |
|
|
|
'security_level': [b'TSI_PRIVACY_AND_INTEGRITY'], |
|
|
|
'ssl_session_reused': [b'false'], |
|
|
|
'transport_security_type': [b'ssl'], |
|
|
|
}, auth_data[_AUTH_CTX]) |
|
|
|
'ssl_session_reused': [b'false'], |
|
|
|
|
|
|
|
}, auth_data[_AUTH_CTX]) |
|
|
|
|
|
|
|
|
|
|
|
def testSecureClientCert(self): |
|
|
|
def testSecureClientCert(self): |
|
|
|
handler = grpc.method_handlers_generic_handler('test', { |
|
|
|
handler = grpc.method_handlers_generic_handler('test', { |
|
|
|