Skip to content

Commit

Permalink
Fix dns e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe committed Jul 10, 2024
1 parent 6e7a642 commit 8f61e31
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions test/test-manager/src/tests/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ use std::{
use itertools::Itertools;
use mullvad_management_interface::MullvadProxyClient;
use mullvad_types::{
relay_constraints::RelaySettings, settings, ConnectionConfig, CustomTunnelEndpoint,
relay_constraints::{RelaySettings, WireguardConstraints},
settings,
wireguard::{DaitaSettings, QuantumResistantState},
ConnectionConfig, CustomTunnelEndpoint,
};
use talpid_types::net::wireguard;
use test_macro::test_function;
Expand Down Expand Up @@ -630,9 +633,18 @@ async fn run_dns_config_test<
Ok(())
}

/// Connect to the WireGuard relay that is set up in scripts/setup-network.sh
/// See that script for details.
/// Connect to the WireGuard relay that is set up in test-manager/src/vm/network
/// See those files for details.
async fn connect_local_wg_relay(mullvad_client: &mut MullvadProxyClient) -> Result<(), Error> {
// the local wg relay doesn't support negotiating an ephemeral peer
// which means we can't use PQ or daita.
mullvad_client
.set_quantum_resistant_tunnel(QuantumResistantState::Off)
.await?;
mullvad_client
.set_daita_settings(DaitaSettings { enabled: false })
.await?;

let peer_addr: SocketAddr = SocketAddr::new(
IpAddr::V4(CUSTOM_TUN_REMOTE_REAL_ADDR),
CUSTOM_TUN_REMOTE_REAL_PORT,
Expand Down

0 comments on commit 8f61e31

Please sign in to comment.