Skip to content

Commit

Permalink
Completed tests for multi fabric multi nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs committed Nov 7, 2023
1 parent 2b872ed commit f6dae1d
Show file tree
Hide file tree
Showing 3 changed files with 1,070 additions and 26 deletions.
59 changes: 33 additions & 26 deletions src/app/tests/suites/TestScenesFabricSceneInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@

# !!!!!!!!!! TEST INFORMATION !!!!!!!!!!!!!!!!!!
# This test file tests the FabricSceneInfo attribute of the scenes cluster
# This test also covers multi fabric support for scenes cluster

name: Scenes FabricSceneInfo testing

PICS:
- MCORE.ROLE.COMMISSIONEE
- APPDEVICE.S
- S.S
- S.S.F03
- S.S.A0007
Expand All @@ -27,6 +28,18 @@ config:
nodeId: 0x12344321
cluster: "Scenes"
endpoint: 1
payload:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"
discriminator:
type: int16u
defaultValue: 3840
waitAfterCommissioning:
type: int16u
defaultValue: 5000
PakeVerifier:
type: octet_string
defaultValue: "hex:b96170aae803346884724fe9a3b287c30330c2a660375d17bb205a8cf1aecb350457f8ab79ee253ab6a8e46bb09e543ae422736de501e3db37d441fe344920d09548e4c18240630c4ff4913c53513839b7c07fcc0627a1b8573a149fcd1fa466cf"
G1:
type: group_id
defaultValue: 0x0001
Expand All @@ -35,7 +48,7 @@ config:
defaultValue: 0x0002

tests:
- label: "Commission DUT to TH"
- label: "Commission DUT to TH1"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
Expand All @@ -59,7 +72,6 @@ tests:
type: list

- label: "TH reads from the DUT the (0x0006) SceneTableSize attribute"
PICS: S.S.A0006
command: "readAttribute"
attribute: "SceneTableSize"
response:
Expand Down Expand Up @@ -274,7 +286,7 @@ tests:
SceneCount: 1,
CurrentScene: 0x00,
CurrentGroup: 0x00,
FabricIndex: 1,
FabricIndex: th1FabricIndex,
SceneValid: false,
RemainingCapacity: fabricCapacity - 1,
},
Expand All @@ -298,8 +310,8 @@ tests:
{
SceneCount: 1,
CurrentScene: 0x01,
CurrentGroup: 0x01,
FabricIndex: 1,
CurrentGroup: G1,
FabricIndex: th1FabricIndex,
SceneValid: true,
RemainingCapacity: fabricCapacity - 1,
},
Expand Down Expand Up @@ -374,8 +386,8 @@ tests:
{
SceneCount: 2,
CurrentScene: 0x01,
CurrentGroup: 0x01,
FabricIndex: 1,
CurrentGroup: G1,
FabricIndex: th1FabricIndex,
SceneValid: true,
RemainingCapacity: fabricCapacity - 2,
},
Expand All @@ -399,8 +411,8 @@ tests:
{
SceneCount: 2,
CurrentScene: 0x01,
CurrentGroup: 0x02,
FabricIndex: 1,
CurrentGroup: G2,
FabricIndex: th1FabricIndex,
SceneValid: true,
RemainingCapacity: fabricCapacity - 2,
},
Expand All @@ -409,7 +421,6 @@ tests:
- label:
"Configures the DUT to a different state, should invalidate the scene"
cluster: "Level Control"
PICS: PICS_SDK_CI_ONLY
command: "MoveToLevelWithOnOff"
arguments:
values:
Expand All @@ -431,8 +442,8 @@ tests:
{
SceneCount: 2,
CurrentScene: 0x01,
CurrentGroup: 0x02,
FabricIndex: 1,
CurrentGroup: G2,
FabricIndex: th1FabricIndex,
SceneValid: false,
RemainingCapacity: fabricCapacity - 2,
},
Expand Down Expand Up @@ -464,8 +475,8 @@ tests:
{
SceneCount: 3,
CurrentScene: 0x02,
CurrentGroup: 0x01,
FabricIndex: 1,
CurrentGroup: G1,
FabricIndex: th1FabricIndex,
SceneValid: true,
RemainingCapacity: fabricCapacity - 3,
},
Expand All @@ -489,15 +500,14 @@ tests:
{
SceneCount: 3,
CurrentScene: 0x01,
CurrentGroup: 0x02,
FabricIndex: 1,
CurrentGroup: G2,
FabricIndex: th1FabricIndex,
SceneValid: true,
RemainingCapacity: fabricCapacity - 3,
},
]

- label: "Remove Active scene"
PICS: S.S.C02.Rsp
command: "RemoveScene"
arguments:
values:
Expand All @@ -523,16 +533,14 @@ tests:
{
SceneCount: 2,
CurrentScene: 0x01,
CurrentGroup: 0x02,
FabricIndex: 1,
CurrentGroup: G2,
FabricIndex: th1FabricIndex,
SceneValid: false,
RemainingCapacity: fabricCapacity - 2,
},
]

- label: "Remove all scenes from G1"
runIf: ContinueTest
PICS: S.S.C03.Rsp
command: "RemoveAllScenes"
arguments:
values:
Expand All @@ -554,10 +562,9 @@ tests:
{
SceneCount: 0,
CurrentScene: 0x01,
CurrentGroup: 0x02,
FabricIndex: 1,
CurrentGroup: G2,
FabricIndex: th1FabricIndex,
SceneValid: false,
RemainingCapacity: fabricCapacity,
},
]
# TODO : Add multi Fabric / multi node tests
]
Loading

0 comments on commit f6dae1d

Please sign in to comment.