Commit Graph

6 Commits

Author SHA1 Message Date
Fabian Affolter
82d99d388a python3Packages.snitun: 0.21.0 -> 0.27.0 2021-06-12 22:58:18 +02:00
Fabian Affolter
95611d6002 python3Packages.snitun: 0.20 -> 0.21.0 2021-05-22 13:14:10 +02:00
Martin Weinelt
7644480555
python3Packages.snitun: disable failing test on darwin (#119009)
The upstream advertises this package as "OS independent", but from
issues it is clear they cannot test it on MacOS. So we simply disable
this test.

```
______________________ test_peer_listener_timeout[pyloop] ______________________

raise_timeout = None
peer_manager = <snitun.server.peer_manager.PeerManager object at 0x10a4a6df0>
peer_listener = <snitun.server.listener_peer.PeerListener object at 0x10a4a6a30>
test_client_peer = Client(reader=<StreamReader exception=ConnectionResetError(54, 'Connection reset by peer') transport=<_SelectorSocketT...by peer') transport=<_SelectorSocketTransport closed fd=19>>>, close=<asyncio.locks.Event object at 0x10909ee50 [set]>)

    async def test_peer_listener_timeout(
        raise_timeout, peer_manager, peer_listener, test_client_peer
    ):
        """Run a full flow of with a peer."""
        valid = datetime.utcnow() + timedelta(days=1)
        aes_key = os.urandom(32)
        aes_iv = os.urandom(16)
        hostname = "localhost"
        fernet_token = create_peer_config(valid.timestamp(), hostname, aes_key, aes_iv)

        crypto = CryptoTransport(aes_key, aes_iv)

        test_client_peer.writer.write(fernet_token)
        await test_client_peer.writer.drain()

        with pytest.raises(asyncio.IncompleteReadError):
>           token = await test_client_peer.reader.readexactly(32)

tests/server/test_listener_peer.py:110:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/dpa7p7v00xvr26dv2myh3k5p1zkagqsm-python3-3.8.5/lib/python3.8/asyncio/streams.py:723: in readexactly
    await self._wait_for_data('readexactly')
/nix/store/dpa7p7v00xvr26dv2myh3k5p1zkagqsm-python3-3.8.5/lib/python3.8/asyncio/streams.py:517: in _wait_for_data
    await self._waiter
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <_SelectorSocketTransport closed fd=19>

    def _read_ready__data_received(self):
        if self._conn_lost:
            return
        try:
>           data = self._sock.recv(self.max_size)
E           ConnectionResetError: [Errno 54] Connection reset by peer
```
2021-04-11 02:18:59 -04:00
Jörg Thalheim
c1f5ac41a3
python3.pkgs.snitun: fix port binding conflicts in test 2020-04-22 07:31:54 +01:00
Jörg Thalheim
1d24ce5ba0
snitun: fix macOS build 2020-01-21 07:56:14 +00:00
Scriptkiddi
f508ae5a19 pythonPackages.snitun: init at 0.20 2019-12-21 11:27:31 +01:00