lbrycrd/test/functional/test_framework
Wladimir J. van der Laan 024816d6cf
Merge #14522: tests: add invalid P2P message tests
d20a9fa13d tests: add tests for invalid P2P messages (James O'Beirne)
62f94d39f8 tests: add P2PConnection.send_raw_message (James O'Beirne)
5aa31f6ef2 tests: add utility to assert node memory usage hasn't increased (James O'Beirne)

Pull request description:

  - Adds `p2p_invalid_messages.py`: tests based on behavior for dealing with invalid and malformed P2P messages. Includes a test verifying that we can't DoS a node by spamming it with large invalid messages.
  - Adds `TestNode.assert_memory_usage_stable`: a context manager that allows us to ensure memory usage doesn't significantly increase on a node during some test.
  - Adds `P2PConnection.send_raw_message`: which allows us to construct and send messages with tweaked headers.

Tree-SHA512: 720a4894c1e6d8f1551b2ae710e5b06c9e4f281524623957cb01599be9afea82671dc26d6152281de0acb87720f0c53b61e2b27d40434d30e525dd9e31fa671f
2018-11-06 11:48:14 +01:00
..
__init__.py Rename rpc-tests directory to functional 2017-03-20 10:40:31 -04:00
address.py qa: Run more tests with wallet disabled 2018-09-25 18:08:08 -04:00
authproxy.py tests: Make it possible to run functional tests on Windows 2018-09-17 09:56:49 +08:00
bignum.py Remove unused variables and/or function calls 2017-08-28 15:18:14 +02:00
blocktools.py Fix typo in test_framework/blocktools 2018-10-25 09:30:57 +13:00
coverage.py Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
key.py tests: Remove compatibility code not needed now when we're on Python 3 2018-04-16 09:54:27 +02:00
messages.py [tests] Test that nodes respond to getdata with notfound 2018-10-26 07:45:12 -04:00
mininode.py Merge #14522: tests: add invalid P2P message tests 2018-11-06 11:48:14 +01:00
netutil.py tests: Replace usage of tostring() with tobytes() 2018-08-13 19:05:31 -07:00
script.py Strictly enforce instance attrs in critical functional test classes. 2018-09-26 21:50:42 -05:00
segwit_addr.py Use BIP173 addresses in segwit.py test 2017-09-28 17:29:01 -07:00
siphash.py Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
socks5.py Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
test_framework.py [tests] Move deterministic address import to setup_nodes 2018-11-01 12:53:49 -04:00
test_node.py Merge #14522: tests: add invalid P2P message tests 2018-11-06 11:48:14 +01:00
util.py [Tests] Rename create_tx and move to blocktools.py 2018-08-09 12:58:35 +02:00