summaryrefslogtreecommitdiffhomepage
path: root/test/test-manager/src
diff options
context:
space:
mode:
authorMarkus Pettersson <markus.pettersson@mullvad.net>2023-10-23 15:58:17 +0200
committerMarkus Pettersson <markus.pettersson@mullvad.net>2023-10-24 11:35:04 +0200
commit71fff416c4151dde2476a72f94fc59cb3f1af6f6 (patch)
treea754a7f8855a2c2602d4d8de1542f3cc073adc33 /test/test-manager/src
parenta73fc0b36f22e6865fbf7701eb49fbf44a3838e3 (diff)
downloadmullvadvpn-71fff416c4151dde2476a72f94fc59cb3f1af6f6.tar.xz
mullvadvpn-71fff416c4151dde2476a72f94fc59cb3f1af6f6.zip
Remove superflous location constraints from multiple test cases
Diffstat (limited to 'test/test-manager/src')
-rw-r--r--test/test-manager/src/tests/tunnel.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/test-manager/src/tests/tunnel.rs b/test/test-manager/src/tests/tunnel.rs
index be0a24dd14..9edc2414a8 100644
--- a/test/test-manager/src/tests/tunnel.rs
+++ b/test/test-manager/src/tests/tunnel.rs
@@ -48,9 +48,6 @@ pub async fn test_openvpn_tunnel(
log::info!("Connect to {protocol} OpenVPN endpoint");
let relay_settings = RelaySettingsUpdate::Normal(RelayConstraintsUpdate {
- location: Some(Constraint::Only(LocationConstraint::Location(
- GeographicLocationConstraint::Country("se".to_string()),
- ))),
tunnel_protocol: Some(Constraint::Only(TunnelType::OpenVpn)),
openvpn_constraints: Some(OpenVpnConstraints { port: constraint }),
..Default::default()
@@ -91,9 +88,6 @@ pub async fn test_wireguard_tunnel(
log::info!("Connect to WireGuard endpoint on port {port}");
let relay_settings = RelaySettingsUpdate::Normal(RelayConstraintsUpdate {
- location: Some(Constraint::Only(LocationConstraint::Location(
- GeographicLocationConstraint::Country("se".to_string()),
- ))),
tunnel_protocol: Some(Constraint::Only(TunnelType::Wireguard)),
wireguard_constraints: Some(WireguardConstraints {
port: Constraint::Only(port),
@@ -149,11 +143,7 @@ pub async fn test_udp2tcp_tunnel(
.expect("failed to enable udp2tcp");
let relay_settings = RelaySettingsUpdate::Normal(RelayConstraintsUpdate {
- location: Some(Constraint::Only(LocationConstraint::Location(
- GeographicLocationConstraint::Country("se".to_string()),
- ))),
tunnel_protocol: Some(Constraint::Only(TunnelType::Wireguard)),
- wireguard_constraints: Some(WireguardConstraints::default()),
..Default::default()
});
@@ -394,9 +384,6 @@ pub async fn test_wireguard_autoconnect(
log::info!("Setting tunnel protocol to WireGuard");
let relay_settings = RelaySettingsUpdate::Normal(RelayConstraintsUpdate {
- location: Some(Constraint::Only(LocationConstraint::Location(
- GeographicLocationConstraint::Country("se".to_string()),
- ))),
tunnel_protocol: Some(Constraint::Only(TunnelType::Wireguard)),
..Default::default()
});
@@ -439,9 +426,6 @@ pub async fn test_openvpn_autoconnect(
log::info!("Setting tunnel protocol to OpenVPN");
let relay_settings = RelaySettingsUpdate::Normal(RelayConstraintsUpdate {
- location: Some(Constraint::Only(LocationConstraint::Location(
- GeographicLocationConstraint::Country("se".to_string()),
- ))),
tunnel_protocol: Some(Constraint::Only(TunnelType::OpenVpn)),
..Default::default()
});
@@ -513,9 +497,6 @@ pub async fn test_quantum_resistant_tunnel(
log::info!("Setting tunnel protocol to WireGuard");
let relay_settings = RelaySettingsUpdate::Normal(RelayConstraintsUpdate {
- location: Some(Constraint::Only(LocationConstraint::Location(
- GeographicLocationConstraint::Country("se".to_string()),
- ))),
tunnel_protocol: Some(Constraint::Only(TunnelType::Wireguard)),
..Default::default()
});