summaryrefslogtreecommitdiffstats
path: root/tests/auto/security/tst_security.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Correct license for test filesLucie Gérard2024-03-261-1/+1
| | | | | | | | | | | | According to QUIP-18 [1], all test files should be LicenseRef-Qt-Commercial OR GPL-3.0-only [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: Ie471cddda8cdb714640c4cbd15ac39c6911280c4 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Speed up the C++ testsJannis Voelker2023-11-231-4/+29
| | | | | | | | | By reordering and conditional execution of QSignalSpy::wait() and reducing some wait times when no signal is expected, the test runtimes could be greatly reduced. Change-Id: Ie28b27db6d636e0bb8c615860772a15febb18ce0 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Remove the UACPP pluginJannis Voelker2023-11-201-3/+0
| | | | | | | | | | | | | | The Unified Automation plugin was only partially ported to Qt 6 and was since then mostly unmaintained. New feature introduced since 5.15 and later were only available for the open62541 backend. [ChangeLog][Qt OPC UA] The Unified Automation backend has been removed. The open62541 backend will be able to act as a drop-in replacement for everything except the connectError() signal. Change-Id: I7e859133bb973256cdfe8eb9b6949379acb689b9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com> Reviewed-by: Vladimir Minenko <vladimir.minenko@qt.io>
* Fix issues pointed out by clazyJannis Voelker2023-09-261-8/+7
| | | | | Change-Id: Ia530dd568f2247f6aca97253b8f28dd99392b956 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Mark the whole repo with QT_NO_CONTEXTLESS_CONNECTAhmad Samir2023-08-221-2/+6
| | | | | | | | | | | By adding it to the default build flags via .cmake.conf. This amends commit c44fa839135e494f9d7fb6ffcf759ed1f4bf6952. Task-number: QTBUG-116296 Change-Id: I275c90db11ecec05cc043b03c0268744b5d96644 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-071-1/+1
| | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. Task-number: QTBUG-99313 Change-Id: Ica78a615605aebc9c592d12840e9ddbbc19af430 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Port from container::count() and length() to size()Marc Mutz2022-10-071-10/+10
| | | | | | | | | | | | | | | | | | | | | This is a semantic patch using ClangTidyTransformator as in qtbase/df9d882d41b741fef7c5beeddb0abe9d904443d8: auto QtContainerClass = anyOf( expr(hasType(cxxRecordDecl(isSameOrDerivedFrom(hasAnyName(classes))))).bind(o), expr(hasType(namedDecl(hasAnyName(<classes>)))).bind(o)); makeRule(cxxMemberCallExpr(on(QtContainerClass), callee(cxxMethodDecl(hasAnyName({"count", "length"), parameterCountIs(0))))), changeTo(cat(access(o, cat("size"), "()"))), cat("use 'size()' instead of 'count()/length()'")) a.k.a qt-port-to-std-compatible-api with config Scope: 'Container', with the extended set of container classes recognized. Change-Id: Iab31277267e17fb52d08da1144970739be31f54f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Use SPDX license identifiersLucie Gérard2022-06-161-38/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I5678b086dc1da06fc2045a82b5678949b40f267e Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Use up-to date LGPL license headerKai Köhne2021-12-021-11/+14
| | | | | | | | | | | | Remove usages of outdated LGPL3 header that references LICENSES.LGPLv3 instead of LICENSES.LGPL3. Use BSD instead in the examples, updated LGPL otherwise. Also remove the now unreferenced LICENSE.LGPLv3, LICENSE.GPLv2 files. Change-Id: I331898db70f1a566baffe57d0bb6a72d4bfbd382 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Change all QString("foo") constructions to use QStringLiteralUlf Hermann2021-07-011-11/+22
| | | | | | | | You should not construct QStrings directly from C string literals. Change-Id: I4185376ab62d19c26864afe656e4d7236d20d44c Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Update dependenciesJannis Voelker2020-08-311-4/+4
| | | | | | | | | | | QList now has the functionality of QVector and QVector is an alias for QList. The behavior of QCOMPARE has changed when comparing QVariant with literal values Change-Id: I50ba48666037c56a78828ef1e8bc3c411d776d05 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Use QList instead of QVector in qtopcuaSona Kurazyan2020-08-311-2/+2
| | | | | | Task-number: QTBUG-84469 Change-Id: I18303d5f04b9820885412c6447541b7db0ebcaeb Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* CMake: Add specific path for the test serverJannis Voelker2020-06-051-1/+1
| | | | | | | | The CMake build does not create the debug / release directories and the test applications can't find open62541-testserver. Change-Id: I63cb38ada6c1ce22773d5fb3fc741dbd24ec196c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Revert "Prospective build fix for MinGW"Maurice Kalinowski2020-03-161-1/+1
| | | | | | | | | | | This reverts commit 58a4d5b54968bdcd042113a1a5200db7e6f7547b. The design changes for MinGW caused some regressions, which needed to be reverted. The same applies for this patch. Task-number: QTBUG-82868 Change-Id: I11ede47795e019037927fe5a0966e791ba5fe82f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Prospective build fix for MinGWv5.14.0-alpha1Simon Hausmann2019-09-231-1/+1
| | | | | | | | | | | After commit 4d289edb14aeb4976218cc306bfc514e37521b82 in qtbase, debug-and-release is not unconditional on Windows anymore -- it's off for MinGW. Therefore path tricks to get out of a debug/ or release/ folder need to be guarded with the feature. Task-number: QTBUG-78704 Change-Id: Idd1e9c1eae4696cd0322d4d991e92b7f1309fec3 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Merge remote-tracking branch 'origin/5.13' into 5.14Liang Qi2019-08-261-4/+14
|\ | | | | | | | | | | | | | | Conflicts: src/3rdparty/open62541.pri tests/auto/security/tst_security.cpp Change-Id: I47a14da350c938ddce57327aadfc723f189c6227
| * tests: Always build security testRainer Keller2019-08-201-2/+15
| | | | | | | | | | | | | | but check instead if the actual endpoint policy is supported by the backend. Change-Id: Ic1dbcd83b936beccb0378505744d4e1e3b292d22 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
* | Fix build and tests with the current open62541 v1.0Jannis Voelker2019-08-171-0/+4
|/ | | | | | | | This patch allows building the open62541 plugin with the current open62541 v1.0 (v1.0-rc4). Change-Id: Ibb9295bfc4230dc5fb9f515a810c0b3dbbac2527 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Fix build on macOSRainer Keller2019-08-121-1/+1
| | | | | Change-Id: Ia8d6216e455f8174fcf6d9a59b69f3bb3391ab3e Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* tests: Fix certificate authentication testRainer Keller2019-08-061-13/+10
| | | | | | | | Both backends don't support it at the moment. The tests are renamed to what they actually do. Change-Id: Ieac6beb6e8079a691f480cc40d8702399badb3c2 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
* Add function to return true if a security policy is a secure policyRainer Keller2019-07-311-1/+1
| | | | | Change-Id: Id6ce3ce943f9d2bfeb62230e8b141049a97d8cb4 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
* tests: Increase signal spy timeoutsRainer Keller2019-04-121-8/+10
| | | | | | | | On slow machines the network reply might take longer than the timeout. In order to prevent flaky tests the timeout is increased. Change-Id: I384b7c55462bd42d2647c5f215260cd8c16d2575 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Fix API inconsistencyRainer Keller2019-04-011-5/+5
| | | | | | | 'securityPolicies' is without URI but 'securityPolicyUri' contains it. Change-Id: I4309c519682de4dd8acad154721b07c67337ff62 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Rename API to be more consistent with QT APIRainer Keller2019-03-251-15/+15
| | | | | Change-Id: I6e55cd8d51b0058e051d757d4eead6024c88caf0 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* security: Support encrypted private keysRainer Keller2019-03-201-0/+85
| | | | | | Change-Id: Ib605952a161eb01c50026dad68d7b19ac767ec86 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* tests: Add auto test for securityRainer Keller2019-03-191-0/+331
Change-Id: I02dc734e39177c18aad3689f82a3512830e7bff2 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>