From 9a3390b5d68c40a1ab53e09f5cce36efb9b89425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Wed, 20 Apr 2016 14:34:34 +0200 Subject: [PATCH] basic calls for logging --- tests/auto/logging/testlogging.cpp | 12 ++++++++++++ tests/auto/restrules/testrestrules.cpp | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/auto/logging/testlogging.cpp b/tests/auto/logging/testlogging.cpp index bceeeea8..38466176 100644 --- a/tests/auto/logging/testlogging.cpp +++ b/tests/auto/logging/testlogging.cpp @@ -23,6 +23,7 @@ #include "guhcore.h" #include "devicemanager.h" #include "guhsettings.h" +#include "logging/logentry.h" #include "plugin/deviceplugin.h" #include @@ -42,6 +43,8 @@ private: private slots: void initLogs(); + void coverageCalls(); + void systemLogs(); void invalidFilter_data(); @@ -76,6 +79,15 @@ void TestLogging::initLogs() restartServer(); } +void TestLogging::coverageCalls() +{ + LogEntry entry(QDateTime::currentDateTime(), Logging::LoggingLevelInfo, Logging::LoggingSourceSystem); + qDebug() << entry; + + LogFilter filter; + qDebug() << filter.timeFilters(); +} + void TestLogging::systemLogs() { // check the active system log at boot diff --git a/tests/auto/restrules/testrestrules.cpp b/tests/auto/restrules/testrestrules.cpp index 0373f7a5..b2efc2e9 100644 --- a/tests/auto/restrules/testrestrules.cpp +++ b/tests/auto/restrules/testrestrules.cpp @@ -238,7 +238,6 @@ void TestRestRules::findRule() request.setUrl(QUrl(QString("http://localhost:3333/api/v1/rules/%1").arg(ruleId.toString()))); response = getAndWait(request, 404); QVERIFY(!response.isNull()); - } void TestRestRules::invalidMethod()