File tree 1 file changed +27
-0
lines changed
test/test-manager/src/tests
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,33 @@ pub async fn test_wireguard_autoconnect(
401
401
Ok ( ( ) )
402
402
}
403
403
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
+
404
431
/// Test whether the daemon automatically connects on reboot when using
405
432
/// OpenVPN.
406
433
///
You can’t perform that action at this time.
0 commit comments