libervia-backend/tests/unit
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Goffi c5396f0acf backend: Tor integration:
- Add the `txtorcon` optional dependency, used with `tor` extra.
- Add settings for Tor.
- Use Tor endpoint when an `.onion` XMPP domain is used, of when Tor is explicitely
  enabled in conf.
- Disable WebRTC, for now it's the safer option as WebRTC can leak IP. It should be
  possible to use it over Tor by forcing the use of a .onion relay, but this is to be
  explored later (A/V should be to slow to be usable, but that stay relevant for file
  transfer or other WebRTC powered things).
- A new `treq` instance using Tor WebAgent is used when Tor is enabled. Properties has
  been added to SatXMPPEntity to conveniently get the right instance.
- Another `tor_mode` property has been added with corresponding bridge methods, to see if
  Tor is activated and in which mode for a given profile. For now there are only two modes
  (disabled, and enabled with WebRTC disabled), but in the future it may be possible to
  activate WebRTC over Tor, or to use Tor only to connect to XMPP server, while using
  clearnet for other connections.
- Tor dedicated models have been added, and bridge methods have been added to build and
  get them.
- Fix tests.

rel 473
2025-12-15 11:35:19 +01:00
..
cli tests: fix and update tests: 2024-03-05 17:31:56 +01:00
components tests (unit/components): Add tests for email gateway's cleaning module: 2025-09-11 21:17:51 +02:00
frontends tests (unit): Fix tests. 2025-12-03 17:43:06 +01:00
__init__.py tests (unit/sqla): Add test for keyword filtering: 2025-06-06 10:45:54 +02:00
conftest.py backend: Tor integration: 2025-12-15 11:35:19 +01:00
test_ap-gateway.py tests (unit): Fix tests. 2025-12-03 17:43:06 +01:00
test_email_gateway.py black reformatting. 2025-12-03 17:49:34 +01:00
test_memory_sqla.py Global reformatting with black. 2025-09-13 10:46:10 +02:00
test_plugin_xep_0033.py test (unit): add test for plugin XEP-0033: 2024-09-26 16:12:01 +02:00
test_plugin_xep_0082.py tests (unit): fix tests + black reformatting. 2024-07-14 17:42:53 +02:00
test_plugin_xep_0131.py tests (unit): add XEP-0131 tests: 2024-09-28 15:57:03 +02:00
test_plugin_xep_0167.py tests (unit): add test for XEP-0298 plugin + fix XEP-0167: 2024-07-29 03:49:26 +02:00
test_plugin_xep_0176.py black reformatting. 2025-12-03 17:49:34 +01:00
test_plugin_xep_0215.py Global reformatting with black. 2025-09-13 10:46:10 +02:00
test_plugin_xep_0234.py tests (unit/webrtc,XEP-0176, XEP-0234): Fix tests and add webrtc file transfer tests: 2024-04-06 12:59:50 +02:00
test_plugin_xep_0272.py tests (unit): fix tests + black reformatting. 2024-07-14 17:42:53 +02:00
test_plugin_xep_0293.py tests (unit): fix tests + black reformatting. 2024-07-14 17:42:53 +02:00
test_plugin_xep_0294.py refactoring: renamed sat package to libervia.backend 2023-06-02 11:49:51 +02:00
test_plugin_xep_0298.py tests (unit): add test for XEP-0298 plugin + fix XEP-0167: 2024-07-29 03:49:26 +02:00
test_plugin_xep_0320.py tests (unit): fix tests + black reformatting. 2024-07-14 17:42:53 +02:00
test_plugin_xep_0338.py tests (unit): fix tests 2024-02-23 15:42:02 +01:00
test_plugin_xep_0339.py refactoring: renamed sat package to libervia.backend 2023-06-02 11:49:51 +02:00
test_plugin_xep_0373.py tests (unit): fix tests + black reformatting. 2024-07-14 17:42:53 +02:00
test_plugin_xep_0420.py tests (unit): fix tests + black reformatting. 2024-07-14 17:42:53 +02:00
test_plugin_xep_0461.py Global reformatting with black. 2025-09-13 10:46:10 +02:00
test_pubsub-cache.py black reformatting. 2025-12-03 17:49:34 +01:00