micropython/tests/net_hosted
Damien George ef996d15b9 extmod/modssl_mbedtls: Make SSLSocket.getpeercert() optional.
And only enable this method when the relevant feature is available in
mbedtls.  Otherwise, if mbedtls doesn't support getting the peer
certificate, this method always returns None and it's confusing why it does
that.  It's better to remove the method altogether, so the error trying to
use it is more obvious.

Signed-off-by: Damien George <damien@micropython.org>
2023-12-12 21:21:54 +11:00
..
accept_nonblock.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
accept_nonblock.py.exp tests/net_inet: Move tests which don't require full Internet to net_hosted. 2017-06-23 21:12:32 +03:00
accept_timeout.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
accept_timeout.py.exp tests/net_inet: Move tests which don't require full Internet to net_hosted. 2017-06-23 21:12:32 +03:00
asyncio_loopback.py tests/net_hosted/asyncio_loopback.py: Add loopback test. 2023-11-17 13:37:43 +11:00
asyncio_loopback.py.exp tests/net_hosted/asyncio_loopback.py: Add loopback test. 2023-11-17 13:37:43 +11:00
asyncio_start_server.py extmod/asyncio/stream.py: Fix cancellation handling of start_server. 2023-10-02 14:11:52 +11:00
asyncio_start_server.py.exp extmod/asyncio/stream.py: Fix cancellation handling of start_server. 2023-10-02 14:11:52 +11:00
connect_nonblock_xfer.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
connect_nonblock.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
connect_nonblock.py.exp tests/net_inet: Move tests which don't require full Internet to net_hosted. 2017-06-23 21:12:32 +03:00
connect_poll.py tests: Replace umodule with module everywhere. 2023-06-08 17:54:24 +10:00
connect_poll.py.exp extmod/modlwip: Unconditionally return POLLHUP when polling new socket. 2019-10-31 12:54:37 +11:00
README all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
ssl_getpeercert.py extmod/modssl_mbedtls: Make SSLSocket.getpeercert() optional. 2023-12-12 21:21:54 +11:00
ssl_getpeercert.py.exp extmod/modussl_mbedtls.c: Add ussl.getpeercert() method. 2017-08-16 15:01:00 +10:00

This directory contains network tests which require just "peer to peer"
network connection between test host and device under test, instead of
full Internet connection.

Note that setup for these tests and tests themselves are WIP, and may
not yet fully correspond to the functional specification above.

So far, these tests are not run as part of the main testsuite and need
to be run separately (from the main test/ directory):

    ./run-tests.py net_hosted/*.py