summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJannis Voelker <jannis.voelker@basyskom.com>2019-03-18 12:39:20 +0100
committerJannis Voelker <jannis.voelker@basyskom.com>2019-08-17 16:28:02 +0200
commit45e3f8129a2dd6d871a627d024023eb5e6a72911 (patch)
treef94f9319ba35d38ab068da629643168348b567a3 /tests
parentc3f068568f7b8ddb3e19b0c24fc1b55caf3ce083 (diff)
Add secure connect to the open62541 plugin (v1.0)
This patch adds basic support for secure connections to the open62541 plugin. Supported security policies: - Basic128Rsa15 - Basic256 - Basic256Sha256 Unsupported: - Private keys with password - Manual override in case of certificate verification errors - X509 identity tokens Change-Id: Iae5cdde61e79d091e340c3128a30dca6b119df9e Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/SecurityTest.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/declarative/SecurityTest.qml b/tests/auto/declarative/SecurityTest.qml
index ce2412c..1b44c2b 100644
--- a/tests/auto/declarative/SecurityTest.qml
+++ b/tests/auto/declarative/SecurityTest.qml
@@ -65,7 +65,10 @@ Item {
compare(connection2.supportedSecurityPolicies.length, 6);
compare(connection2.supportedUserTokenTypes.length, 3);
} else if (backendName === "open62541") {
- compare(connection2.supportedSecurityPolicies.length, 1);
+ if (SERVER_SUPPORTS_SECURITY)
+ compare(connection2.supportedSecurityPolicies.length, 4);
+ else
+ compare(connection2.supportedSecurityPolicies.length, 1);
compare(connection2.supportedUserTokenTypes.length, 2);
} else {
fail(backendName, "is not support by this test case");