From b642eb4052002526483ea8722ad960715e255db2 Mon Sep 17 00:00:00 2001 From: Einar Omang Date: Wed, 24 Jun 2026 09:51:42 +0200 Subject: [PATCH] Add a test for password authentication with Basic256Sha256 --- async-opcua/tests/integration/core_tests.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/async-opcua/tests/integration/core_tests.rs b/async-opcua/tests/integration/core_tests.rs index 0916978d2..d23efb0ae 100644 --- a/async-opcua/tests/integration/core_tests.rs +++ b/async-opcua/tests/integration/core_tests.rs @@ -223,6 +223,16 @@ async fn connect_basic128rsa15_with_username_password() { .await; } +#[tokio::test] +async fn connect_basic256sha256_with_username_password() { + conn_test( + SecurityPolicy::Basic256Sha256, + MessageSecurityMode::SignAndEncrypt, + client_user_token(), + ) + .await; +} + #[tokio::test] async fn connect_basic128rsa15_with_x509_token() { conn_test(