summaryrefslogtreecommitdiffhomepage
path: root/test/test-manager/src/tests/install.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-07-10Run `cargo fmt` in test-repoSebastian Holmin1-4/+4
2025-07-09Inline format argumentsLinus Färnstrand1-4/+2
2025-06-05Fix typosomahs1-1/+1
2025-04-23Add end-to-end test for app removal checkDavid Lönnhager1-0/+59
2025-02-18Unify daemon app version typesKalle Lindström1-2/+4
Previously we had two types in the code base that dealt with version parsing. This commit unifies these types so that we only use the Version struct that is defines in the mullvad-version crate. This also solves a bug where the daemon code would crash on alpha versions, as the previous version parsing code didn't handle them.
2025-01-22Remove mullvad client version from macroSebastian Holmin1-2/+2
Replace `MullvadClientArgument` with `Option` Small refactor
2025-01-07Swap `if + bail!` for `ensure!`Markus Pettersson1-3/+4
2025-01-07Add more debug logging to test_upgrade_appMarkus Pettersson1-10/+8
2024-11-08Check that the daemon version is correct post-upgradeMarkus Pettersson1-0/+14
2024-08-16Refactor test cleanup logicSebastian Holmin1-119/+42
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-14Redo error handling `test_automatic_wireguard_rotation`Markus Pettersson1-2/+2
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-12Replace OpenVPN CA certificate using CLI flagMarkus Pettersson1-22/+15
2024-07-19Rename `--previous-app` to `--app-package-to-upgrade-from`Sebastian Holmin1-1/+1
2024-07-19Rename `--current-app` to `--app-package`Sebastian Holmin1-3/+3
2024-07-19Make previous app version and gui e2e binaries optionalSebastian Holmin1-2/+7
2024-06-10Retry DNS lookup for API in test managerDavid Lönnhager1-25/+31
2024-04-22Limit execution of `test_installation_idempotency`Markus Pettersson1-22/+30
2024-04-09Implement test for audit ticket `MUL-02-002 WP2`Markus Pettersson1-0/+1
2024-04-09Run `cargo +nightly fmt`Sebastian Holmin1-21/+15
2024-03-27Refactor `mullvad-relay-selector`Markus Pettersson1-2/+2
Implement a system built on 'queries' for selecting appropriate relays. A query is a set of constraints which dictates which relay(s) that *can* be chosen by the relay selector. The user's settings can naturally be expressed as a query. The semantics of merging two queries in a way that always prefer user settings is defined by the new `Intersection` trait. Split `mullvad-relay-selector` into several modules: - `query.rs`: Definition of a query on different types of relays. This module is integral to the new API of `mullvad-relay-selector` - `matcher.rs`: Logic for filtering out candidate relays based on a query. - `detailer.rs`: Logic for deriving connection details for the selected relay. - `tests/`: Integration tests for the new relay selector. These tests only use the public APIs of `RelaySelector` and make sure that the output matches the expected output in different scenarios.
2024-03-26Enter blocking state correctly in upgrade testDavid Lönnhager1-2/+1
2024-02-15Enable access method GUI test in e2e testingMarkus Pettersson1-18/+4
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-15Fix off-by-one error when choosing access method candidatesMarkus Pettersson1-5/+4
2024-01-17Make test_installation_idempotency succeed when there is no accountDavid Lönnhager1-4/+9
2024-01-17Make changelog link static in testDavid Lönnhager1-1/+1
2024-01-15Use type safe Mullvad protobuf client over generated ditoMarkus Pettersson1-28/+19
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-08Add 'target_os' attribute to test macroDavid Lönnhager1-1/+1
2024-01-02Fix clippy lintsMarkus Pettersson1-1/+1
2023-12-07RefactoringMarkus Pettersson1-4/+6
- Import qualified `network_monitor` - Add `obtain_guest_ip` - Fix docs
2023-12-07Refactor `test_upgrade_app` to use `Pinger` for leak testingMarkus Pettersson1-50/+9
2023-12-07Add ping monitoring to `helpers.rs`Markus Pettersson1-45/+7
2023-12-07Add regression test checking idempotency of app installationMarkus Pettersson1-2/+96
Installing the app twice (or more times) should have the same observable effect as installing it once. If the app is upgraded and the user is in a connected state before starting the upgrade, no traffic should leak during the installation process and the app should start up in a connected state preserving the relay constraints.
2023-11-22Obtain tunnel interface from management interface in testsDavid Lönnhager1-3/+7
2023-10-24Fully abort all tasks before leaving a testDavid Lönnhager1-7/+12
2023-10-20Add desktop end-to-end testsDavid Lönnhager1-0/+357
Co-authored-by: Jonathan <jonathan@mullvad.net> Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>