Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make test_wireguard_tunnel use location: Any #7209

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions test/test-manager/src/tests/tunnel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use mullvad_types::{
constraints::Constraint,
relay_constraints::{
self, BridgeConstraints, BridgeSettings, BridgeType, OpenVpnConstraints, RelayConstraints,
RelaySettings, TransportPort, WireguardConstraints,
RelaySettings, TransportPort,
},
wireguard,
};
Expand Down Expand Up @@ -103,18 +103,11 @@ pub async fn test_wireguard_tunnel(
for (port, should_succeed) in PORTS {
log::info!("Connect to WireGuard endpoint on port {port}");

let relay_settings = RelaySettings::Normal(RelayConstraints {
tunnel_protocol: Constraint::Only(TunnelType::Wireguard),
wireguard_constraints: WireguardConstraints {
port: Constraint::Only(port),
..Default::default()
},
..Default::default()
});
let query = RelayQueryBuilder::new().wireguard().port(port).build();

set_relay_settings(&mut mullvad_client, relay_settings)
apply_settings_from_relay_query(&mut mullvad_client, query)
.await
.expect("failed to update relay settings");
.unwrap();

let connection_result = connect_and_wait(&mut mullvad_client).await;
assert_eq!(
Expand Down
Loading