Skip to content

Commit

Permalink
Add 2 more Tests
Browse files Browse the repository at this point in the history
- test that checks that attribute 3 is present if the right PICS is set.
- test that checks for command 0 if the right PICS is set.
  • Loading branch information
tobiasgraf committed May 30, 2023
1 parent 177db43 commit 75d8da8
Show file tree
Hide file tree
Showing 13 changed files with 344 additions and 96 deletions.
168 changes: 96 additions & 72 deletions src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3752,14 +3752,10 @@ PICS:
id: G.C.C05.Tx

# HEPA Filter Monitoring Cluster Test Plan
- label:
"Does the device implement the HEPA Filter Monitoring cluster as a
server?"
- label: "Does the device implement the HEPA Filter Monitoring cluster as a server?"
id: HEPAFREMON.S

- label:
"Does the device implement the HEPA Filter Monitoring cluster as a
client?"
- label: "Does the device implement the HEPA Filter Monitoring cluster as a client?"
id: HEPAFREMON.C

#
Expand All @@ -3786,15 +3782,17 @@ PICS:
- label: "Does the device support the Warning feature?"
id: HEPAFREMON.S.F01

#
# server / commandsReceived
#
- label: "Does the device implement receiving the ResetCondition command?"
id: HEPAFREMON.S.C00.Rsp

# Activated Carbon Filter Monitoring Cluster Test Plan
- label:
"Does the device implement the Activated Carbon Filter Monitoring
cluster as a server?"
- label: "Does the device implement the Activated Carbon Filter Monitoring cluster as a server?"
id: ACFREMON.S

- label:
"Does the device implement the Activated Carbon Filter Monitoring
cluster as a client?"
- label: "Does the device implement the Activated Carbon Filter Monitoring cluster as a client?"
id: ACFREMON.C

#
Expand All @@ -3821,15 +3819,17 @@ PICS:
- label: "Does the device support the Warning feature?"
id: ACFREMON.S.F01

#
# server / commandsReceived
#
- label: "Does the device implement receiving the ResetCondition command?"
id: ACFREMON.S.C00.Rsp

# Ceramic Filter Monitoring Cluster Test Plan
- label:
"Does the device implement the Ceramic Filter Monitoring cluster as a
server?"
- label: "Does the device implement the Ceramic Filter Monitoring cluster as a server?"
id: CFREMON.S

- label:
"Does the device implement the Ceramic Filter Monitoring cluster as a
client?"
- label: "Does the device implement the Ceramic Filter Monitoring cluster as a client?"
id: CFREMON.C

#
Expand All @@ -3856,15 +3856,17 @@ PICS:
- label: "Does the device support the Warning feature?"
id: CFREMON.S.F01

#
# server / commandsReceived
#
- label: "Does the device implement receiving the ResetCondition command?"
id: CFREMON.S.C00.Rsp

# Electrostatic Filter Monitoring Cluster Test Plan
- label:
"Does the device implement the Electrostatic Filter Monitoring cluster
as a server?"
- label: "Does the device implement the Electrostatic Filter Monitoring cluster as a server?"
id: ESFREMON.S

- label:
"Does the device implement the Electrostatic Filter Monitoring cluster
as a client?"
- label: "Does the device implement the Electrostatic Filter Monitoring cluster as a client?"
id: ESFREMON.C

#
Expand All @@ -3891,15 +3893,17 @@ PICS:
- label: "Does the device support the Warning feature?"
id: ESFREMON.S.F01

#
# server / commandsReceived
#
- label: "Does the device implement receiving the ResetCondition command?"
id: ESFREMON.S.C00.Rsp

# Fuel Tank Monitoring Cluster Test Plan
- label:
"Does the device implement the Fuel Tank Monitoring cluster as a
server?"
- label: "Does the device implement the Fuel Tank Monitoring cluster as a server?"
id: FTREMON.S

- label:
"Does the device implement the Fuel Tank Monitoring cluster as a
client?"
- label: "Does the device implement the Fuel Tank Monitoring cluster as a client?"
id: FTREMON.C

#
Expand All @@ -3926,15 +3930,17 @@ PICS:
- label: "Does the device support the Warning feature?"
id: FTREMON.S.F01

#
# server / commandsReceived
#
- label: "Does the device implement receiving the ResetCondition command?"
id: FTREMON.S.C00.Rsp

# Ink Cartridge Monitoring Cluster Test Plan
- label:
"Does the device implement the Ink Cartridge Monitoring cluster as a
server?"
- label: "Does the device implement the Ink Cartridge Monitoring cluster as a server?"
id: INKCREMON.S

- label:
"Does the device implement the Ink Cartridge Monitoring cluster as a
client?"
- label: "Does the device implement the Ink Cartridge Monitoring cluster as a client?"
id: INKCREMON.C

#
Expand All @@ -3961,15 +3967,17 @@ PICS:
- label: "Does the device support the Warning feature?"
id: INKCREMON.S.F01

#
# server / commandsReceived
#
- label: "Does the device implement receiving the ResetCondition command?"
id: INKCREMON.S.C00.Rsp

# Ionizing Filter Monitoring Cluster Test Plan
- label:
"Does the device implement the Ionizing Filter Monitoring cluster as a
server?"
- label: "Does the device implement the Ionizing Filter Monitoring cluster as a server?"
id: IONFREMON.S

- label:
"Does the device implement the Ionizing Filter Monitoring cluster as a
client?"
- label: "Does the device implement the Ionizing Filter Monitoring cluster as a client?"
id: IONFREMON.C

#
Expand All @@ -3996,15 +4004,17 @@ PICS:
- label: "Does the device support the Warning feature?"
id: IONFREMON.S.F01

#
# server / commandsReceived
#
- label: "Does the device implement receiving the ResetCondition command?"
id: IONFREMON.S.C00.Rsp

# Ozone Filter Monitoring Cluster Test Plan
- label:
"Does the device implement the Ozone Filter Monitoring cluster as a
server?"
- label: "Does the device implement the Ozone Filter Monitoring cluster as a server?"
id: OZFREMON.S

- label:
"Does the device implement the Ozone Filter Monitoring cluster as a
client?"
- label: "Does the device implement the Ozone Filter Monitoring cluster as a client?"
id: OZFREMON.C

#
Expand All @@ -4031,15 +4041,17 @@ PICS:
- label: "Does the device support the Warning feature?"
id: OZFREMON.S.F01

#
# server / commandsReceived
#
- label: "Does the device implement receiving the ResetCondition command?"
id: OZFREMON.S.C00.Rsp

# Toner Cartridge Monitoring Cluster Test Plan
- label:
"Does the device implement the Toner Cartridge Monitoring cluster as a
server?"
- label: "Does the device implement the Toner Cartridge Monitoring cluster as a server?"
id: TCREMON.S

- label:
"Does the device implement the Toner Cartridge Monitoring cluster as a
client?"
- label: "Does the device implement the Toner Cartridge Monitoring cluster as a client?"
id: TCREMON.C

#
Expand All @@ -4066,15 +4078,17 @@ PICS:
- label: "Does the device support the Warning feature?"
id: TCREMON.S.F01

#
# server / commandsReceived
#
- label: "Does the device implement receiving the ResetCondition command?"
id: TCREMON.S.C00.Rsp

# UV Filter Monitoring Cluster Test Plan
- label:
"Does the device implement the UV Filter Monitoring cluster as a
server?"
- label: "Does the device implement the UV Filter Monitoring cluster as a server?"
id: UVFREMON.S

- label:
"Does the device implement the UV Filter Monitoring cluster as a
client?"
- label: "Does the device implement the UV Filter Monitoring cluster as a client?"
id: UVFREMON.C

#
Expand All @@ -4101,15 +4115,17 @@ PICS:
- label: "Does the device support the Warning feature?"
id: UVFREMON.S.F01

#
# server / commandsReceived
#
- label: "Does the device implement receiving the ResetCondition command?"
id: UVFREMON.S.C00.Rsp

# Water Tank Monitoring Cluster Test Plan
- label:
"Does the device implement the Water Tank Monitoring cluster as a
server?"
- label: "Does the device implement the Water Tank Monitoring cluster as a server?"
id: WTREMON.S

- label:
"Does the device implement the Water Tank Monitoring cluster as a
client?"
- label: "Does the device implement the Water Tank Monitoring cluster as a client?"
id: WTREMON.C

#
Expand All @@ -4136,15 +4152,17 @@ PICS:
- label: "Does the device support the Warning feature?"
id: WTREMON.S.F01

#
# server / commandsReceived
#
- label: "Does the device implement receiving the ResetCondition command?"
id: WTREMON.S.C00.Rsp

# Zeolite Filter Monitoring Cluster Test Plan
- label:
"Does the device implement the Zeolite Filter Monitoring cluster as a
server?"
- label: "Does the device implement the Zeolite Filter Monitoring cluster as a server?"
id: ZEOFREMON.S

- label:
"Does the device implement the Zeolite Filter Monitoring cluster as a
client?"
- label: "Does the device implement the Zeolite Filter Monitoring cluster as a client?"
id: ZEOFREMON.C

#
Expand All @@ -4171,6 +4189,12 @@ PICS:
- label: "Does the device support the Warning feature?"
id: ZEOFREMON.S.F01

#
# server / commandsReceived
#
- label: "Does the device implement receiving the ResetCondition command?"
id: ZEOFREMON.S.C00.Rsp

# Identify Cluster Test Plan
- label: "Does the device implement the Identify cluster as a server?"
id: I.S
Expand Down
25 changes: 22 additions & 3 deletions src/app/tests/suites/certification/Test_TC_ACFREMON_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ tests:
type: bitmap32

- label:
"Given ACFREMON.S.F00(Condition) ensure featuremap has the correct bit
set"
"Given ACFREMON.S.F00(Condition) ensure featuremap has the correct
bit set"
command: "readAttribute"
attribute: "FeatureMap"
PICS: ACFREMON.S.F00
Expand Down Expand Up @@ -79,7 +79,8 @@ tests:
contains: [2, 65528, 65529, 65530, 65531, 65532, 65533]

- label:
"Read the feature dependent(ACFREMON.S.F00) attribute in AttributeList"
"Read the feature dependent(ACFREMON.S.F00) attribute in
AttributeList"
PICS: ACFREMON.S.F00
command: "readAttribute"
attribute: "AttributeList"
Expand All @@ -88,6 +89,15 @@ tests:
type: list
contains: [0, 1]

- label: "Read the optional attribute InPlaceIndicator (ACFREMON.S.A0002) in AttributeList"
PICS: ACFREMON.S.A0002
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [3]

- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
attribute: "AcceptedCommandList"
Expand All @@ -96,6 +106,15 @@ tests:
type: list
contains: []

- label: "Read the optional command (ResetCondition) in AcceptedCommandList"
PICS: ACFREMON.S.C00.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0]

- label: "Read the global attribute: GeneratedCommandList"
command: "readAttribute"
attribute: "GeneratedCommandList"
Expand Down
25 changes: 22 additions & 3 deletions src/app/tests/suites/certification/Test_TC_CFREMON_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ tests:
type: bitmap32

- label:
"Given CFREMON.S.F00(Condition) ensure featuremap has the correct bit
set"
"Given CFREMON.S.F00(Condition) ensure featuremap has the correct
bit set"
command: "readAttribute"
attribute: "FeatureMap"
PICS: CFREMON.S.F00
Expand Down Expand Up @@ -79,7 +79,8 @@ tests:
contains: [2, 65528, 65529, 65530, 65531, 65532, 65533]

- label:
"Read the feature dependent(CFREMON.S.F00) attribute in AttributeList"
"Read the feature dependent(CFREMON.S.F00) attribute in
AttributeList"
PICS: CFREMON.S.F00
command: "readAttribute"
attribute: "AttributeList"
Expand All @@ -88,6 +89,15 @@ tests:
type: list
contains: [0, 1]

- label: "Read the optional attribute InPlaceIndicator (CFREMON.S.A0002) in AttributeList"
PICS: CFREMON.S.A0002
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [3]

- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
attribute: "AcceptedCommandList"
Expand All @@ -96,6 +106,15 @@ tests:
type: list
contains: []

- label: "Read the optional command (ResetCondition) in AcceptedCommandList"
PICS: CFREMON.S.C00.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0]

- label: "Read the global attribute: GeneratedCommandList"
command: "readAttribute"
attribute: "GeneratedCommandList"
Expand Down
Loading

0 comments on commit 75d8da8

Please sign in to comment.