From 227b263e5f075d4cdb3a7c989964668a65b24fb7 Mon Sep 17 00:00:00 2001 From: Jacob Boddey Date: Thu, 29 Aug 2024 21:02:53 +0100 Subject: [PATCH 1/2] Remove default values from config --- local/system.json.example | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/local/system.json.example b/local/system.json.example index 23023bead..df89b502f 100644 --- a/local/system.json.example +++ b/local/system.json.example @@ -1,10 +1,11 @@ { "network": { - "device_intf": "enx123456789123", - "internet_intf": "enx123456789124" + "device_intf": "", + "internet_intf": "" }, "log_level": "INFO", "startup_timeout": 60, "monitor_period": 300, - "max_device_reports": 0 + "max_device_reports": 0, + "org_name": "" } From 2aaa3c08eec263ab7379244734d0f1b8800c0ecc Mon Sep 17 00:00:00 2001 From: Jacob Boddey Date: Thu, 29 Aug 2024 21:04:20 +0100 Subject: [PATCH 2/2] Remove further reference --- framework/python/src/api/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/python/src/api/api.py b/framework/python/src/api/api.py index 409884fd1..f0b763cd5 100644 --- a/framework/python/src/api/api.py +++ b/framework/python/src/api/api.py @@ -37,7 +37,6 @@ DEVICE_MODEL_KEY = "model" DEVICE_TEST_MODULES_KEY = "test_modules" DEVICES_PATH = "local/devices" -DEFAULT_DEVICE_INTF = "enx123456789123" RESOURCES_PATH = "resources" DEVICE_FOLDER_PATH = "devices" @@ -278,7 +277,7 @@ async def start_testrun(self, request: Request, response: Response): # Check if config has been updated (device interface not default) if (self._testrun.get_session().get_device_interface() == - DEFAULT_DEVICE_INTF): + ""): response.status_code = status.HTTP_400_BAD_REQUEST return self._generate_msg( False, "Testrun configuration has not yet " + "been completed.")