fix tests
This commit is contained in:
parent
9c6371d3f7
commit
5904477af9
@ -21,7 +21,6 @@
|
||||
|
||||
The \tt plugininfo.h has to be included in the main plugin \tt cpp file (\tt{deviceplugin<\b pluginName>.cpp}). The \tt extern-plugininfo.h can be included in other classes/files of the plugin to get the extern definitions of the ID's and the logging category.
|
||||
|
||||
|
||||
\section1 Basic structure
|
||||
|
||||
The name convention fot the plugin json file is:
|
||||
|
||||
@ -317,7 +317,6 @@ HttpReply *DevicesResource::removeDevice(Device *device, const QVariantMap ¶
|
||||
return createDeviceErrorReply(HttpReply::Ok, status.first);
|
||||
|
||||
return createDeviceErrorReply(HttpReply::BadRequest, status.first);
|
||||
|
||||
}
|
||||
|
||||
HttpReply *DevicesResource::executeAction(Device *device, const ActionTypeId &actionTypeId, const QByteArray &payload) const
|
||||
|
||||
@ -657,11 +657,11 @@ void TestDevices::getEventTypes()
|
||||
params.insert("deviceClassId", deviceClassId);
|
||||
QVariant response = injectAndWait("Devices.GetEventTypes", params);
|
||||
|
||||
qDebug() << response;
|
||||
|
||||
QVariantList eventTypes = response.toMap().value("params").toMap().value("eventTypes").toList();
|
||||
QCOMPARE(eventTypes.count(), resultCount);
|
||||
if (resultCount > 0) {
|
||||
QCOMPARE(eventTypes.first().toMap().value("id").toString(), mockEvent1Id.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void TestDevices::getStateTypes_data()
|
||||
|
||||
Reference in New Issue
Block a user