diff --git a/tests/cbpi-test-config/config.json b/tests/cbpi-test-config/config.json index da7fab4..298b8b0 100644 --- a/tests/cbpi-test-config/config.json +++ b/tests/cbpi-test-config/config.json @@ -80,7 +80,7 @@ "options": null, "source": "hidden", "type": "string", - "value": "4.1.8.a11" + "value": "4.1.10.a1" }, "CSVLOGFILES": { "description": "Write sensor data to csv logfiles", @@ -117,7 +117,7 @@ "value": "No" }, "INFLUXDBADDR": { - "description": "IP Address of your influxdb server (If INFLUXDBCLOUD set to Yes use URL Address of your influxdb cloud server)", + "description": "URL Address of your influxdb server incl. http:// and port, e.g. http://localhost:8086 (If INFLUXDBCLOUD set to Yes use URL Address of your influxdb cloud server)", "name": "INFLUXDBADDR", "options": null, "source": "craftbeerpi", @@ -157,14 +157,6 @@ "type": "string", "value": "cbpi4" }, - "INFLUXDBPORT": { - "description": "Port of your influxdb server", - "name": "INFLUXDBPORT", - "options": null, - "source": "craftbeerpi", - "type": "string", - "value": "8086" - }, "INFLUXDBPWD": { "description": "Password for your influxdb database (only if required)(If INFLUXDBCLOUD set to Yes use token of your influxdb cloud database)", "name": "INFLUXDBPWD", @@ -174,7 +166,7 @@ "value": " " }, "INFLUXDBUSER": { - "description": "User name for your influxdb database (only if required)(If INFLUXDBCLOUD set to Yes use organisation of your influxdb cloud database)", + "description": "User Name for your influxdb database (only if required)(If INFLUXDBCLOUD set to Yes use organisation of your influxdb cloud database)", "name": "INFLUXDBUSER", "options": null, "source": "craftbeerpi", diff --git a/tests/cbpi-test-config/sensor.json b/tests/cbpi-test-config/sensor.json index ce96464..4cf8966 100644 --- a/tests/cbpi-test-config/sensor.json +++ b/tests/cbpi-test-config/sensor.json @@ -1,3 +1,11 @@ { - "data": [] + "data": [ + { + "id": "unconfigured_test_sensor_ID", + "name": "unconfigured_mqtt_sensor", + "props": {}, + "state": false, + "type": "MQTTSensor" + } + ] } \ No newline at end of file diff --git a/tests/test_logger.py b/tests/test_logger.py index 50d729b..633ba00 100644 --- a/tests/test_logger.py +++ b/tests/test_logger.py @@ -10,10 +10,10 @@ class LoggerTestCase(CraftBeerPiTestCase): async def test_log_data(self): os.makedirs(os.path.join(".", "tests", "logs"), exist_ok=True) - log_name = "test" + log_name = "unconfigured_test_sensor_ID" #clear all logs self.cbpi.log.clear_log(log_name) - assert len(glob.glob(os.path.join(".", "tests", "logs", f"sensor_{log_name}.log*"))) == 0 + assert len(glob.glob(os.path.join(self.cbpi.log.logsFolderPath, f"sensor_{log_name}.log*"))) == 0 # write log entries for i in range(5):