summaryrefslogtreecommitdiffhomepage
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2024-04-17Remove dummy interfacesDavid Lönnhager3-70/+3
2024-04-17Prevent ARP lookups during LAN testsDavid Lönnhager3-60/+48
2024-04-17Run nightly formatter for testsDavid Lönnhager1-2/+2
2024-04-15Add Zlib to allowed licencesOskar Nyberg1-1/+2
2024-04-12Reset daemon environment when neededMarkus Pettersson6-35/+256
2024-04-12Upgrade `pcap` to `1.3`Markus Pettersson2-3/+4
This fixes type checking of `pcap` functions on Windows. Without it, type checking of the ``test-runner` crate from a Linux host to a Windows target would not work.
2024-04-12Do not panic in DNS testsMarkus Pettersson1-16/+23
Avoid panicking in more tests - prefer to propagate an error value instead.
2024-04-12Get rid of type casting for test function argumentMarkus Pettersson4-31/+27
Replace the `Box<dyn Any>` type for the third test function argument 'mullvad client' - replace it with a dedicated enum type `MullvadClientArgument`. This change got rid of the type casting from `Box<dyn Any>` to `MullvadProxyClient` done in the `test_function` macro.
2024-04-12Fix SOCKS5 server should accept all trafficMarkus Pettersson1-4/+4
Specify that the `Authentication` should be 'Accept all traffic' by default for the SOCKS5-server we spawn on the test manager. Otherwise, the default is to 'Deny all traffic' by default.
2024-04-12Refactor custom access method integration testsMarkus Pettersson1-44/+50
Break out the Shadowsocks and SOCKS5 custom access method tests into seperate tests. The intent is to increase logging granularity.
2024-04-12Add ClearCustomLists RPC callJoakim Hulthe1-6/+5
2024-04-12Add ClearCustomApiAccessMethods rpc callJoakim Hulthe1-0/+11
2024-04-12Make sure we clear all settings between e2e testsJoakim Hulthe1-13/+50
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-10Add list-tests command to test-managerJoakim Hulthe1-0/+14
2024-04-10Sort desktop e2e result matrix by priorityJoakim Hulthe3-7/+12
2024-04-09Make payload of connection checker configurableMarkus Pettersson4-19/+38
2024-04-09Implement test for audit ticket `MUL-02-002 WP2`Markus Pettersson7-82/+166
2024-04-09Move `ConnChecker` to `helpers.rs`Markus Pettersson2-304/+313
2024-04-09Run `cargo +nightly fmt`Sebastian Holmin22-166/+136
2024-04-08Print detected tested guest OS versionDavid Lönnhager2-0/+23
2024-04-08Add get_os_version RPCDavid Lönnhager5-0/+68
2024-04-08Print error cause on test vm config parse failJoakim Hulthe1-1/+1
2024-04-08Add timeout to tester geoip rcp callJoakim Hulthe3-9/+23
2024-04-08Add ip override test for wireguardJoakim Hulthe2-0/+450
2024-04-04Add macros for implementing `Intersection` traitSebastian Holmin1-0/+11
2024-04-04Upgrade h2 to non-vulnerable version RUSTSEC-2024-0332Linus Färnstrand1-2/+2
2024-04-03Enable single-use-lifetimes rustc lintLinus Färnstrand1-0/+1
Removes superfluous lifetime definitions. Simplifying the code
2024-04-02Enable more of the Allowed-by-default lints in rustcLinus Färnstrand1-1/+9
* macro_use_extern_crate - Forbid #[macro_use] to bring macros into global scope. Even using `extern crate` is deprecated by now, so just extra protection against that * explicit_outlives_requirements - Warn aginst explicit lifetime bounds that can be inferred from the code. Keeps noise away. * absolute_paths_not_starting_with_crate - Catches Rust 2015 style absolute paths and denies them. * missing_abi - Force explicitly stating the ABI of `extern` items. Less implicit code * unused_lifetimes - Warn if you have lifetimes that are not used. Same reason as warning against unused variables * unused_macro_rules - Warn if you have a declarative macro with a rule that is never used. Basically same reason as warning on unused variables. Removes dead code
2024-04-02Deny non-ascii Rust identifiersLinus Färnstrand1-0/+5
Prevents some cases of supply chain attacks where code is made to look like one thing, but does something else
2024-03-27Refactor `mullvad-relay-selector`Markus Pettersson5-32/+44
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-26Update [deny] section of the deny.toml filesLinus Färnstrand1-4/+0
2024-03-26Update [advisories] section of our deny.toml files to version 2Linus Färnstrand1-5/+1
2024-03-26Update and align [sources] section of our deny.toml filesLinus Färnstrand1-4/+9
2024-03-26Update [licenses] section of deny.toml to version 2Linus Färnstrand1-8/+2
2024-03-26Update cargo deny targetsLinus Färnstrand1-8/+11
Adds Android and iOS targets
2024-03-26Enter blocking state correctly in upgrade testDavid Lönnhager1-2/+1
2024-03-25Make sure connecting works while API is unavailableMarkus Pettersson4-45/+109
2024-03-25Bump dependenciesMarkus Pettersson2-35/+24
Get rid of transitive dependency on `is-terminal` and `termcolor`
2024-03-25Upgrade `plist`Markus Pettersson2-28/+35
2024-03-22Bump "rust-version" to 1.77 since the containers use that nowLinus Färnstrand1-1/+1
2024-03-21Fix wonky timeouts in test_split_tunnelJoakim Hulthe1-3/+14
2024-03-21Upgrade is-terminal to get rid of runtime rustix dependencyLinus Färnstrand1-4/+70
2024-03-21Upgrade rustix to fix GHSA-c827-hfw6-qwvmLinus Färnstrand1-10/+9
Fixing hypothetical denial of service due to ever growing memory usage. Not possible to exploit in our app. 2/3 usages is in build dependencies. Only usage inside the built app is via is-terminal which does not use `rustix::fs::Dir`. https://osv.dev/vulnerability/GHSA-c827-hfw6-qwvm
2024-03-20Merge test_mtu_detection_{windows,linux} testsJoakim Hulthe1-18/+2
2024-03-20Test leaking TCP/UDP/ICMP packets in split tunnelJoakim Hulthe20-172/+863
2024-03-20Group platform split tunnel tests under one testJoakim Hulthe1-4/+15
2024-03-20Add split tunnel test for windowsJoakim Hulthe1-25/+96
2024-03-20Add am-i-mullvad cli for testing split tunnelingJoakim Hulthe6-7/+225
2024-03-20Make OVMF paths configurable per VMJoakim Hulthe2-8/+36