mirror of
https://gitlab.com/spaceti-app/integrations/acs/colnod-connector.git
synced 2026-07-12 20:00:37 +02:00
55 lines
1.5 KiB
C++
55 lines
1.5 KiB
C++
|
|
#pragma once
|
|
|
|
#include <QtTest/QtTest>
|
|
#include <QSignalSpy>
|
|
#include <requestmanager.h>
|
|
#include "subject.h"
|
|
#include "databasemanager.h"
|
|
#include <QSslSocket>
|
|
#include "datamanager.h"
|
|
#include "response.h"
|
|
|
|
|
|
class UnitTest : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
private slots:
|
|
|
|
void initTestCase();
|
|
|
|
void loginSuccessfully(); // /AaaManager/authSession
|
|
void getSubjects(); // /SubjectManager/getSubjects
|
|
void getTokens(); // /TokenManager/getTokens
|
|
void getTokenSubject(); // /OpenManager/getTokenSubject
|
|
void getSubjectsUpdated();
|
|
void getSubjectsDeleted();
|
|
void getTokensUpdated();
|
|
void getTokensDeleted();
|
|
void getAccessGroups();
|
|
void getAccessGroupsUpdated();
|
|
void getAccessGroupsDeleted();
|
|
void getAccessGroupMembership();
|
|
void getAccessGroupMembershipUpdated();
|
|
void getAccessGroupMembershipDeleted();
|
|
void setTokens();
|
|
void deleteTokens();
|
|
void subjectJSONParser();
|
|
void tokenJSONParser();
|
|
//void connectToDB();
|
|
//void debugConnection();
|
|
void saveDataToDB();
|
|
void getUuid();
|
|
|
|
|
|
private:
|
|
//QString host = "http://localhost:8080"; //colnod server (ssh -L 8080:192.168.254.11:8443 penta-master)
|
|
QString host = "https://192.168.1.3:8443"; //local testing server
|
|
QString password = "spaceti1";
|
|
QString email = "spaceti";
|
|
|
|
static constexpr int timeout = 10000;
|
|
static constexpr qint64 epochMS = 1568646217767;
|
|
};
|