From 5bca8e730ea843969e8225e8598db3e5d95de331 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 16 Apr 2018 21:26:11 +0200 Subject: [PATCH] enable rest for rest tests --- tests/auto/restdeviceclasses/testrestdeviceclasses.cpp | 1 + tests/auto/restdevices/testrestdevices.cpp | 1 + tests/auto/restlogging/testrestlogging.cpp | 1 + tests/auto/restplugins/testrestplugins.cpp | 1 + tests/auto/restrules/testrestrules.cpp | 1 + tests/auto/restvendors/testrestvendors.cpp | 1 + tests/auto/webserver/testwebserver.cpp | 1 + 7 files changed, 7 insertions(+) diff --git a/tests/auto/restdeviceclasses/testrestdeviceclasses.cpp b/tests/auto/restdeviceclasses/testrestdeviceclasses.cpp index ec7279b3..d7d57304 100644 --- a/tests/auto/restdeviceclasses/testrestdeviceclasses.cpp +++ b/tests/auto/restdeviceclasses/testrestdeviceclasses.cpp @@ -80,6 +80,7 @@ void TestRestDeviceClasses::initTestCase() config.address = QHostAddress("127.0.0.1"); config.port = 3333; config.sslEnabled = true; + config.restServerEnabled = true; NymeaCore::instance()->configuration()->setWebServerConfiguration(config); qApp->processEvents(); } diff --git a/tests/auto/restdevices/testrestdevices.cpp b/tests/auto/restdevices/testrestdevices.cpp index e1c1396a..19ec45f0 100644 --- a/tests/auto/restdevices/testrestdevices.cpp +++ b/tests/auto/restdevices/testrestdevices.cpp @@ -89,6 +89,7 @@ void TestRestDevices::initTestCase() config.address = QHostAddress("127.0.0.1"); config.port = 3333; config.sslEnabled = true; + config.restServerEnabled = true; NymeaCore::instance()->configuration()->setWebServerConfiguration(config); qApp->processEvents(); } diff --git a/tests/auto/restlogging/testrestlogging.cpp b/tests/auto/restlogging/testrestlogging.cpp index 66f888ca..6335958c 100644 --- a/tests/auto/restlogging/testrestlogging.cpp +++ b/tests/auto/restlogging/testrestlogging.cpp @@ -72,6 +72,7 @@ void TestRestLogging::initTestCase() config.address = QHostAddress("127.0.0.1"); config.port = 3333; config.sslEnabled = true; + config.restServerEnabled = true; NymeaCore::instance()->configuration()->setWebServerConfiguration(config); qApp->processEvents(); } diff --git a/tests/auto/restplugins/testrestplugins.cpp b/tests/auto/restplugins/testrestplugins.cpp index 364c041c..947529ce 100644 --- a/tests/auto/restplugins/testrestplugins.cpp +++ b/tests/auto/restplugins/testrestplugins.cpp @@ -73,6 +73,7 @@ void TestRestPlugins::initTestCase() config.address = QHostAddress("127.0.0.1"); config.port = 3333; config.sslEnabled = true; + config.restServerEnabled = true; NymeaCore::instance()->configuration()->setWebServerConfiguration(config); qApp->processEvents(); } diff --git a/tests/auto/restrules/testrestrules.cpp b/tests/auto/restrules/testrestrules.cpp index 1a174eba..1ba68d95 100644 --- a/tests/auto/restrules/testrestrules.cpp +++ b/tests/auto/restrules/testrestrules.cpp @@ -94,6 +94,7 @@ void TestRestRules::initTestCase() config.address = QHostAddress("127.0.0.1"); config.port = 3333; config.sslEnabled = true; + config.restServerEnabled = true; NymeaCore::instance()->configuration()->setWebServerConfiguration(config); qApp->processEvents(); } diff --git a/tests/auto/restvendors/testrestvendors.cpp b/tests/auto/restvendors/testrestvendors.cpp index ba844234..60d3051e 100644 --- a/tests/auto/restvendors/testrestvendors.cpp +++ b/tests/auto/restvendors/testrestvendors.cpp @@ -68,6 +68,7 @@ void TestRestVendors::initTestCase() config.address = QHostAddress("127.0.0.1"); config.port = 3333; config.sslEnabled = true; + config.restServerEnabled = true; NymeaCore::instance()->configuration()->setWebServerConfiguration(config); qApp->processEvents(); } diff --git a/tests/auto/webserver/testwebserver.cpp b/tests/auto/webserver/testwebserver.cpp index ddb22406..a2a3f71e 100644 --- a/tests/auto/webserver/testwebserver.cpp +++ b/tests/auto/webserver/testwebserver.cpp @@ -96,6 +96,7 @@ void TestWebserver::initTestCase() config.address = QHostAddress("127.0.0.1"); config.port = 3333; config.sslEnabled = true; + config.restServerEnabled = true; NymeaCore::instance()->configuration()->setWebServerConfiguration(config); }