summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorOskar <oskar@mullvad.net>2025-02-07 07:44:08 +0100
committerOskar <oskar@mullvad.net>2025-02-14 16:39:57 +0100
commitae643fafd40d95100b0964cb373872222a910fd9 (patch)
tree70c09abffeba9ee93ac1099abbc286ecd9dbe878 /test
parentc029561136bac007ba5dd350f5e3b60e703a2e42 (diff)
downloadmullvadvpn-ae643fafd40d95100b0964cb373872222a910fd9.tar.xz
mullvadvpn-ae643fafd40d95100b0964cb373872222a910fd9.zip
Split OpenVPN tunnel-state tests to separate file
Diffstat (limited to 'test')
-rw-r--r--test/test-manager/src/tests/ui.rs18
1 files changed, 17 insertions, 1 deletions
diff --git a/test/test-manager/src/tests/ui.rs b/test/test-manager/src/tests/ui.rs
index 088fd1e55d..4327ad7489 100644
--- a/test/test-manager/src/tests/ui.rs
+++ b/test/test-manager/src/tests/ui.rs
@@ -101,7 +101,7 @@ pub async fn test_ui_tunnel_settings(
let ui_result = run_test_env(
&rpc,
- &["tunnel-state.spec"],
+ &["state-dependent/tunnel-state.spec"],
[
("HOSTNAME", entry.hostname.as_str()),
("IN_IP", &entry.ipv4_addr_in.to_string()),
@@ -118,6 +118,22 @@ pub async fn test_ui_tunnel_settings(
Ok(())
}
+/// Test how various tunnel settings for OpenVPN are handled and displayed by the GUI
+#[test_function]
+pub async fn test_ui_openvpn_tunnel_settings(
+ _: TestContext,
+ rpc: ServiceClient,
+ mut mullvad_client: MullvadProxyClient,
+) -> anyhow::Result<()> {
+ // openvpn-tunnel-state.spec precondition: OpenVPN needs to be selected
+ let query = RelayQueryBuilder::new().openvpn().build();
+ helpers::apply_settings_from_relay_query(&mut mullvad_client, query).await?;
+
+ let ui_result = run_test(&rpc, &["openvpn-tunnel-state.spec"]).await?;
+ assert!(ui_result.success());
+ Ok(())
+}
+
/// Test whether logging in and logging out work in the GUI
#[test_function(priority = 500)]
pub async fn test_ui_login(