PythonExtra/tests/net_hosted
Damien George bba8a673d5 tests: Update SSL network tests to use SSLContext, and work on CPython.
Changes are:
- use ssl.SSLContext.wrap_socket instead of ssl.wrap_socket
- disable check_hostname and call load_default_certs() where appropriate,
  to get CPython to run the tests correctly
- pass socket.AF_INET to getaddrinfo and socket.socket(), to force IPv4
- change tests to use github.com instead of google.com, because certificate
  validation was failing with google.com

Signed-off-by: Damien George <damien@micropython.org>
2023-12-12 21:22:10 +11:00
..
README all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10: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.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_nonblock_xfer.py tests: Update SSL network tests to use SSLContext, and work on CPython. 2023-12-12 21:22:10 +11: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
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

README

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