pytest-socket icon indicating copy to clipboard operation
pytest-socket copied to clipboard

Give socket_allow_hosts the ability to handle AF_UNIX sockets

Open NSchrading opened this issue 3 years ago • 2 comments

Fixes #70

socket_allow_hosts now allows any AF_UNIX socket connection if --allow-unix-socket is specified on the CLI or if allow_unix_socket is used as a pytest mark. It also works for AF_UNIX sockets with known socket (file) names if you pass the correct name in --allow-hosts.

NSchrading avatar Jul 22 '21 08:07 NSchrading

Code Climate has analyzed commit 7f7474d6 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

codeclimate[bot] avatar Jul 22 '21 08:07 codeclimate[bot]

@NSchrading It's taken me a while to circle back to this, but the internals have been overhauled a fair amount, and many of the behaviors expressed in this PR now work. The named socket and marker are not yet included, so if that's a feature you're really want to see, please reapply the desired behavior on the current code, as now there's conflicts.

miketheman avatar Dec 23 '21 20:12 miketheman

Closing due to lack of response.

miketheman avatar Jun 18 '23 16:06 miketheman