Commit Graph

77 Commits

Author SHA1 Message Date
ZeroNet 296e4aab57
Fix sslcrypto thread safety (#2454)
* Use sslcrypto instead of pyelliptic and pybitcointools

* Fix CryptMessage

* Support Python 3.4

* Fix user creation

* Get rid of pyelliptic and pybitcointools

* Fix typo

* Delete test file

* Add sslcrypto to tree

* Update sslcrypto

* Add pyaes to src/lib

* Fix typo in tests

* Update sslcrypto version

* Use privatekey_bin instead of privatekey for bytes objects

* Fix sslcrypto

* Fix Benchmark plugin

* Don't calculate the same thing twice

* Only import sslcrypto once

* Handle fallback sslcrypto implementation during tests

* Fix sslcrypto fallback implementation selection

* Fix thread safety

* Add derivation

* Bring split back

* Fix typo

* v3.3

* Fix custom OpenSSL discovery
2020-03-05 17:54:46 +01:00
shortcutme 11415fe082
Log mock ws caller to get more detail on random test fail 2020-01-24 16:05:19 +01:00
shortcutme 60146a083c
Fix ui_websocket test result with None 2019-12-21 03:30:27 +01:00
shortcutme df87bd41b4
Log WsMock sent data itself to figure out random Crypt test fail 2019-12-21 03:22:37 +01:00
shortcutme 975f53b95b
New logging format for tests 2019-12-21 03:01:45 +01:00
shortcutme 7ecf09a496
Allow to change test log dir with environmental variable 2019-12-18 15:24:05 +01:00
shortcutme 0839fdfc5e
Add reason for db close 2019-12-17 14:35:49 +01:00
shortcutme d062f01127
Log temp site events under different name 2019-12-17 14:34:53 +01:00
shortcutme e91fb90a45
Fix tests when running for long time 2019-12-17 14:34:29 +01:00
shortcutme 79c1cd15ab
Use libev when running test 2019-12-17 14:32:17 +01:00
shortcutme 958882c1c5
Revert "Switch to sslcrypto for cryptography tasks (#2338)"
This reverts commit fbc7b6fc4f.
2019-12-15 18:30:42 +01:00
Ivanq fbc7b6fc4f Switch to sslcrypto for cryptography tasks (#2338)
* Use sslcrypto instead of pyelliptic and pybitcointools

* Fix CryptMessage

* Support Python 3.4

* Fix user creation

* Get rid of pyelliptic and pybitcointools

* Fix typo

* Delete test file

* Add sslcrypto to tree

* Update sslcrypto

* Add pyaes to src/lib

* Fix typo in tests

* Update sslcrypto version

* Use privatekey_bin instead of privatekey for bytes objects

* Fix sslcrypto

* Fix Benchmark plugin

* Don't calculate the same thing twice

* Only import sslcrypto once

* Handle fallback sslcrypto implementation during tests

* Fix sslcrypto fallback implementation selection
2019-12-15 12:46:06 +01:00
shortcutme 1935a69c04
Add session based log disable at test 2019-12-04 12:46:44 +01:00
shortcutme ea5f64bfea
Only log at start of the test cases 2019-12-04 12:46:13 +01:00
shortcutme c10dd5239e
Log test case start/end and debug message 2019-11-30 02:08:11 +01:00
shortcutme 1b2eee058c
Log test case start and end 2019-11-27 03:03:31 +01:00
shortcutme 777486a5be
Try new way to avoid pytest io errors 2019-11-27 03:03:22 +01:00
shortcutme c52d47b15f
Don't show notifications when testing 2019-11-25 14:35:31 +01:00
shortcutme 9a43626aa6
When testing don't register shutdown functions 2019-11-25 14:35:16 +01:00
shortcutme 5d113757df
Stop greenlets when deleting a site in test 2019-11-19 02:15:47 +01:00
shortcutme 3682f0aed4
Wait for db close on tests 2019-09-28 17:03:43 +02:00
Ivanq 01ff89315b Add GitLab CI/CD support (#2163)
* Use GitLab CI/CD

* Force colored tests

* Get rid of an error

* Mark tests as slow

* Disable codecov & coveralls

* Python 3.5-3.8

* Add Python 3.4

* Support both OpenSSL 1.1.0 and 1.1.1+

* Test both OpenSSL 1.1.0 and 1.1.1+

* Fix OpenSSL 1.1.1

* Fix Python 3.4 build
2019-08-19 17:30:31 +02:00
shortcutme c5116fb318
Modify testAction command to use handleRequest instead of directly calling the function 2019-08-02 16:14:44 +02:00
shortcutme 67d6b1e724
Fix double logging when running tests 2019-07-10 03:12:56 +02:00
shortcutme fec312ed09
Better pytest atexit logging error workaround 2019-07-03 18:37:13 +02:00
shortcutme f979ed133f
Workaround for pytest 0.4.1+ atexit logging errors 2019-07-01 16:25:45 +02:00
shortcutme 4ac54845fc
Fix double logging when testing 2019-04-23 02:00:59 +02:00
shortcutme f970815645
Run tests in debug mode 2019-04-15 22:48:16 +02:00
shortcutme f83c77e7ea
Fix plugin error message 2019-04-15 22:48:09 +02:00
shortcutme a822238735
Use 1544 port for tor in tests 2019-04-15 22:19:38 +02:00
shortcutme b168772d7f
Create user for tests if necessary 2019-04-15 22:19:16 +02:00
shortcutme 034e104c06
Log fileserver startup error for tests 2019-04-15 22:19:00 +02:00
shortcutme 0c0f117bc3
Don't parse config file for tests 2019-04-15 22:18:40 +02:00
shortcutme 1d4ab8833b
Test and enforce proper import plugin order in debug mode 2019-04-15 22:18:18 +02:00
shortcutme 572d55752c
Avoid random websocket test fails 2019-04-15 16:54:49 +02:00
radfish f6e3a74567 [setuptools packaging] access modules via imports (#1969) 2019-04-15 12:31:33 +02:00
radfish 6a1d716ba1 test: refer to test data path via variable (#1964) 2019-04-10 11:30:35 +02:00
shortcutme bad4d14cf6
Save OpenSSL rand file in data directory to avoid error message on Windows 2019-03-29 02:29:32 +01:00
shortcutme 9b36c55422
Fix pytest warning 2019-03-27 03:10:29 +01:00
shortcutme b6286372fb
Better cleanup after tests 2019-03-27 03:10:21 +01:00
shortcutme 6d2a863af5
Sleep a bit before creating new file_server to allow connection closing 2019-03-16 00:15:43 +01:00
shortcutme 35e61a0c69
More reliable UiWebsocket testing 2019-03-16 00:15:19 +01:00
shortcutme c474699695
Different crypto lib fixture 2019-03-16 00:14:58 +01:00
shortcutme 1e2dadf75e
Log test to log/cmd.log 2019-03-16 00:14:11 +01:00
shortcutme b0b9a4d33c
Change to Python3 coding style 2019-03-15 21:06:59 +01:00
shortcutme e8026ef074
Non-private external ip for tests 2019-01-26 20:39:31 +01:00
shortcutme a7509988af
Rev3802, Fix pytest warnings 2019-01-20 20:02:31 +01:00
shortcutme d78c757b52
Automatically run all file_server tests in ipv4 and ipv6 enviroment 2019-01-20 03:11:33 +01:00
shortcutme 9871a4e36f
Fix test gevent monkey patching 2019-01-20 03:10:39 +01:00
shortcutme 68c7f502b4
Use chromedriver instead of phantomjs for testing 2018-11-26 00:10:43 +01:00