Commit 9d9adf1a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Continue to implement add resource

parent 42d84a46
[General]
Path[$e]=$HOME/.local/notes/akonadi_akonotes_resource_5
Path[$e]=[TEST_PATH]/
TopLevelIsContainer=true
......@@ -21,6 +21,7 @@
#include "archivestorage.h"
#include "resourceconvertertest.h"
#include "testexportfile.h"
#include <KZip>
#include <QDebug>
#include <QTest>
......@@ -60,6 +61,9 @@ void ExportNotesJobInterfaceTestImpl::exportResourceToArchive(const QString &arc
qDebug() << " void ExportNotesJobInterfaceTestImpl::exportResourceToArchive(const QString &archivePath, const QString &url, const QString &identifier)" << archivePath << " url " << url << " identifier " << identifier;
//TODO implement it
QVERIFY(identifier.startsWith(QLatin1String("akonadi_akonotes_resource_")));
qDebug() << "11 " << url + identifier + QLatin1String(".zip");
qDebug() << "22 " << archivePath + identifier + QLatin1String(".zip");
QVERIFY(mArchiveStorage->archive()->addLocalFile(url + identifier + QLatin1String(".zip"), archivePath + identifier + QLatin1String(".zip")));
slotNoteJobTerminated();
}
......@@ -107,7 +111,7 @@ void ExportNotesJobInterfaceTest::exportNoteConfigAndResource_data()
{
QTest::addColumn<QByteArray>("configpath");
const QByteArray pathConfig(QByteArray(PIMDATAEXPORTER_DIR) + "/export/");
QTest::newRow("test1resource") << pathConfig + QByteArray("test1resource/");
//QTest::newRow("test1resource") << pathConfig + QByteArray("test1resource/");
QTest::newRow("fullresource") << pathConfig + QByteArray("fullresource/");
}
......
......@@ -47,9 +47,9 @@ class ExportNotesJobInterfaceTest : public QObject
public:
explicit ExportNotesJobInterfaceTest(QObject *parent = nullptr);
~ExportNotesJobInterfaceTest() = default;
private Q_SLOTS:
void exportNoteConfig_data();
void exportNoteConfig();
private Q_SLOTS:
void exportNoteConfigAndResource();
void exportNoteConfigAndResource_data();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment