aligning changes with standalone test version

This commit is contained in:
proddy
2020-10-19 23:15:48 +02:00
parent 4fc26dbb44
commit 6e7728a5f7
2 changed files with 35 additions and 33 deletions

View File

@@ -32,19 +32,19 @@ class DummySettings {
String jwtSecret = "ems-esp"; String jwtSecret = "ems-esp";
String ssid = "ems-esp"; String ssid = "ems-esp";
String password = "ems-esp"; String password = "ems-esp";
String localIP; String localIP = "";
String gatewayIP; String gatewayIP = "";
String subnetMask; String subnetMask = "";
String staticIPConfig; String staticIPConfig = "";
String dnsIP1; String dnsIP1 = "";
String dnsIP2; String dnsIP2 = "";
uint16_t publish_time_boiler; uint16_t publish_time_boiler = 10;
uint16_t publish_time_thermostat; uint16_t publish_time_thermostat = 10;
uint16_t publish_time_solar; uint16_t publish_time_solar = 10;
uint16_t publish_time_mixing; uint16_t publish_time_mixing = 10;
uint16_t publish_time_other; uint16_t publish_time_other = 10;
uint16_t publish_time_sensor; uint16_t publish_time_sensor = 10;
uint8_t bool_format; uint8_t bool_format = 1; // on off
static void read(DummySettings & settings, JsonObject & root){}; static void read(DummySettings & settings, JsonObject & root){};
static void read(DummySettings & settings){}; static void read(DummySettings & settings){};

View File

@@ -27,7 +27,7 @@ namespace emsesp {
// used with the 'test' command, under su/admin // used with the 'test' command, under su/admin
void Test::run_test(uuid::console::Shell & shell, const std::string & command) { void Test::run_test(uuid::console::Shell & shell, const std::string & command) {
if (command == "default") { if (command == "default") {
run_test(shell, "render"); // add the default test case here run_test(shell, "general"); // add the default test case here
} }
if (command.empty()) { if (command.empty()) {
@@ -258,6 +258,8 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & command) {
0x03, 0x25, 0x03, 0x03, 0x01, 0x03, 0x25, 0x00, 0xC8, 0x00, 0x00, 0x11, 0x01, 0x03}); 0x03, 0x25, 0x03, 0x03, 0x01, 0x03, 0x25, 0x00, 0xC8, 0x00, 0x00, 0x11, 0x01, 0x03});
shell.invoke_command("show"); shell.invoke_command("show");
shell.invoke_command("publish");
shell.invoke_command("show mqtt");
} }
if (command == "fr120") { if (command == "fr120") {