MCPcopy Create free account
hub / github.com/apache/qpid-proton / test_ssl_with_small_buffer

Method test_ssl_with_small_buffer

python/tests/proton_tests/ssl.py:152–171  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150 self._pump(client, server)
151
152 def test_ssl_with_small_buffer(self):
153 self.server_domain.set_credentials(self._testpath("server-certificate.pem"),
154 self._testpath("server-private-key.pem"),
155 "server-password")
156 self.client_domain.set_trusted_ca_db(self._testpath("ca-certificate.pem"))
157 self.client_domain.set_peer_authentication(SSLDomain.VERIFY_PEER)
158
159 server = SslTest.SslTestConnection(self.server_domain, mode=Transport.SERVER)
160 client = SslTest.SslTestConnection(self.client_domain)
161
162 client.connection.open()
163 server.connection.open()
164
165 small_buffer_size = 1
166 self._pump(client, server, small_buffer_size)
167
168 assert client.ssl.protocol_name() is not None
169 client.connection.close()
170 server.connection.close()
171 self._pump(client, server)
172
173 def test_server_certificate_fail(self):
174 """ Test that default configured clients cannot connect to a server that has

Callers

nothing calls this directly

Calls 7

_pumpMethod · 0.95
set_credentialsMethod · 0.45
set_trusted_ca_dbMethod · 0.45
openMethod · 0.45
protocol_nameMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected