From c58ae442fba723a12fd6f6048b207ac814af6b8c Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Wed, 16 Oct 2024 16:55:42 +0200 Subject: [PATCH 1/5] chore: update pip dependencies for local development only --- images/simulator/requirements.txt | 2 +- requirements.txt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/images/simulator/requirements.txt b/images/simulator/requirements.txt index 1ff9924..85a8293 100644 --- a/images/simulator/requirements.txt +++ b/images/simulator/requirements.txt @@ -1,2 +1,2 @@ -aiohttp==3.9.2 +aiohttp~=3.10.2 pymodbus==3.5.4 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 646e35e..a34dc6c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,6 +5,5 @@ pyModbusTCP pyserial-asyncio tomli~=2.0.1 pip~=23.3 -setuptools~=65.5.0 -requests~=2.31.0 +requests~=2.32.0 toml \ No newline at end of file From baac7ddd9474d6c02af723206adc36c1d36b8cad Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Mon, 12 May 2025 22:09:55 +0200 Subject: [PATCH 2/5] chore: update test dependencies --- tests/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/requirements.txt b/tests/requirements.txt index 2264c97..2c24ef7 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,2 +1,2 @@ -robotframework~=6.0.0 -robotframework-c8y @ git+https://github.com/reubenmiller/robotframework-c8y.git@0.31.3 \ No newline at end of file +robotframework~=7.0.0 +robotframework-c8y @ git+https://github.com/reubenmiller/robotframework-c8y.git@0.42.1 \ No newline at end of file From 471c3531f07255128de436f243a354de7f387650 Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Mon, 12 May 2025 22:21:24 +0200 Subject: [PATCH 3/5] replace deprecated test keywords --- tests/modbus_reader/device.robot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/modbus_reader/device.robot b/tests/modbus_reader/device.robot index c2b04fc..e51c0a7 100644 --- a/tests/modbus_reader/device.robot +++ b/tests/modbus_reader/device.robot @@ -7,8 +7,8 @@ Suite Setup Set Main Device *** Test Cases *** Device should have the fragment c8y_ModbusConfiguration - Cumulocity.Device Should Have Fragments c8y_ModbusConfiguration - Managed Object Should Have Fragment Values c8y_ModbusConfiguration.pollingRate=2 + Cumulocity.Managed Object Should Have Fragments c8y_ModbusConfiguration + Cumulocity.Managed Object Should Have Fragment Values c8y_ModbusConfiguration.pollingRate=2 ChildDevice TestCase1 should be created Cumulocity.Should Be A Child Device Of Device ${DEVICE_ID}:device:TestCase1 From 56b7e3cabb44f25ba0c5dacb07202a9aff2818b1 Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Mon, 12 May 2025 22:29:48 +0200 Subject: [PATCH 4/5] fix test assertion due to unescaped equals sign --- tests/modbus_reader/device.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modbus_reader/device.robot b/tests/modbus_reader/device.robot index e51c0a7..7d18d4f 100644 --- a/tests/modbus_reader/device.robot +++ b/tests/modbus_reader/device.robot @@ -8,7 +8,7 @@ Suite Setup Set Main Device *** Test Cases *** Device should have the fragment c8y_ModbusConfiguration Cumulocity.Managed Object Should Have Fragments c8y_ModbusConfiguration - Cumulocity.Managed Object Should Have Fragment Values c8y_ModbusConfiguration.pollingRate=2 + Cumulocity.Managed Object Should Have Fragment Values c8y_ModbusConfiguration.pollingRate\=2 ChildDevice TestCase1 should be created Cumulocity.Should Be A Child Device Of Device ${DEVICE_ID}:device:TestCase1 From d4355b03fd2a1a56a01d13bb42662effa5e9f28a Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Mon, 12 May 2025 22:40:05 +0200 Subject: [PATCH 5/5] fix expected value due --- tests/modbus_reader/device.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modbus_reader/device.robot b/tests/modbus_reader/device.robot index 7d18d4f..5e44692 100644 --- a/tests/modbus_reader/device.robot +++ b/tests/modbus_reader/device.robot @@ -8,7 +8,7 @@ Suite Setup Set Main Device *** Test Cases *** Device should have the fragment c8y_ModbusConfiguration Cumulocity.Managed Object Should Have Fragments c8y_ModbusConfiguration - Cumulocity.Managed Object Should Have Fragment Values c8y_ModbusConfiguration.pollingRate\=2 + Cumulocity.Managed Object Should Have Fragment Values c8y_ModbusConfiguration.pollingRate\=3 ChildDevice TestCase1 should be created Cumulocity.Should Be A Child Device Of Device ${DEVICE_ID}:device:TestCase1