Skip to content

Commit 139707f

Browse files
committed
Add simple e2e test for connecting with DAITA
1 parent aae55e3 commit 139707f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

test/test-manager/src/tests/tunnel.rs

+27
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,33 @@ pub async fn test_wireguard_autoconnect(
401401
Ok(())
402402
}
403403

404+
#[test_function]
405+
pub async fn test_daita_connect(
406+
_: TestContext,
407+
rpc: ServiceClient,
408+
mut mullvad_client: MullvadProxyClient,
409+
) -> Result<(), Error> {
410+
log::info!("Setting tunnel protocol to WireGuard");
411+
412+
set_relay_settings(
413+
&mut mullvad_client,
414+
RelaySettings::Normal(
415+
RelayQueryBuilder::new()
416+
.wireguard()
417+
.daita()
418+
.into_constraint(),
419+
),
420+
)
421+
.await?;
422+
423+
connect_and_wait(&mut mullvad_client).await?;
424+
425+
log::info!("Check that the connection works");
426+
let _ = helpers::geoip_lookup_with_retries(&rpc).await?;
427+
428+
Ok(())
429+
}
430+
404431
/// Test whether the daemon automatically connects on reboot when using
405432
/// OpenVPN.
406433
///

0 commit comments

Comments
 (0)