Skip to content

Commit

Permalink
Update the YAML tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple committed Feb 13, 2024
1 parent 295d1c3 commit d8f1c69
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/app/tests/suites/DL_UsersAndCredentials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ tests:
- name: "UserUniqueID"
value: 0xBABA
- name: "UserStatus"
value: 2
value: UserStatusEnum.UnknownEnumValue(2)
- name: "UserType"
value: null
- name: "CredentialRule"
Expand Down Expand Up @@ -1031,7 +1031,7 @@ tests:
- name: "UserIndex"
value: null
- name: "UserStatus"
value: 2
value: UserStatusEnum.UnknownEnumValue(2)
- name: "UserType"
value: null
response:
Expand Down
4 changes: 2 additions & 2 deletions src/app/tests/suites/TestAccessControlConstraints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ tests:
{
FabricIndex: 0,
Privilege: 3,
AuthMode: 4, # INVALID
AuthMode: AccessControlEntryAuthModeEnum.UnknownEnumValue,
Subjects: [],
Targets: null,
},
Expand Down Expand Up @@ -231,7 +231,7 @@ tests:
},
{
FabricIndex: 0,
Privilege: 6, # INVALID
Privilege: AccessControlEntryPrivilegeEnum.UnknownEnumValue,
AuthMode: 2, # CASE
Subjects: null,
Targets: null,
Expand Down
4 changes: 2 additions & 2 deletions src/app/tests/suites/TestCluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ tests:
- name: "arg1"
value: 20003
- name: "arg2"
value: 101
value: SimpleEnum.UnknownEnumValue
response:
# Attempting to echo back the invalid enum value should fail.
error: FAILURE
Expand Down Expand Up @@ -2814,7 +2814,7 @@ tests:
command: "writeAttribute"
attribute: "nullable_enum_attr"
arguments:
value: 255
value: SimpleEnum.UnknownEnumValue
response:
error: CONSTRAINT_ERROR

Expand Down
4 changes: 2 additions & 2 deletions src/app/tests/suites/certification/Test_TC_ACL_2_4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ tests:
FabricIndex: CurrentFabricIndexValue,
},
{
Privilege: 6,
Privilege: AccessControlEntryPrivilegeEnum.UnknownEnumValue,
AuthMode: 2,
Subjects: null,
Targets: null,
Expand Down Expand Up @@ -1192,7 +1192,7 @@ tests:
},
{
Privilege: 3,
AuthMode: 4,
AuthMode: AccessControlEntryAuthModeEnum.UnknownEnumValue,
Subjects: null,
Targets: null,
FabricIndex: CurrentFabricIndexValue,
Expand Down
8 changes: 4 additions & 4 deletions src/app/tests/suites/certification/Test_TC_ACL_2_9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ tests:
value:
[
{
Privilege: "4",
AuthMode: "2",
Privilege: AccessControlEntryPrivilegeEnum.Manage,
AuthMode: AccessControlEntryAuthModeEnum.CASE,
Subjects: [CommissionerNodeId],
Targets: null,
FabricIndex: CurrentFabricIndexValue,
Expand All @@ -94,8 +94,8 @@ tests:
value:
[
{
Privilege: "5",
AuthMode: "2",
Privilege: AccessControlEntryPrivilegeEnum.Administer,
AuthMode: AccessControlEntryAuthModeEnum.CASE,
Subjects: [CommissionerNodeId],
Targets: null,
FabricIndex: CurrentFabricIndexValue,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ tests:
constraints:
type: enum8
minValue: 0
maxValue: 15
maxValue: 3

- label:
"Step 4:TH writes a supported SelectedDrynessLevel attribute that is
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_ILL_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ tests:
constraints:
type: enum8
minValue: 0
maxValue: 254
maxValue: LightSensorTypeEnum.UnknownEnumValue(254)
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_I_2_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ tests:
- name: "EffectIdentifier"
value: 0
- name: "EffectVariant"
value: 66
value: EffectVariantEnum.UnknownEnumValue(66)

- label: "Check DUT executes a blink effect."
cluster: "LogCommands"
Expand Down
4 changes: 2 additions & 2 deletions src/app/tests/suites/certification/Test_TC_LTIME_3_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ tests:
command: "writeAttribute"
attribute: "ActiveCalendarType"
arguments:
value: 50
value: CalendarTypeEnum.UnknownEnumValue(50)
response:
error: CONSTRAINT_ERROR

Expand All @@ -345,6 +345,6 @@ tests:
command: "writeAttribute"
attribute: "HourFormat"
arguments:
value: 5
value: HourFormatEnum.UnknownEnumValue(5)
response:
error: CONSTRAINT_ERROR
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_LUNIT_3_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ tests:
arguments:
# Per spec, if [TEMP] feature is enabled, then this attribute can be
# one of 0 (Farenheit), 1 (Celsius) or 2 (Kelvin)
value: 5 # INVALID
value: TempUnitEnum.UnknownEnumValue(5)
response:
error: CONSTRAINT_ERROR
8 changes: 6 additions & 2 deletions src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,12 @@ tests:
response:
constraints:
type: enum8
minValue: 0
maxValue: 9
anyOf:
[
ThermostatRunningModeEnum.Off(0),
ThermostatRunningModeEnum.Cool(3),
ThermostatRunningModeEnum.Heat(4),
]

- label: "Step 27: TH reads the StartOfWeek attribute from the DUT"
PICS: TSTAT.S.F03
Expand Down

0 comments on commit d8f1c69

Please sign in to comment.