Commit Graph

43 Commits

Author SHA1 Message Date
Dmitri Bogomolov d719002206
Test helper_db 2021-02-26 22:15:05 +02:00
Dmitri Bogomolov 2f5d6214ff
Move addressbook test to bitmessageqt.tests because it uses Qt 2021-02-11 17:07:48 +02:00
Dmitri Bogomolov d6cab9935d
Try to find bootstrap server in knownnodes after bootstrapping 2021-01-22 18:52:34 +02:00
Dmitri Bogomolov 2ac4b1fece
A separate test for dontconnect setting 2021-01-22 18:52:33 +02:00
Dmitri Bogomolov 9540d5fabe
Fixing tor related tests:
- knownnodes.cleanupKnownNodes() should set knownNodesActual = False
   if there are no nodes in stream 1 (repeated bootstrapping)
 - set socksproxytype before _initiate_bootstrap()
 - wait 5 sec in _initiate_bootstrap() to be sure all connections are closed
 - plugins do not work on travis - use socksproxytype = SOCKS5,
   check tor presence by trying to bind on port 9050
 - successfull connection to 3 onion nodes in 6 minutes is not guaranteed -
   check that bitmessage doesn't try non-onion nodes
2021-01-22 18:52:33 +02:00
Dmitri Bogomolov e9073d736a
Another possible approach for connection check 2021-01-22 18:52:33 +02:00
Dmitri Bogomolov d9d1cdb5d8
A separate test for connection to bootstrap servers 2021-01-22 18:52:33 +02:00
navjot edc4660c6d
imported helper_addressGenerator module 2021-01-15 15:34:38 +05:30
navjot bfdb78151c
updated addressbook table in class_sqlThread module 2021-01-14 15:43:30 +05:30
navjot f146500b58
written test case for addressbook 2021-01-14 15:43:30 +05:30
navjot 9fe4ad0489
test case for testing old knownnodes pickle
-test case for testing old knownnodes pickle

-fixed CQ for tests.core module

-implemented shutil.copyfile feature and use small size knownnodes.dat file in test_pattern dir

-remove unnecessary code

-Fixed CQ of tests.core module
2020-12-21 22:50:38 +05:30
navjot 1c304125e8
fixed CQ issues 2020-11-21 13:53:10 +05:30
navjot 4681d37377
validate address in insert method and improve test cases 2020-11-21 13:53:10 +05:30
navjot 61f7f32dfc
removed unused code and return ackdata from inset method insted of msgid 2020-11-21 13:53:10 +05:30
navjot beaece254c
omitted unused code and optimized it 2020-11-21 13:53:10 +05:30
navjot 89254064f6
fixed default variables in insert method 2020-11-21 13:53:10 +05:30
navjot 5eff9d6a04
Fixed CQ for tests.core module 2020-11-21 13:53:10 +05:30
navjot a9e9f25b5d
change helper_sent.insert methods 2020-11-21 13:53:10 +05:30
navjot 0ec15d1d4d
Test case for insert method default values 2020-11-21 13:53:10 +05:30
navjot 1bc3fe7b42
added checks in helper_sent module 2020-11-21 13:53:10 +05:30
navjot b7d920d529
Fixed CQ for test/core.py module 2020-11-21 13:53:10 +05:30
navjot 0023fc4b3d
Written test case for helper_sent.insert method 2020-11-21 13:53:10 +05:30
Dmitri Bogomolov 695140d57d
Save exceptions in the main thread in excQueue 2020-11-04 16:24:52 +02:00
Dmitri Bogomolov b65f2d154a
Common basic cleanup procedure 2020-11-03 17:14:00 +02:00
Dmitri Bogomolov d56191ebba
Move knownnodes module into network package 2020-07-21 16:21:43 +03:00
Dmitri Bogomolov d6953eb450
New package: bitmessageqt.tests
any test cases from it will be added to tests.core test suite if possible,
e.g. PyQt is functional. TestSupport - minimal test case for support module
to reproduce #1633.
2020-06-15 12:06:31 +03:00
Dmitri Bogomolov 2a62fb79cc
Add test for decoding the version message 2020-05-22 12:58:00 +03:00
Dmitri Bogomolov 2bddae511a
Fixed some mistakes in tor dependent tests and marked them
for skipping until the finish of debug.
2020-01-04 14:28:45 +02:00
Dmitri Bogomolov 5160a68c28
Moved start_proxyconfig to helper_startup;
no more prints in helper_startup
2020-01-04 14:28:45 +02:00
bug Lady 7e1f1d2604
fix 'true' not True
else error
2019-11-14 13:32:15 +01:00
Dmitri Bogomolov d6c1845b71
Moved Peer from state to network.node
and trustedPeer to network.connectionpool.BMConnectionPool attribute
2019-11-11 17:13:12 +02:00
George McCandless f871cd450c
Add test for 'onionservicesonly' mode.
Credit to Dmitri Bogomolov in commit 557a8cc6d2bec881b8a3c531d3f725460ed515f5.
2019-10-24 19:35:32 +00:00
lakshyacis 8ed1d48799
core pylint fixes 2019-09-26 19:50:45 +05:30
Dmitri Bogomolov a7cfe5ba32
Try to test with tor 2019-09-25 18:55:01 +03:00
Dmitri Bogomolov bcb29facaa
A test for bootstrapping, have problem with test_tcpconnection ): 2019-09-25 18:55:01 +03:00
Dmitri Bogomolov bbab0010e6
Moved a test script from network.tcp to tests.core 2019-07-26 12:08:42 +03:00
Dmitri Bogomolov 8b065d2e57
Fix unwanted AttributeError in messagetypes 2019-07-05 12:13:55 +03:00
Dmitri Bogomolov 1c2bef46c1
e417b62 allows to remove sleep from cleaner test 2018-10-22 17:18:25 +03:00
Dmitri Bogomolov daf556ca50
Added tests for knownnodes:
- import of pickled knownnodes;
  - default knownnodes if nothing imported;
  - knownnodes starvation (#1335), demanded changes in networkthread.
2018-10-22 17:18:24 +03:00
Dmitri Bogomolov c8a781c7c5
Marked use of random, subprocess and xmlrpclib in tests
for skipping by bandit
2018-10-22 17:18:24 +03:00
Dmitri Bogomolov cfdb6beb54
Moved tests from helper_msgcoding into TestCore.test_msgcoding() 2018-10-22 17:18:24 +03:00
Dmitri Bogomolov d8b4682ee9
Style fixes and docstrings for tests 2018-10-22 17:18:23 +03:00
Dmitri Bogomolov a3300ba8f1
A test case for core (which will be ran in main thread) 2018-10-22 17:18:23 +03:00