basic calls for logging
This commit is contained in:
parent
3b639cb0e1
commit
9a3390b5d6
@ -23,6 +23,7 @@
|
|||||||
#include "guhcore.h"
|
#include "guhcore.h"
|
||||||
#include "devicemanager.h"
|
#include "devicemanager.h"
|
||||||
#include "guhsettings.h"
|
#include "guhsettings.h"
|
||||||
|
#include "logging/logentry.h"
|
||||||
#include "plugin/deviceplugin.h"
|
#include "plugin/deviceplugin.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@ -42,6 +43,8 @@ private:
|
|||||||
private slots:
|
private slots:
|
||||||
void initLogs();
|
void initLogs();
|
||||||
|
|
||||||
|
void coverageCalls();
|
||||||
|
|
||||||
void systemLogs();
|
void systemLogs();
|
||||||
|
|
||||||
void invalidFilter_data();
|
void invalidFilter_data();
|
||||||
@ -76,6 +79,15 @@ void TestLogging::initLogs()
|
|||||||
restartServer();
|
restartServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TestLogging::coverageCalls()
|
||||||
|
{
|
||||||
|
LogEntry entry(QDateTime::currentDateTime(), Logging::LoggingLevelInfo, Logging::LoggingSourceSystem);
|
||||||
|
qDebug() << entry;
|
||||||
|
|
||||||
|
LogFilter filter;
|
||||||
|
qDebug() << filter.timeFilters();
|
||||||
|
}
|
||||||
|
|
||||||
void TestLogging::systemLogs()
|
void TestLogging::systemLogs()
|
||||||
{
|
{
|
||||||
// check the active system log at boot
|
// check the active system log at boot
|
||||||
|
|||||||
@ -238,7 +238,6 @@ void TestRestRules::findRule()
|
|||||||
request.setUrl(QUrl(QString("http://localhost:3333/api/v1/rules/%1").arg(ruleId.toString())));
|
request.setUrl(QUrl(QString("http://localhost:3333/api/v1/rules/%1").arg(ruleId.toString())));
|
||||||
response = getAndWait(request, 404);
|
response = getAndWait(request, 404);
|
||||||
QVERIFY(!response.isNull());
|
QVERIFY(!response.isNull());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestRestRules::invalidMethod()
|
void TestRestRules::invalidMethod()
|
||||||
|
|||||||
Reference in New Issue
Block a user