Commit Graph

216 Commits

Author SHA1 Message Date
a9ad37bc6f Add mplex tests and fix error in SwarmConn.close 2019-09-19 16:31:41 +08:00
d61327f5f9 Add tests for SwarmConn 2019-09-19 16:31:41 +08:00
b8b5ac5e06 Add test for notifee disconnected 2019-09-19 16:31:41 +08:00
675c61ce3b Move test_notify from libp2p to network 2019-09-19 16:31:41 +08:00
5307c0506b Change IMuxedConn to INetConn in Notifee 2019-09-19 16:31:41 +08:00
0356380996 Add tests for swarm, and debug
Fix `swarm_pair_factory`
2019-09-19 16:31:40 +08:00
276ac4d8ab Add initial test for Swarm.close_peer 2019-09-19 16:31:13 +08:00
e7304538da Add test for Swarm.close_peer 2019-09-19 16:31:12 +08:00
2d8e02b7eb Add detection for disconnections in mplex 2019-09-19 15:55:26 +08:00
0c7afeebaf Fix test_security_multistream 2019-09-19 13:59:50 +08:00
df87f5adb9 Add tests against the daemon for close/reset 2019-09-10 18:01:16 +08:00
bb0da41eda Remove cleanup
`cleanup` cancels all tasks in the loop, including the main one run by
`run_until_complete`
2019-09-10 18:01:16 +08:00
a45eb76421 Suppress all exceptions in clean up. 2019-09-10 18:01:16 +08:00
df312f3e57 Fix linting 2019-09-10 18:01:15 +08:00
0ab548aee5 Add the missing tests 2019-09-10 18:01:15 +08:00
be2c0f122a Fix close behavior 2019-09-10 18:01:14 +08:00
6c1f77dc1a Fix: Change the event.close to event.set
And add missing parts.
2019-09-06 21:35:15 +08:00
a754e7dbbe Add the missing tests.constants 2019-09-06 17:59:39 +08:00
649a230776 Fix MplexStream.read 2019-09-06 17:26:40 +08:00
6d97702da7 Merge pull request #277 from ralexstokes/add-io-abstractions
Introduces IO abstractions and classes for `msgio` IO
2019-09-04 19:11:50 +02:00
1f3c9af45b Add the missing is_proc_running=True 2019-09-04 22:19:11 +08:00
0e3d4508d6 PR feedback
- Use `Sequence` instead of `List`
- Add note
- Remove redundant words in docstring
2019-09-04 20:52:18 +08:00
db0da8083a Do p2pd.close if not all of them succeed 2019-09-04 20:52:17 +08:00
51d547ccc5 Update tests/interop/utils.py
Co-Authored-By: NIC Lin <twedusuck@gmail.com>
2019-09-04 20:38:38 +08:00
b72c489f4e Update tests/interop/daemon.py
Co-Authored-By: NIC Lin <twedusuck@gmail.com>
2019-09-04 20:36:42 +08:00
a843514afb Update tests/interop/daemon.py
Co-Authored-By: NIC Lin <twedusuck@gmail.com>
2019-09-04 20:35:42 +08:00
155f523c9f Update tests/interop/daemon.py
Co-Authored-By: NIC Lin <twedusuck@gmail.com>
2019-09-04 20:33:50 +08:00
bd21b2f66f Update tests/interop/conftest.py
Co-Authored-By: NIC Lin <twedusuck@gmail.com>
2019-09-04 20:33:29 +08:00
dddaacad62 Move install script under tests/interop/go_pkgs 2019-09-04 16:33:25 +08:00
677531db76 Fix pubsub tests 2019-09-04 15:33:07 +08:00
8e8318aa5c Introduces IO abstractions apart from asyncio or those attached to IRawConnection
Also adds `msgio` utilities to mirror the Go implementation
2019-09-03 21:59:50 -07:00
7f20ab781d Fix gosssipsub tests 2019-09-03 23:37:34 +08:00
5280f3965c Update install script for interop
And adjust the structure of go packages for interop
2019-09-03 17:41:17 +08:00
749ff275ed Refactor make_p2pd
Let `make_p2pd` get rid of `unused_tcp_port_factory`, which should only
exist in fixtures/tests.
2019-09-03 16:55:42 +08:00
7385a7a677 Add is_gossipsub fixture in interop test
To use the same code to test against both routers: floodsub and
gossipsub.
2019-09-03 16:49:00 +08:00
33dae87c35 Add pubsub test for gossipsub 2019-09-03 16:07:44 +08:00
194b494057 Tested against subscriptions and publish 2019-09-02 23:21:57 +08:00
3717dc9adf Add helper functions 2019-09-02 21:01:13 +08:00
a883816881 Add connect utility function 2019-09-02 18:40:12 +08:00
56ef0b962c Add test for host connect and disconnect 2019-09-02 17:32:15 +08:00
dfd9ebdc5e Change PeerInfo to remove dep on PeerData 2019-09-02 14:30:27 +08:00
b77834d129 Use asyncio.subprocess over pexpect
In the test for pubsub, since there were unknown issues when I test
against pexpect.
2019-09-02 14:30:27 +08:00
1b5d064a8d Add utility functions for libp2p bindings
To prepare for pubsub interop test
2019-09-02 14:30:25 +08:00
b955c0fa02 Explicitly import ID, Transport from secio 2019-08-31 22:38:46 +08:00
9e8a6bdf29 Update tests/conftest.py
Co-Authored-By: NIC Lin <twedusuck@gmail.com>
2019-08-31 22:32:43 +08:00
cec2aea928 Move shared fixtures and constants to files 2019-08-29 22:38:08 +08:00
9ceb5f55bb Call make_echo_proc with is_host_insecure
Use the fixture, this way we can configure `is_host_insecure` to support
the test against secio.
2019-08-29 22:08:27 +08:00
c61a06706a Refactor interop tests and factories
- Add `close` and `disconnect` in `Host`
- Add `close` and `close_peer` in `Network`
- Change `IListener.close` to async, to await for server's closing
- Add factories for security transports, and modify `HostFactory`
2019-08-29 21:38:06 +08:00
64c0dab3af Fix isort 2019-08-29 00:01:48 +08:00
b726d7c9da Add tox and CI for interop 2019-08-28 23:39:33 +08:00