summaryrefslogtreecommitdiffhomepage
path: root/test/test-manager/src/tests/helpers.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-09-15Fix IPv6 in e2e connection-checkerJoakim Hulthe1-24/+57
2025-09-15Do not crash on error in connection-checkerJoakim Hulthe1-6/+18
2025-09-12Wait for service after app install in testsDavid Lönnhager1-15/+1
2025-09-12Check actual service status in test framework instead of only named pipeDavid Lönnhager1-3/+8
2025-07-10Run `cargo fmt` in test-repoSebastian Holmin1-9/+10
2025-07-09Inline format argumentsLinus Färnstrand1-8/+5
2025-06-16Do not rely on DNS for API in installer-downloaderDavid Lönnhager1-1/+1
2025-05-14Wait for daemon to start in install_appJoakim Hulthe1-3/+10
2025-03-18Replace to_owned with clone where that's implicitly what was going onLinus Färnstrand1-1/+1
2025-03-05Remove 'any' tunnel type from test workspaceDavid Lönnhager1-1/+1
2025-02-24Replace `thiserror` with `anyhow` in some helper fnsSebastian Holmin1-18/+16
2025-02-24Fix `constrain_to_relay`Sebastian Holmin1-22/+96
2025-02-24Remove `set_relay_settings`Sebastian Holmin1-18/+37
2025-02-24Fix `apply_settings_from_query` overwriting settingsSebastian Holmin1-1/+11
2025-02-12Fix `clippy::precedence`Sebastian Holmin1-1/+1
2025-01-22Lower verbosity of logsSebastian Holmin1-2/+2
2025-01-22Add location overrides per test to test-manager configMarkus Pettersson1-151/+40
2024-11-20Fix spelling mistakesSebastian Holmin1-5/+5
2024-11-20Set the default location for tests to "Nordic"Sebastian Holmin1-0/+32
Add to `prepare_daemon` a step where the default location, including for multihop and bridges, is set to the `Nordic` custom list.
2024-11-20Select bridge respecting location constraintSebastian Holmin1-1/+1
2024-11-18Run connection-checker against the specified API environmentDavid Lönnhager1-0/+2
2024-11-15Return error from `get_tunnel_interface` to ease error propagationMarkus Pettersson1-4/+7
2024-11-14Make `constrain_to_relay` work with custom listsSebastian Holmin1-3/+17
2024-11-12Add helper module for working with custom lists in end-to-end testsMarkus Pettersson1-0/+124
2024-09-23Include amount of time it took to connect in testDavid Lönnhager1-2/+7
2024-09-17Remove Option from Relay::locationJoakim Hulthe1-18/+9
2024-09-02Replace footgunny From implementations for RelayQueryDavid Lönnhager1-20/+25
2024-08-29Fix test_split_tunnelDavid Lönnhager1-9/+9
Raw ICMP isn't allowed on all platforms for unprivileged users. Instead: * Use SOCK_DGRAM, where possible * Use 'ping' command, since SOCK_DGRAM isn't allowed on some older Linux distros.
2024-08-28Filter out OpenVPN relays when a core privacy feature is enabledDavid Lönnhager1-2/+6
Core privacy features currently include PQ, multihop, and DAITA
2024-08-21Set relay port with constrain_to_relay helperDavid Lönnhager1-4/+7
2024-08-16Refactor test cleanup logicSebastian Holmin1-11/+87
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-2/+4
Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>
2024-07-29Fix lints for Rust verson 1.80 in e2e testsSebastian Holmin1-2/+2
* Lower priority for lint group * doc list item missing indentation
2024-07-16Add E2E test of CVE-2019-14899 mitigationJoakim Hulthe1-0/+49
2024-06-26Enable integration test for DAITA on macOSDavid Lönnhager1-1/+0
2024-06-25Add simple e2e test for connecting with DAITASebastian Holmin1-2/+2
Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>
2024-06-25Enable DAITA for linux in CLI and typesSebastian Holmin1-0/+2
2024-06-10Retry DNS lookup for API in test managerDavid Lönnhager1-9/+37
2024-04-30Enable integration tests for macOS split tunnelingDavid Lönnhager1-4/+6
2024-04-19Add ensure_logged_in test helper functionOskar Nyberg1-0/+15
2024-04-17Prevent ARP lookups during LAN testsDavid Lönnhager1-2/+2
2024-04-17Run nightly formatter for testsDavid Lönnhager1-2/+2
2024-04-09Make payload of connection checker configurableMarkus Pettersson1-8/+24
2024-04-09Implement test for audit ticket `MUL-02-002 WP2`Markus Pettersson1-27/+49
2024-04-09Move `ConnChecker` to `helpers.rs`Markus Pettersson1-4/+305
2024-03-27Refactor `mullvad-relay-selector`Markus Pettersson1-1/+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-25Make sure connecting works while API is unavailableMarkus Pettersson1-17/+70
2024-03-08Add MTU detection integration test for Linux and WindowsSebastian Holmin1-6/+18
Add dependency `scopeguard` for cleaning up nftables ruleset.
2024-02-15Enable access method GUI test in e2e testingMarkus Pettersson1-0/+18
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-06Simplify how settings are reset in testsDavid Lönnhager1-45/+1