summaryrefslogtreecommitdiffhomepage
path: root/test/test-rpc
AgeCommit message (Collapse)AuthorFilesLines
2025-09-12Stop daemon correctly when changing log level in testsDavid Lönnhager1-3/+0
2025-09-12Wait for service after app install in testsDavid Lönnhager1-1/+6
2025-09-12Check actual service status in test framework instead of only named pipeDavid Lönnhager1-1/+1
2025-07-11Fix `AmIMullvad` exit hostname when disconnectedSebastian Holmin1-1/+2
2025-07-11Add functions to toggle service startupSebastian Holmin2-2/+28
2025-07-11Add e2e test for clearing firewall rules on rebootMarkus Pettersson2-0/+17
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-07-10Run `cargo fmt` in test-repoSebastian Holmin2-4/+4
2025-07-09Inline format argumentsLinus Färnstrand1-1/+1
2025-06-09Add ifconfig alias e2e testJoakim Hulthe2-0/+27
Co-Authored-By: David Lönnhager <david.l@mullvad.net>
2025-01-22Remove mullvad client version from macroSebastian Holmin1-6/+0
Replace `MullvadClientArgument` with `Option` Small refactor
2025-01-22Add location overrides per test to test-manager configMarkus Pettersson1-1/+1
2025-01-07Split up `Service` error variantsMarkus Pettersson1-1/+7
2024-11-08Check that the daemon version is correct post-upgradeMarkus Pettersson2-0/+13
2024-10-16Use `ring` crypto-provider explicitly in test frameworkSebastian Holmin1-2/+8
2024-09-26Replace `aws-lc-rs` with `ring` as crypto providerSebastian Holmin1-2/+2
2024-09-26Update to `hyper` version 1 echosystem for e2e testsSebastian Holmin2-20/+26
2024-08-27Use std LazyLock instead of once_cell LazyDavid Lönnhager2-4/+2
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-08-14Redo error handling `test_automatic_wireguard_rotation`Markus Pettersson1-5/+10
Make the following changes: - Propagate the device error instead of throwing away the error information by transforming it into an `Option`. - Increase daemon restart timeout - Convert catch-all arm to exhaustive check
2024-07-29Fix lints for Rust verson 1.80 in e2e testsSebastian Holmin1-1/+1
* Lower priority for lint group * doc list item missing indentation
2024-07-16Add E2E test of CVE-2019-14899 mitigationJoakim Hulthe2-0/+10
2024-04-12Reset daemon environment when neededMarkus Pettersson2-0/+26
2024-04-08Print detected tested guest OS versionDavid Lönnhager1-0/+10
2024-04-08Add get_os_version RPCDavid Lönnhager3-0/+27
2024-04-08Add timeout to tester geoip rcp callJoakim Hulthe1-3/+12
2024-03-25Make sure connecting works while API is unavailableMarkus Pettersson1-0/+5
2024-03-20Test leaking TCP/UDP/ICMP packets in split tunnelJoakim Hulthe2-0/+69
2024-03-20Refactor forward_messages to use select macroJoakim Hulthe1-28/+29
2024-03-08Add wrapped strings to error messagesSebastian Holmin1-8/+8
2024-03-08Add MTU detection integration test for Linux and WindowsSebastian Holmin2-9/+27
Add dependency `scopeguard` for cleaning up nftables ruleset.
2024-02-27Replace err_derive with thiserrorJoakim Hulthe5-57/+52
`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-15Enable access method GUI test in e2e testingMarkus Pettersson1-1/+7
Since `test_custom_access_methods_ui` may fail after messing with the test runner environment, we want to fail fast and abort the entire test run if the test fails before managing to clean up.
2024-02-07Add RPCs for running TCP forwarder on test runnerDavid Lönnhager3-1/+78
2024-01-16Add rust-version to all Cargo.tomlLinus Färnstrand1-0/+1
2024-01-11Add package metadata to crates in testing frameworkLinus Färnstrand1-2/+4
Such as authors, repository, licence etc. And have all crates inherit from the workspace
2024-01-08Add 'skipped' status to test summaryDavid Lönnhager1-0/+1
2024-01-08Add 'target_os' attribute to test macroDavid Lönnhager3-21/+15
2024-01-04Fix code not following new linting rules in testing frameworkLinus Färnstrand2-3/+4
2024-01-04Add workspace level linting to test workspaceLinus Färnstrand1-0/+3
2023-12-15[Clippy] Fix complex typesMarkus Pettersson1-16/+17
2023-12-15[Clippy] Fix unused `async`Markus Pettersson1-1/+1
2023-12-06Remove superseded RPC for restarting the Mullvad system serviceMarkus Pettersson2-29/+27
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 Pettersson2-5/+10
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 Pettersson2-0/+60
- 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önnhager2-23/+15
2023-10-20Add desktop end-to-end testsDavid Lönnhager9-0/+1204
Co-authored-by: Jonathan <jonathan@mullvad.net> Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>