Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Sachs <jsachs@users.noreply.github.com>2019-10-14 15:37:26 +0300
committerJonathan White <support@dmapps.us>2019-10-16 05:10:45 +0300
commitdbe15d32e56a9e73266ca49e2d5021ca82dbc606 (patch)
tree2d54359229f2f491ac05865d6205c4dd2cc5f957 /tests/TestCli.h
parent82cfedfa43fc83665bb89833c2946b622f22de95 (diff)
CLI: Add Import XML command (#3572)
The CLI now contains an "import" command that creates a new database from the specified XML export. The new database is in kdbx 4 format, and does not currently accept a keyfile in database creation. This change is required to create new databases from XML backups. Fixes #2458
Diffstat (limited to 'tests/TestCli.h')
-rw-r--r--tests/TestCli.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/TestCli.h b/tests/TestCli.h
index d1969943c..46fff944b 100644
--- a/tests/TestCli.h
+++ b/tests/TestCli.h
@@ -58,6 +58,7 @@ private slots:
void testExport();
void testGenerate_data();
void testGenerate();
+ void testImport();
void testKeyFileOption();
void testNoPasswordOption();
void testHelp();
@@ -77,11 +78,13 @@ private slots:
private:
QByteArray m_dbData;
QByteArray m_dbData2;
+ QByteArray m_xmlData;
QByteArray m_yubiKeyProtectedDbData;
QByteArray m_keyFileProtectedDbData;
QByteArray m_keyFileProtectedNoPasswordDbData;
QScopedPointer<TemporaryFile> m_dbFile;
QScopedPointer<TemporaryFile> m_dbFile2;
+ QScopedPointer<TemporaryFile> m_xmlFile;
QScopedPointer<TemporaryFile> m_keyFileProtectedDbFile;
QScopedPointer<TemporaryFile> m_keyFileProtectedNoPasswordDbFile;
QScopedPointer<TemporaryFile> m_yubiKeyProtectedDbFile;