summaryrefslogtreecommitdiffhomepage
path: root/test/test-rpc/src/lib.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-07-11Fix `AmIMullvad` exit hostname when disconnectedSebastian Holmin1-1/+2
2025-07-11Add functions to toggle service startupSebastian Holmin1-0/+3
2025-07-11Add e2e test for clearing firewall rules on rebootMarkus Pettersson1-0/+3
In some conditions, you can be left with blocking firewall rules if an upgrade fails to install the new app version. Add e2e test to assert that these firewall rules are cleared on reboot for Windows.
2025-06-09Add ifconfig alias e2e testJoakim Hulthe1-0/+7
Co-Authored-By: David Lönnhager <david.l@mullvad.net>
2025-01-07Split up `Service` error variantsMarkus Pettersson1-1/+7
2024-11-08Check that the daemon version is correct post-upgradeMarkus Pettersson1-0/+3
2024-08-22Spawn test processes as an unprivileged user by defaultDavid Lönnhager1-0/+4
Fixes an issue where the connection-checker is allowed to leak traffic on macOS
2024-07-16Add E2E test of CVE-2019-14899 mitigationJoakim Hulthe1-0/+3
2024-04-12Reset daemon environment when neededMarkus Pettersson1-0/+12
2024-04-08Add get_os_version RPCDavid Lönnhager1-0/+3
2024-03-20Test leaking TCP/UDP/ICMP packets in split tunnelJoakim Hulthe1-0/+47
2024-03-08Add wrapped strings to error messagesSebastian Holmin1-8/+8
2024-03-08Add MTU detection integration test for Linux and WindowsSebastian Holmin1-3/+13
Add dependency `scopeguard` for cleaning up nftables ruleset.
2024-02-27Replace err_derive with thiserrorJoakim Hulthe1-24/+24
`err_derive` is unmaintained and will probably stop working with rust edition 2024. `thiserror` is almost a drop-in replacement. This commit simply replaces all occurences of `derive(err_derive::Error)` with `derive(thiserror::Error)` and fixes the attributes, but the Error and Display impls should be identical.
2024-02-07Add RPCs for running TCP forwarder on test runnerDavid Lönnhager1-0/+12
2024-01-08Add 'target_os' attribute to test macroDavid Lönnhager1-3/+0
2023-12-06Remove superseded RPC for restarting the Mullvad system serviceMarkus Pettersson1-5/+3
The function `set_mullvad_daemon_service_state(on: bool) -> Result<(), test_rpc::Error>`, which would conditionally start or stop the Mullvad daemon in the test runner, has been superseded by two separate functions which accomplish the same thing: `start_mullvad_daemon` & `stop_mullvad_daemon`.
2023-12-06Add `test_connecting_state_when_corrupted_state_cache`Markus Pettersson1-1/+1
Add regression test which checks that the daemon successfully recovers from a corrupt target state cache. If the target state cache is corrupt, the daemon will default to the `Connecting` target state on startup.
2023-12-06Implement RPC for reading & writing to app cache fileMarkus Pettersson1-0/+14
- Implement RPC for writing to a file in a test runner / guest VM. - Implement RPC for getting app cache directory - Implement RPC for restarting the app in a test runner / guest vm - Implement RPC for starting the app in a test runner / guest vm - Implement RPC for stopping the app in a test runner / guest vm - Implement `find_cache_traces` on Window & macOS
2023-11-22Obtain tunnel interface from management interface in testsDavid Lönnhager1-13/+7
2023-10-20Add desktop end-to-end testsDavid Lönnhager1-0/+179
Co-authored-by: Jonathan <jonathan@mullvad.net> Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>