Commit Graph

207 Commits

Author SHA1 Message Date
anand k
5faef8d40e
moved inventory in state - global runtime variable from singleton 2024-04-19 08:21:19 +05:30
anand k
d555a79200
Test cases for shared.py 2024-04-17 18:21:11 +05:30
0ed566500f
Use fallback.RIPEMD160Hash() in the test for deterministic keys 2024-04-16 20:18:37 +03:00
c51b2875df
Tests for keys generation
this implementation for deterministic keys requires a passphrase of type bytes
2024-04-16 20:18:37 +03:00
acab92c561
Add a test for random address generation 2024-04-15 05:27:45 +03:00
629efb253e
Update the test for disseminatePreEncryptedMsg API command 2024-04-13 17:16:46 +03:00
e1ae33389c
Properly format all the keys samples 2024-04-13 06:33:59 +03:00
7348568c78
The test for double SHA512 2024-04-13 03:19:55 +03:00
3ed84a5863
Start adding hashes with double SHA512 2024-04-13 03:17:39 +03:00
1b9773f2cf
A dummy test for randomBytes 2024-04-12 15:47:06 +03:00
feaee60632
Add a test for WIF decoding and encoding 2024-04-07 03:30:56 +03:00
799237c7ff
Don't use BMConfigParser in highlevelcrypto, instead use digestAlg kwarg,
both in .sign() and .verify(), extend TestHighlevelcrypto.test_signatures().
2024-04-05 03:10:24 +03:00
fd3567b3fa
Add a test for sign() and verify() 2024-04-05 02:44:28 +03:00
2030e08db3
A test for disseminatePreEncryptedMsg API command 2024-04-05 00:38:30 +03:00
9747f65884
Define a protocol function for decoding object parameters outside of network 2024-04-05 00:37:50 +03:00
anand k
a39fc2cff5
Test cases for helper_inbox.py 2024-03-29 07:46:20 +05:30
anand-skss
b8749c6d7c
Rename mockpb dir to mockbm 2024-03-22 08:54:15 +00:00
anand k
563e557b1b
Test cases for helper_sent 2024-03-22 11:53:12 +05:30
anand k
2e98a1eb2d
Test cases for helper_sql & Added mock library dependency in requirements.txt 2024-03-21 11:25:10 +05:30
anand k
6d8c7f3bbc
Renamed mock dir to mockpb 2024-03-20 07:27:38 +05:30
7dc91af6d8
Fix typo and formatting in tests.core 2024-03-14 21:26:43 +02:00
anand k
d8843791ab
Test cases for multiqueue 2024-03-08 20:07:05 +05:30
348df1151f
Truly wait for pow in test_send_broadcast() in test_api 2024-02-26 17:22:39 +02:00
c45f1eae14
Test more deterministic commands, add timeouts in get from queue 2024-01-15 20:44:22 +02:00
9a96cab080
Make sample_seed bytes as in crypto 2024-01-15 20:44:22 +02:00
799aadc9bc
Rewrite TestAddressGenerator as a subclass of TestPartialRun,
edit docstrings and add more checks. Closes: #1895
2024-01-15 20:44:21 +02:00
d427c27e7e
Started a test case for address generator 2024-01-15 20:43:51 +02:00
c5ced60d5d
Move most of the logic of TestCore.test_udp() into the TestNetwork 2023-12-20 04:26:55 +02:00
606b6d7d08
Explicitly enable UDP in TestNetwork adding Announcer to the expected threads 2023-12-20 03:02:42 +02:00
0cb80801b1
Resolve pylint warnings in partial and test_api_thread - mostly suppress 2023-12-04 01:14:58 +02:00
7c153c0eb8
Mock network.stats for python3 in tests.partial 2023-12-02 00:46:35 +02:00
1b7a642d6a
Rewrite TestAPIThread as subclass of TestPartialRun 2023-12-02 00:45:55 +02:00
2c2a41d105
Add an obvious test for the 'statusBar' command
and remove some junk introduced in 9a194f0.
2023-11-29 04:26:41 +02:00
a16a0cea5c
Rewrite imports in api for python3 and cut out those looking too tricky 2023-11-29 04:26:41 +02:00
81e6de1895
Started a standalone API test case 2023-11-29 04:26:05 +02:00
e8af6201e1
Fix the test for proofofwork.LogOutput() 2023-11-28 16:01:31 +02:00
0c07bb6257
Move all the network constants into the protocol, define also magic.
Closes: #1788.
2023-11-25 17:18:42 +02:00
305d5d716c
Add a test for protocol.assembleAddrMessage() 2023-11-25 17:18:42 +02:00
8af1a13e10
Simplify storage abstract base definition 2023-11-01 13:38:48 +02:00
9e9cffab33
Started a test case for inventory, so far using a filesystem backend 2023-11-01 13:38:48 +02:00
813492291816
e6ecaa5e7d
Add API endpoint to return inbound and outbound connections 2022-11-05 02:26:02 -04:00
58a9ee24dd
Cover the rest used methods of BMConfigParser with tests 2022-10-19 16:03:57 +03:00
8e05e4a178
A test case for the network start checks that:
- all the threads are started,
  - it opens connections and updates stats.

A base class for partial run essentially mimics bitmessagemain.
2022-09-17 04:19:42 +03:00
78e16e61a0
Build tests into the windows bundle if DEBUG=True is set in pyinstaller spec 2022-08-07 17:36:21 +03:00
722f275172
Skip TestProcess.test_listening() on wine 2022-08-07 17:36:21 +03:00
a3214b8eea
Define TestSocketInet class
doing helper_startup.fixSocket() in setUpClass - to be inherited by
any test case using protocol.encodeHost().
2022-08-07 17:35:49 +03:00
20ce69b337
Add enableAddress API command and a check for sending from disabled address 2022-07-26 03:28:05 +03:00
b25ed553bc
Format for PEP8 test_api and samples (almost) 2022-07-26 03:28:05 +03:00
f311d9d25c
Add a check for sendBroadcast API command with nonexisting address 2022-07-26 03:28:05 +03:00
3be996eb64
Replace obsolete pycrypto with pycryptodome to support jammy:
pycrypto fails to install, openssl 3 has no ripemd160 hash.
Also skip test_crypto.TestHashlib if openssl 3 is found.
2022-05-30 21:32:56 +03:00