micropython/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
accept_nonblock.py
accept_nonblock.py.exp
accept_timeout.py
accept_timeout.py.exp
asyncio_loopback.py
asyncio_loopback.py.exp
asyncio_start_server.py
asyncio_start_server.py.exp
connect_nonblock.py
connect_nonblock.py.exp
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
connect_poll.py.exp
ssl_getpeercert.py
ssl_getpeercert.py.exp

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