Skip to content

Commit

Permalink
Add test steps 50-60 from the Thermostat test plan to the Thermostat … (
Browse files Browse the repository at this point in the history
#37052)

* Add test steps 50-60 from the Thermostat test plan to the Thermostat YAML script

- Remove Test_TC_TSTAT_4_1.yaml

* Restyle

* Rename TC_TSTAT_4_2.py to TC_TSTAT_2_3.py

* Address review comments

* Revert renaming TC_TSTAT_4_2.py to TC_TSTAT_2_3.py

* Add check for the Presets list length that should not exceed the value in NumberOfPresets attribute

* Editorial fix

* Revert the name change from TC_TSTAT_4_2 to TC_TSTAT_2_3

* Update minLength and maxLength in YAML to take a variable as input

* Restyle
  • Loading branch information
nivi-apple authored Feb 7, 2025
1 parent b959364 commit 9799dce
Show file tree
Hide file tree
Showing 6 changed files with 177 additions and 163 deletions.
4 changes: 2 additions & 2 deletions scripts/py_matter_yamltests/matter_yamltests/yaml_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
_TEST_STEP_RESPONSE_CONSTRAINTS_SCHEMA = {
'hasValue': bool,
'type': str,
'minLength': int,
'maxLength': int,
'minLength': (int, str), # Can be a variable.
'maxLength': (int, str), # Can be a variable.
'isHexString': bool,
'startsWith': str,
'endsWith': str,
Expand Down
21 changes: 18 additions & 3 deletions src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6489,21 +6489,36 @@ PICS:
- label: "Does the device implement the PresetTypes attribute?"
id: TSTAT.S.A0048

- label: "Does the device implement the ScheduleTypes attribute?"
id: TSTAT.S.A0049

- label: "Does the device implement the NumberOfPresets attribute?"
id: TSTAT.S.A004a

- label: "Does the device implement the NumberOfSchedules attribute?"
id: TSTAT.S.A004b

- label:
"Does the device implement the NumberOfScheduleTransitions attribute?"
id: TSTAT.S.A004c

- label:
"Does the device implement the NumberOfScheduleTransitionPerDay
attribute?"
id: TSTAT.S.A004d

- label: "Does the device implement the ActivePresetHandle attribute?"
id: TSTAT.S.A004e

- label: "Does the device implement the ActiveScheduleHandle attribute?"
id: TSTAT.S.A004f

- label: "Does the device implement the Presets attribute?"
id: TSTAT.S.A0050

- label: "Does the device implement the Schedules attribute?"
id: TSTAT.S.A0051

- label: "Does the device implement the Schedules attribute?"
id: TSTAT.S.A0051

- label:
"Does the device implement the SetpointHoldExpiryTimestamp attribute?"
id: TSTAT.S.A0052
Expand Down
Loading

0 comments on commit 9799dce

Please sign in to comment.