summaryrefslogtreecommitdiffhomepage
path: root/test/test-manager/src/tests/tunnel.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-10-02Do not skip LWO testsDavid Lönnhager1-1/+1
2025-09-30Add E2E test for LWODavid Lönnhager1-0/+39
2025-09-16Verify that an IPv6 address is used in e2e testJoakim Hulthe1-6/+14
2025-09-15Add IPv6 to more e2e testsJoakim Hulthe1-5/+31
2025-09-15Add e2e test for in-tunnel IPv6Joakim Hulthe1-2/+68
2025-09-15Split test_wireguard_tunnel test into IPv4 and IPv6 variantsJoakim Hulthe1-4/+13
2025-08-11Add e2e test `test_quantum_resistant_multihop_quic_tunnel`Markus Pettersson1-0/+36
2025-08-11Add e2e test `test_wireguard_over_quic` for QUIC obfuscation methodMarkus Pettersson1-2/+32
2025-07-10Run `cargo fmt` in test-repoSebastian Holmin1-4/+4
2025-03-13Remove "Any" tunnel protocol from query builderSebastian Holmin1-13/+8
2025-03-05Remove 'any' tunnel type from test workspaceDavid Lönnhager1-5/+5
2025-02-24Fix tunnel testsSebastian Holmin1-49/+27
2025-01-22Add location overrides per test to test-manager configMarkus Pettersson1-39/+3
2025-01-08Fix bridge interface IP on macOSSebastian Holmin1-5/+3
The IP of the bridge interface was incorrectly assumed to be constant, but has at some point changed. This broke the algorithm for finding the bridge interface. Replace the algorithm with one based on the guest IP, which is given by `tart`. As the bridge IP is no longer constant, we also expose it through the `TEST_CONFIG`.
2024-11-20Make `test_wireguard_tunnel` use `location: Any`Sebastian Holmin1-11/+4
2024-11-15Move end-to-end tests for audit issues to separate moduleMarkus Pettersson1-88/+3
2024-11-12Address `test_wireguard_over_shadowsocks` flakinessMarkus Pettersson1-1/+9
Limit relay selection in `test_wireguard_over_shadowsocks` to reduce flakiness. Hopefully this should be able to (at least partially) mitigate timeout related issues.
2024-11-12Address `test_multihop` flakinessMarkus Pettersson1-1/+10
Limit relay selection in `test_multihop` to reduce flakiness. Hopefully this should be able to (at least partially) mitigate timeout related issues.
2024-11-12Address `test_quantum_resistant_tunnel` flakinessMarkus Pettersson1-8/+11
Limit relay selection in `test_quantum_resistant_tunnel` to reduce flakiness. Hopefully this should be able to (at least partially) mitigate timeout related issues.
2024-11-12Address `test_quantum_resistant_multihop_udp2tcp_tunnel` flakinessMarkus Pettersson1-0/+6
Limit relay selection in `test_quantum_resistant_multihop_udp2tcp_tunnel` to reduce flakiness. Hopefully this should be able to (at least partially) mitigate timeout-related issues.
2024-11-12Address `test_quantum_resistant_multihop_shadowsocks_tunnel` flakinessMarkus Pettersson1-0/+6
Limit relay selection in `test_quantum_resistant_multihop_shadowsocks_tunnel` to reduce flakiness Hopefully this should be able to (at least partially) mitigate timeout-related issues.
2024-09-17Add DAITA smart routing e2e testsJoakim Hulthe1-35/+0
2024-09-17Remove Option from Relay::locationJoakim Hulthe1-1/+4
2024-09-02Replace footgunny From implementations for RelayQueryDavid Lönnhager1-101/+20
2024-09-02Add integration tests for WG over ShadowsocksDavid Lönnhager1-2/+93
2024-08-16Add Shadowsocks obfuscation support to mullvad-daemonDavid Lönnhager1-0/+2
2024-06-26Enable integration test for DAITA on macOSDavid Lönnhager1-5/+2
2024-06-25Add simple e2e test for connecting with DAITASebastian Holmin1-0/+35
Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>
2024-04-09Make payload of connection checker configurableMarkus Pettersson1-6/+7
2024-04-09Implement test for audit ticket `MUL-02-002 WP2`Markus Pettersson1-2/+87
2024-04-09Run `cargo +nightly fmt`Sebastian Holmin1-29/+14
2024-03-27Refactor `mullvad-relay-selector`Markus Pettersson1-25/+25
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-0/+32
2024-02-08Add local SOCKS bridge testDavid Lönnhager1-1/+105
2024-02-08Add test for remote custom SOCKS5 bridgeDavid Lönnhager1-3/+98
2024-01-15Use type safe Mullvad protobuf client over generated ditoMarkus Pettersson1-44/+40
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-2/+2
2024-01-03Allow app to use custom socks5 and shadwosocks proxiesJonathan1-8/+5
This PR has a couple of different purposes - Allow users to use socks5 local proxies with the CLI without having to be root nor use split-tunneling. This only works for OpenVPN. - Unify the types used by different proxy parts of the codebase, such as the Access Methods as well as some already existing OpenVPN proxy code. This PR changes the firewall on all desktop platforms as well as changes the routing table slightly on MacOS and Windows. On Linux the firewall code is modified to apply the appropriate firewall marks to all packages that go to a remote endpoint corresponding to the remote part of a local socks5 proxy. The firewall marks will allow the routing to be done without having to modify the routing table. On MacOS and Windows the routing table is modified to allow packages to go to that same endpoint to pass outside the VPN tunnel, it will additionally punch a hole in the firewall. The PR also migrates the settings file from version 7 to version 8 in order to properly and neatly unify Proxy related types. Finally it provides some slight extensions to the gRPC interface in order to allow for control over the custom proxy settings.
2023-11-22Remove relay selection logic from multihop and udp2tcp tests (same as ↵David Lönnhager1-59/+48
test_bridge)
2023-11-22Obtain tunnel interface from management interface in testsDavid Lönnhager1-7/+14
2023-11-16Let relay selector pick entry & exit nodes in `test_bridge`Markus Pettersson1-49/+45
We have seen `test_bridge` fail due to high latency if slow + far-away servers were selected. Hopefully delegating the task of picking appropriate entry & exit relays will help mitigate this.
2023-11-16test-framework: Prefer types from `mullvad-types`Markus Pettersson1-31/+34
Prefer types from `mullvad-types` over equivavelent types defined in `mullvad-management-interface`.
2023-10-31Update e2e testsDavid Lönnhager1-35/+31
2023-10-31Replace UpdateRelaySettings with SetRelaySettingsDavid Lönnhager1-10/+10
2023-10-24Prefer `mullvad_types` types over generated tonic typesMarkus Pettersson1-34/+27
2023-10-24Refactor move `reboot` to `helpers.rs`Markus Pettersson1-15/+2
2023-10-24Remove superflous location constraints from multiple test casesMarkus Pettersson1-19/+0
2023-10-20Relax relay constraints in `test_quantum_resistant_multihop_udp2tcp_tunnel`Markus Pettersson1-24/+25
Loosen up relay constraints in `test_quantum_resistant_multihop_udp2tcp_tunnel`, which makes the test more resilient to changes in the testing environment.
2023-10-20Add desktop end-to-end testsDavid Lönnhager1-0/+627
Co-authored-by: Jonathan <jonathan@mullvad.net> Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>