mirror of
https://gitlab.com/spaceti-app/integrations/acs/colnod-connector.git
synced 2026-07-12 21:30:37 +02:00
41 lines
779 B
C++
41 lines
779 B
C++
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QtTest/QtTest>
|
|
#include "response.h"
|
|
#include "requestmanager.h"
|
|
#include "syncmanager.h"
|
|
#include "logger.h"
|
|
|
|
class ComplexTest : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
private slots:
|
|
void initTestCase();
|
|
void complexTest();
|
|
void fullSync();
|
|
void syncLastUpdated();
|
|
void testingStuff();
|
|
void cleanupTestCase();
|
|
|
|
private:
|
|
// FUNCTIONS
|
|
int getNumOfSubjects();
|
|
int getNumOfTokens();
|
|
QJsonDocument getJsonDoc(const QString &json);
|
|
std::shared_ptr<Token> getTestToken();
|
|
|
|
|
|
// VARIABLES
|
|
QString host = "https://192.168.1.3";
|
|
QString user = "spaceti";
|
|
QString password = "spaceti1";
|
|
uint64_t start = 0;
|
|
SyncManager* api = nullptr;
|
|
|
|
static constexpr qint16 timeout = 10000;
|
|
};
|
|
|