Skip to content

Commit 9799dce

Browse files
authored
Add test steps 50-60 from the Thermostat test plan to the Thermostat … (#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
1 parent b959364 commit 9799dce

File tree

6 files changed

+177
-163
lines changed

6 files changed

+177
-163
lines changed

scripts/py_matter_yamltests/matter_yamltests/yaml_loader.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@
9292
_TEST_STEP_RESPONSE_CONSTRAINTS_SCHEMA = {
9393
'hasValue': bool,
9494
'type': str,
95-
'minLength': int,
96-
'maxLength': int,
95+
'minLength': (int, str), # Can be a variable.
96+
'maxLength': (int, str), # Can be a variable.
9797
'isHexString': bool,
9898
'startsWith': str,
9999
'endsWith': str,

src/app/tests/suites/certification/PICS.yaml

+18-3
Original file line numberDiff line numberDiff line change
@@ -6489,21 +6489,36 @@ PICS:
64896489
- label: "Does the device implement the PresetTypes attribute?"
64906490
id: TSTAT.S.A0048
64916491

6492+
- label: "Does the device implement the ScheduleTypes attribute?"
6493+
id: TSTAT.S.A0049
6494+
64926495
- label: "Does the device implement the NumberOfPresets attribute?"
64936496
id: TSTAT.S.A004a
64946497

6498+
- label: "Does the device implement the NumberOfSchedules attribute?"
6499+
id: TSTAT.S.A004b
6500+
6501+
- label:
6502+
"Does the device implement the NumberOfScheduleTransitions attribute?"
6503+
id: TSTAT.S.A004c
6504+
6505+
- label:
6506+
"Does the device implement the NumberOfScheduleTransitionPerDay
6507+
attribute?"
6508+
id: TSTAT.S.A004d
6509+
64956510
- label: "Does the device implement the ActivePresetHandle attribute?"
64966511
id: TSTAT.S.A004e
64976512

6513+
- label: "Does the device implement the ActiveScheduleHandle attribute?"
6514+
id: TSTAT.S.A004f
6515+
64986516
- label: "Does the device implement the Presets attribute?"
64996517
id: TSTAT.S.A0050
65006518

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

6504-
- label: "Does the device implement the Schedules attribute?"
6505-
id: TSTAT.S.A0051
6506-
65076522
- label:
65086523
"Does the device implement the SetpointHoldExpiryTimestamp attribute?"
65096524
id: TSTAT.S.A0052

0 commit comments

Comments
 (0)