add a test to try creating a device with invalid params
This commit is contained in:
parent
ab4a340e27
commit
7b0cbe58d3
@ -94,8 +94,14 @@ void TestDevices::addConfiguredDevice_data()
|
|||||||
|
|
||||||
QVariantMap deviceParams;
|
QVariantMap deviceParams;
|
||||||
deviceParams.insert("httpport", m_mockDevice1Port - 1);
|
deviceParams.insert("httpport", m_mockDevice1Port - 1);
|
||||||
|
|
||||||
QTest::newRow("User, JustAdd") << mockDeviceClassId << deviceParams << true;
|
QTest::newRow("User, JustAdd") << mockDeviceClassId << deviceParams << true;
|
||||||
QTest::newRow("Auto, JustAdd") << mockDeviceAutoClassId << deviceParams << false;
|
QTest::newRow("Auto, JustAdd") << mockDeviceAutoClassId << deviceParams << false;
|
||||||
|
|
||||||
|
QVariantMap invalidDeviceParams;
|
||||||
|
invalidDeviceParams.insert("tropptth", m_mockDevice1Port - 1);
|
||||||
|
QTest::newRow("User, JustAdd, invalid params") << mockDeviceClassId << invalidDeviceParams << false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestDevices::addConfiguredDevice()
|
void TestDevices::addConfiguredDevice()
|
||||||
|
|||||||
Reference in New Issue
Block a user