From f34b13cd861dae644d6c08ba20440de30c151bb8 Mon Sep 17 00:00:00 2001 From: mkardous-silabs <84793247+mkardous-silabs@users.noreply.github.com> Date: Sat, 7 Oct 2023 02:57:15 -0400 Subject: [PATCH] remove minimum reqs (#29620) --- .../zcl/data-model/chip/icd-management-cluster.xml | 4 ++-- src/python_testing/TC_ICDM_2_1.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/zap-templates/zcl/data-model/chip/icd-management-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/icd-management-cluster.xml index 6c0d73d166aeef..2377c77a243df2 100644 --- a/src/app/zap-templates/zcl/data-model/chip/icd-management-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/icd-management-cluster.xml @@ -43,8 +43,8 @@ limitations under the License. IdleModeInterval - ActiveModeInterval - ActiveModeThreshold + ActiveModeInterval + ActiveModeThreshold RegisteredClients diff --git a/src/python_testing/TC_ICDM_2_1.py b/src/python_testing/TC_ICDM_2_1.py index 97d20fca723837..808a53403ebd88 100644 --- a/src/python_testing/TC_ICDM_2_1.py +++ b/src/python_testing/TC_ICDM_2_1.py @@ -51,8 +51,8 @@ async def test_TC_ICDM_2_1(self): idleModeInterval *= 1000 # Convert seconds to milliseconds activeModeInterval = await self.read_icdm_attribute_expect_success(endpoint=endpoint, attribute=attributes.ActiveModeInterval) - asserts.assert_greater_equal(activeModeInterval, 300, - "ActiveModeInterval attribute is smaller than minimum value (300).") + asserts.assert_true(0 <= activeModeInterval <= 65535, + "ActiveModeInterval attribute does not fit in a uint16.") asserts.assert_less_equal(activeModeInterval, idleModeInterval, "ActiveModeInterval attribute is greater than the IdleModeInterval attrbiute.") else: @@ -64,8 +64,8 @@ async def test_TC_ICDM_2_1(self): activeModeThreshold = await self.read_icdm_attribute_expect_success(endpoint=endpoint, attribute=attributes.ActiveModeThreshold) - asserts.assert_greater_equal(activeModeThreshold, 300, - "ActiveModeThreshold attribute is smaller than minimum value (300).") + asserts.assert_true(0 <= activeModeThreshold <= 65535, + "ActiveModeThreshold attribute does not fit in a uint16.") else: asserts.assert_true(False, "ActiveModeThreshold is a mandatory attribute and must be present in the PICS file")