keepassxc/tests
Aleksa Sarai 9f8943c89b keepassxc-cli show: resolve references in output (#1280)
* core: database: make UUID searching case-insensitive

4c4d8a5e84 ("Implement search for reference placeholder based on
fields other than ID") changed the semantics of searching-by-reference
in KeePassXC. Unforuntately it contained a bug where it implicitly
became case-sensitive to UUIDs, which broke existing databases that used
references (especially since the default reference format uses a
different case to the UUID used while searching).

The tests didn't catch this because ->toHex() preserves the case that it
was provided, they have been updated to check that UUIDs are case
insensitive.

* cli: show: resolve references in output

Previously, `keepassxc-cli show` would not resolve references. This
would make it quite hard to script around its output (since there's not
interface to resolve references manually either). Fix this by using
resolveMultiplePlaceholders as with all other users of ->password() and
related entry fields.

Fixes: keepassxreboot/keepassxc#1260

* tests: entry: add tests for ref-cloned entries

This ensures that the most "intuitive" current usage of references
(through the clone feature of the GUI) remains self-consistent and
always produces the correct results. In addition, explicitly test that
case insensitivity works as expected. These should avoid similar
regressions in reference handling in the future.

* http: resolve references in AccessControlDialog

The access control dialog previously would not show the "real" username
or "real" title when asking for permission to give access to entries.
Fix this by resolving it, as we do in many other places.

Fixes: keepassxreboot/keepassxc#1269


Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2017-12-17 10:44:12 -05:00
..
data Add skeleton for TestDatabase.cpp and test data for unit tests for the "empty recycle bin" functionality 2017-04-22 12:38:36 +03:00
gui Merge branch 'release/2.2.3' into develop 2017-11-26 18:23:48 +01:00
CMakeLists.txt SSH agent support 2017-11-19 14:38:59 +02:00
config-keepassx-tests.h.cmake Option to select extension compile-time. Fix #50 #123 2016-12-04 19:57:24 +01:00
FailDevice.cpp Test if we correctly detect errors when writing. 2015-07-20 21:35:48 +02:00
FailDevice.h Make C++11 mandatory. 2015-09-12 13:55:50 +02:00
modeltest.cpp 🐛 Fix building with Qt 5.9 (closes #528) 2017-06-01 17:05:07 -04:00
modeltest.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestAutoType.cpp Add test for resolved placeholders in window association title 2017-10-23 22:55:22 +03:00
TestAutoType.h Update and fix copyright headers 2017-06-14 15:54:43 +02:00
TestBase32.cpp Improve testing of Base32 2017-10-21 13:15:02 +02:00
TestBase32.h Add new Base32 implementation 2017-10-21 13:15:02 +02:00
TestCryptoHash.cpp Remove backported Qt5 test macros. 2015-09-23 22:21:21 +02:00
TestCryptoHash.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestCsvExporter.cpp Fix tests 2016-10-28 18:51:09 +02:00
TestCsvExporter.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestCsvParser.cpp Fixed memory leaks in non-gui tests 2017-11-27 23:36:09 +01:00
TestCsvParser.h Fixed memory leaks in non-gui tests 2017-11-27 23:36:09 +01:00
TestDatabase.cpp Update and fix copyright headers 2017-06-14 15:54:43 +02:00
TestDatabase.h Update and fix copyright headers 2017-06-14 15:54:43 +02:00
TestDeletedObjects.cpp Remove backported Qt5 test macros. 2015-09-23 22:21:21 +02:00
TestDeletedObjects.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestEntry.cpp keepassxc-cli show: resolve references in output (#1280) 2017-12-17 10:44:12 -05:00
TestEntry.h keepassxc-cli show: resolve references in output (#1280) 2017-12-17 10:44:12 -05:00
TestEntryModel.cpp Enhance attribute entry and add protected attributes (#220) 2017-03-07 22:38:18 -05:00
TestEntryModel.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestEntrySearcher.cpp Remove backported Qt5 test macros. 2015-09-23 22:21:21 +02:00
TestEntrySearcher.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestExporter.cpp Coding style fixes. 2015-10-15 18:02:31 +02:00
TestExporter.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestGroup.cpp Correct memory leaks in TestGroup.cpp 2017-12-12 23:46:25 -05:00
TestGroup.h CLI : basic entry manipulation commands. (#919) 2017-09-06 09:14:41 -04:00
TestGroupModel.cpp Fix Qt deprecation warnings 2017-03-10 16:11:55 +01:00
TestGroupModel.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestHashedBlockStream.cpp Remove backported Qt5 test macros. 2015-09-23 22:21:21 +02:00
TestHashedBlockStream.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestKeePass1Reader.cpp Merge branch '2.0' 2015-09-26 11:44:27 +02:00
TestKeePass1Reader.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestKeePass2RandomStream.cpp Remove backported Qt5 test macros. 2015-09-23 22:21:21 +02:00
TestKeePass2RandomStream.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestKeePass2Reader.cpp Remove backported Qt5 test macros. 2015-09-23 22:21:21 +02:00
TestKeePass2Reader.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestKeePass2Writer.cpp Fixed memory leaks in non-gui tests 2017-11-27 23:36:09 +01:00
TestKeePass2Writer.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestKeePass2XmlReader.cpp Merge branch '2.0' 2016-10-02 21:45:54 -04:00
TestKeePass2XmlReader.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestKeys.cpp Feature : --key-file option for CLI (#816) 2017-07-25 13:41:52 -04:00
TestKeys.h Feature : --key-file option for CLI (#816) 2017-07-25 13:41:52 -04:00
TestMerge.cpp Merge : Synchronising groups. 2017-11-21 14:06:40 -05:00
TestMerge.h Merge : Synchronising groups. 2017-11-21 14:06:40 -05:00
TestModified.cpp Remove backported Qt5 test macros. 2015-09-23 22:21:21 +02:00
TestModified.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestOpenSSHKey.cpp Add missing crypto init to OpenSSHKey test 2017-11-25 11:32:13 +02:00
TestOpenSSHKey.h Add missing crypto init to OpenSSHKey test 2017-11-25 11:32:13 +02:00
TestRandom.cpp Remove backported Qt5 test macros. 2015-09-23 22:21:21 +02:00
TestRandom.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestSymmetricCipher.cpp Merge branch 'master' into develop 2017-12-11 21:10:25 -05:00
TestSymmetricCipher.h SymmetricCipher: Support CTR mode 2017-11-19 14:38:59 +02:00
TestTotp.cpp Change QTotp class name to Totp 2017-11-20 22:25:09 -02:00
TestTotp.h Add initial Steam TOTP support 2017-11-20 17:08:01 -07:00
TestWildcardMatcher.cpp Fix tests 2016-10-28 18:51:09 +02:00
TestWildcardMatcher.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestYkChallengeResponseKey.cpp Update and fix copyright headers 2017-06-14 15:54:43 +02:00
TestYkChallengeResponseKey.h Update and fix copyright headers 2017-06-14 15:54:43 +02:00