mirror of https://github.com/nymea/nymea.git
add some basic httpreply calls
parent
9a3390b5d6
commit
0eafc2f0fb
|
|
@ -85,7 +85,7 @@ void TestLogging::coverageCalls()
|
|||
qDebug() << entry;
|
||||
|
||||
LogFilter filter;
|
||||
qDebug() << filter.timeFilters();
|
||||
qDebug() << filter.queryString() << filter.timeFilters();
|
||||
}
|
||||
|
||||
void TestLogging::systemLogs()
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
#include "guhcore.h"
|
||||
#include "devicemanager.h"
|
||||
#include "mocktcpserver.h"
|
||||
#include "rest/restresource.h"
|
||||
#include "webserver.h"
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
|
|
@ -42,6 +43,8 @@ class TestWebserver: public GuhTestBase
|
|||
Q_OBJECT
|
||||
|
||||
private slots:
|
||||
void coverageCalls();
|
||||
|
||||
void httpVersion();
|
||||
|
||||
void multiPackageMessage();
|
||||
|
|
@ -64,6 +67,15 @@ private slots:
|
|||
void getIcons();
|
||||
};
|
||||
|
||||
void TestWebserver::coverageCalls()
|
||||
{
|
||||
HttpReply *reply = new HttpReply(this);
|
||||
qDebug() << reply << reply->payload();
|
||||
qDebug() << reply->rawHeaderList();
|
||||
qDebug() << reply->rawHeader() << reply->isEmpty();
|
||||
reply->clear();
|
||||
}
|
||||
|
||||
void TestWebserver::httpVersion()
|
||||
{
|
||||
QTcpSocket *socket = new QTcpSocket(this);
|
||||
|
|
|
|||
Loading…
Reference in New Issue