summaryrefslogtreecommitdiffhomepage
path: root/test/test-manager/src/tests/account.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-07-10Run `cargo fmt` in test-repoSebastian Holmin1-4/+4
2025-01-02Remove global API endpointEmīls1-9/+4
2024-12-02Remove DNS fallback except for conncheckDavid Lönnhager1-5/+2
2024-11-22Add non-blocking DNS resolver for Android API requestsDavid Lönnhager1-2/+5
2024-08-16Refactor test cleanup logicSebastian Holmin1-55/+30
Cleanup is now done BEFORE tests are run and takes care of resetting the daemon state more thoroughly. The daemon will now always be installed, logged in and disconnected with all settings reset before the next test. Tests are therefore not able to depend on the previous test leaving the test-runner in a certain state and must instead take care of setting up their own state themselves. `test_upgrade_app` gets special treatment to be able to run before the new app version is automatically installed. Refactor `run_tests.rs`
2024-08-16Improve logs and reduce verbositySebastian Holmin1-1/+1
Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>
2024-08-14Redo error handling `test_automatic_wireguard_rotation`Markus Pettersson1-85/+82
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-08-09Improve error messagesSebastian Holmin1-4/+7
2024-06-10Retry DNS lookup for API in test managerDavid Lönnhager1-21/+24
2024-04-11Fix wireguard rotation testSebastian Holmin1-20/+39
The test was flaky because if a race condition which made the key rotation missable.
2024-04-09Run `cargo +nightly fmt`Sebastian Holmin1-7/+6
2024-03-25Make sure connecting works while API is unavailableMarkus Pettersson1-28/+2
2024-02-19Fix redundant importsDavid Lönnhager1-1/+1
2024-02-16Refactor API access methodsDavid Lönnhager1-4/+1
2024-02-15Fix off-by-one error when choosing access method candidatesMarkus Pettersson1-9/+11
2024-01-15Use type safe Mullvad protobuf client over generated ditoMarkus Pettersson1-75/+61
Re-write some code in the test framework to prefer the type safe wrapper around the Mullvad app gRPC client instead of its auto-generated dito. `ManagementServiceClient` is automatically generated from the protobuf definitions found in `management_interface.proto`, and contains some very crude types. The `MullvadProxyClient` is a type-safe wrapper around `ManagementServiceClient` which performs conversions & validation of the data types from the gRPC server (the daemon) to their respective mappings in the `talpid-*` and `mullvad-*` crates. These types are more ergonomic to work with, and since we already have the conversions in place we should prefer those.
2024-01-11Synchronize `mullvad-api` and `mullvad-daemon` when the `api-override`Markus Pettersson1-3/+3
feature is enabled Move the logic for using overridden API endpoints for API calls from `mullvad-api::rest` to `mullvad_daemon::api`. This is in line with how the interaction between the two crates work for a normal release build, i.e. when the `api-override` feature is disabled. This commit also removes references to `force_direct_connection` in the Android code. The flag does not exist in the `mullvad-*` rust crates anymore, so it would be erroneous to try to serialize/deserialize the value from the Android client.
2024-01-08Remove `ApiEndpointUpdateHandler`Markus Pettersson1-4/+1
Previously, the `mullvad-api` would tell the `mullvad-daemon` that it wanted a new API endpoint by calling a certain callback (`ApiEndpointUpdateCallback`), which would asynchronously resolve a new API endpoint and tell the daemon to punch an appropriate hole in the firewall for that particular endpoint before the `mullvad-api` crate would consume it. The logic of the callback can be moved inside `AccessModeSelector`, which simplifies the contract between `mullvad-daemon` and `mullvad-api` somewhat.
2023-12-06Remove superseded RPC for restarting the Mullvad system serviceMarkus Pettersson1-2/+2
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-11-22Obtain tunnel interface from management interface in testsDavid Lönnhager1-1/+2
2023-10-20Add desktop end-to-end testsDavid Lönnhager1-0/+381
Co-authored-by: Jonathan <jonathan@mullvad.net> Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>