You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* TC-LTIME-3.1: Fix to not hard code calendars
This was previously done from a PIXIT. Now it reads from the device
and checks all.
* make the get_endpoint call easier to read
* Add test back into CI
TestStep(0, "TH is commissioned with DUT", is_commissioning=True),
62
62
TestStep(1, "TH reads HourFormat attribute from DUT",
63
63
"Verify that the HourFormat attribute is of Enum8 datatype and that the values are 0 (12hr), 1 (24hr), and 255 (UseActiveLocale) as per the HourFormatEnum in the specification."),
64
-
TestStep(2, "If (LTIME.S.M.12Hr) TH writes 0(12hr) to HourFormat attribute",
65
-
"Verify that the write request is successful."),
66
-
TestStep(3, "TH reads HourFormat attribute", "Verify that the value is 0 (12hr)."),
67
-
TestStep(4, "If (LTIME.S.M.24Hr) TH writes 1(24hr) to HourFormat attribute",
68
-
"Verify that the write request is successful."),
69
-
TestStep(5, "TH reads HourFormat attribute", "Verify that the value is 1 (24hr)."),
70
-
TestStep(6, "TH writes 255 (UseActiveLocale) to HourFormat attribute", "Verify that the write request is successful."),
71
-
TestStep(7, "TH reads HourFormat attribute", "Verify that the value is 255 (UseActiveLocale)."),
72
-
TestStep(8, "TH reads ActiveCalendarType attribute from DUT",
73
-
"Verify that the ActiveCalendarType attribute is of Enum8 datatype and only accepts values 0-11 (specific calendar types) and 255 (UseActiveLocale), as defined in the CalendarTypeEnum in the specification."),
74
-
TestStep(9, "TH writes value in PIXIT.LTIME.SCT to ActiveCalendarType attribute, followed by reading the ActiveCalendarType attribute value",
75
-
"Verify that the write request is successful and that the read value matches the written value in previous step. as the value that was set before."),
76
-
TestStep(10, "Repeat step 9 for all the values in PIXIT.LTIME.SCT",
77
-
"Verify that the write request is successful and that the read value matches the written value."),
78
-
TestStep(11, "TH reads SupportedCalendarTypes attribute from DUT",
64
+
TestStep(2, "TH writes 0(12hr) to HourFormat attribute"),
65
+
TestStep(3, "If the prior write was successful, TH reads HourFormat attribute", "Verify that the value is 0 (12hr)."),
66
+
TestStep(4, "TH writes 1(24hr) to HourFormat attribute"),
67
+
TestStep(5, "If the prior write was successful, TH reads HourFormat attribute", "Verify that the value is 1 (24hr)."),
68
+
TestStep(6, "TH writes 255 (UseActiveLocale) to HourFormat attribute"),
69
+
TestStep(7, "If the prior write was successful, TH reads HourFormat attribute",
70
+
"Verify that the value is 255 (UseActiveLocale)."),
71
+
TestStep(8, "TH reads SupportedCalendarTypes attribute from DUT and saves as `cluster_supported_calendar_types`",
79
72
"Verify that the SupportedCalendarTypes attribute is of Enum8 datatype and only accepts values 0-11 (specific calendar types) and 255 (UseActiveLocale), as defined in the CalendarTypeEnum in the specification."),
80
-
TestStep(12, "TH writes 50 to ActiveCalendarType attribute",
73
+
TestStep(9, "TH reads ActiveCalendarType attribute from DUT",
74
+
"Verify that the ActiveCalendarType is in `cluster_supported_calendar_types`"),
75
+
TestStep(10, "For each entry in `cluster_supported_calendar_types`, TH writes that value to ActiveCalendarType, verifies that the write was successful and confirms the value via a read",
76
+
"Write is successful and read value matches for every entry"),
77
+
TestStep(11, "TH finds the set of CalendarTypesEnum value that do not appear in `cluster_supported_calendar_types` and saves as `cluster_not_supported_calendar_types`"),
78
+
TestStep(12, "For each value in `cluster_unsupported_calendar_types`, TH writes the value to the ActiveCalendarType attributes",
79
+
"DUT returns CONSTRAINT_ERROR"),
80
+
TestStep(13, "TH writes 50 to ActiveCalendarType attribute",
81
81
"Verify that the write request shows 0x87 (Constraint Error)."),
82
-
TestStep(13, "TH writes 5 to HourFormat attribute", "Verify that the write request shows 0x87 (Constraint Error).")
82
+
TestStep(14, "TH writes 5 to HourFormat attribute", "Verify that the write request shows 0x87 (Constraint Error).")
0 commit comments