<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tests/net_inet, branch 4.0.0-beta.7</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=4.0.0-beta.7</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=4.0.0-beta.7'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-10-26T01:29:24+00:00</updated>
<entry>
<title>tests/net_inet: Update tls test to work with CPython and incl new site.</title>
<updated>2017-10-26T01:29:24+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-26T01:29:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f36975b6792f6b702dc9184adcdb6e0d89ce23b4'/>
<id>urn:sha1:f36975b6792f6b702dc9184adcdb6e0d89ce23b4</id>
<content type='text'>
CPython only supports the server_hostname keyword arg via the SSLContext
object, so use that instead of the top-level ssl.wrap_socket.  This allows
the test to run on CPython the same as uPy.

Also add the "Host:" header to correctly make a GET request (for URLs that
are hosted on other servers).  This is not strictly needed to test the SSL
connection but helps to debug things when printing the response.
</content>
</entry>
<entry>
<title>tests/net_inet: Move tests which don't require full Internet to net_hosted.</title>
<updated>2017-06-23T18:12:32+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-06-23T18:12:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3f9d59c87a6797857a074737034bcd58d0726b2e'/>
<id>urn:sha1:3f9d59c87a6797857a074737034bcd58d0726b2e</id>
<content type='text'>
The idea is that these tests can be run with just a test server running
on a test host, with device under test connecting to it, instead of
requiring Internet connection for testing.

Such setup is however WIP, and some tests in net_hosted/ are so far
written to connect to Internet, as there're not test server written
yet. This is expected to evolve over time.
</content>
</entry>
<entry>
<title>tests/net_inet: Add tests for accept and connect in nonblocking mode.</title>
<updated>2017-06-21T02:25:10+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-06-21T02:25:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=458cbacb8f62ad0f33024360af61fb797530c65b'/>
<id>urn:sha1:458cbacb8f62ad0f33024360af61fb797530c65b</id>
<content type='text'>
Some of these tests don't require an Internet connection, but here is a
good place to put them for now.
</content>
</entry>
<entry>
<title>tests/net_inet/test_tls_sites.py: Integration test for SSL connections.</title>
<updated>2017-06-20T22:58:36+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-06-20T22:58:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4caa27ae0ec92af59ddacf57dd7fd43fcdd64c69'/>
<id>urn:sha1:4caa27ae0ec92af59ddacf57dd7fd43fcdd64c69</id>
<content type='text'>
This attempts to bootstrap network tests for MicroPython. This commits
sets test/net_inet/ as place for tests which require access to wide
Internet. They aren't intended to be run as part of the main testsuite,
instead to be run manually on demand.

test_tls_sites.py in particular check that it's possible to establish
SSL/TLS connection to select sites on the Internet: few references ones,
plus those for which problems were reported, and resolved.
</content>
</entry>
</feed>
