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
695140d57d
Save exceptions in the main thread in excQueue
2020-11-04 16:24:52 +02:00
db11d6331f
Optimize setUpClass() and tearDownClass() in test_process
2020-11-03 17:14:00 +02:00
96a784b58b
Merged PeterSurda/teardown-test1:
...
- reset BMConfigParser before reading config file
- enable threads name check on posix systems
- check singleton.lock in TestProcessProto.setUpClass()
2020-11-03 17:14:00 +02:00
b65f2d154a
Common basic cleanup procedure
2020-11-03 17:14:00 +02:00
1bcffd2853
Make TestLogger a subclass of TestProcessProto
2020-11-02 18:01:51 +02:00
cf4e812334
Allow TestProcess subclasses set home dir, use mkdtemp for test_config
2020-11-02 18:01:51 +02:00
affdb2fdc0
Solve problem with subprocess.call() on windows:
...
- uncomment console_scripts (only for windows) to get exe
- replace call() with Popen() to avoid blocking
2020-11-02 18:01:50 +02:00
80831754b3
Fail in TestProcessProto.setUp if bitmessage process dies
2020-11-02 11:08:28 +02:00
b650e97edc
Fix statuses for sendBroadcast
2020-10-28 15:25:46 +02:00
85f306e5f6
Covered more API commands by tests, listed uncovered in TODO
2020-09-14 13:11:43 +03:00
6c85bdd498
Also check sent broadcast status and it's presence in sent messages
2020-09-14 13:11:43 +03:00
fabbccbeac
Rewrote test_user_password() for xmlrpclib.ProtocolError:
...
it would be very difficult to return string from BMXMLRPCRequestHandler
2020-09-14 13:11:42 +03:00
d56191ebba
Move knownnodes module into network package
2020-07-21 16:21:43 +03:00
5805840613
A test case for protocol with the test for TCPConnection.local
2020-07-21 16:21:43 +03:00
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
2a62fb79cc
Add test for decoding the version message
2020-05-22 12:58:00 +03:00
c5b77a08fa
Moved addresses demo script into tests.test_crypto
2020-05-05 17:30:31 +03:00
ff1f451691
Blind signature updates
...
- added serializing and deserializing
- added a signature chain class `ECCBlindSigChain`
- added more tests
2020-03-31 14:13:32 +08:00
213519bd93
Blind chain signature verification
...
- also adds serialisation, deserialisation and optional metadata
2020-03-14 10:20:06 +08:00
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
5160a68c28
Moved start_proxyconfig to helper_startup;
...
no more prints in helper_startup
2020-01-04 14:28:45 +02:00
2a165380bb
Restrict outbound connections on network groups
...
Logic borrowed from bitcoin, see CNetAddr::GetGroup() in src/netaddress.cpp
Simplified, so may not work fully identically but for our purposes it's good
enough. Won't connect to more than one host from a /16 subnet on IPv4 and a /32
subnet on IPv6.
2019-11-18 12:20:29 +01:00
bug Lady
7e1f1d2604
fix 'true' not True
...
else error
2019-11-14 13:32:15 +01:00
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
a48b51721d
Test new logging approach, both debug.logger and resetLogging
2019-10-18 09:35:31 +03:00
lakshyacis
944c30f9b4
test_config pylint fixes
2019-09-26 19:51:02 +05:30
lakshyacis
7839f83f20
test_api pylint fixes
2019-09-26 19:50:53 +05:30
lakshyacis
8ed1d48799
core pylint fixes
2019-09-26 19:50:45 +05:30
a7cfe5ba32
Try to test with tor
2019-09-25 18:55:01 +03:00
bcb29facaa
A test for bootstrapping, have problem with test_tcpconnection ):
2019-09-25 18:55:01 +03:00
395fbcd0f0
Add intermediary tests
...
- primitive serialisation (BN_bn2bin and ctypes) used in intermediary tests
2019-08-28 13:21:44 +02:00
b934c4e01e
Minor refactoring to separate objects
2019-08-27 23:13:58 +02:00
076aeaa19f
Import path changes as requested
2019-08-27 23:13:55 +02:00
2e0f7755c6
Blind signature support in pyelliptic
...
- add blind signature functionality to pyelliptic as described in #1409
- add tests for blind signatures
- PEP8 fixes for pyelliptic
- some minor refactoring is necessary for further integration, this is just a
minimal implementation to pass a test
2019-08-27 23:13:45 +02:00
ae76d369f2
A test for API command 'shutdown'
2019-08-01 12:04:12 +03:00
bbab0010e6
Moved a test script from network.tcp to tests.core
2019-07-26 12:08:42 +03:00
8b065d2e57
Fix unwanted AttributeError in messagetypes
2019-07-05 12:13:55 +03:00