mirror of
https://gitlab.com/spaceti-app/integrations/acs/colnod-connector.git
synced 2026-07-12 18:40:48 +02:00
39 lines
762 B
C++
39 lines
762 B
C++
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QtTest/QtTest>
|
|
#include "response.h"
|
|
#include "requestmanager.h"
|
|
#include "colnodapi.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(QString json);
|
|
Token* getTestToken();
|
|
|
|
|
|
// VARIABLES
|
|
QString host = "https://192.168.1.3";
|
|
QString user = "spaceti";
|
|
QString password = "spaceti1";
|
|
uint64_t start = 0;
|
|
RequestManager* reqMan = nullptr;
|
|
ColnodAPI* api = nullptr;
|
|
};
|
|
|