Skip to content

Commit

Permalink
Split preconditionning into separate steps
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs committed Feb 13, 2024
1 parent 9f387e8 commit 7d27042
Showing 1 changed file with 41 additions and 5 deletions.
46 changes: 41 additions & 5 deletions src/app/tests/suites/certification/Test_TC_S_3_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,21 @@ tests:
For DUT as client test cases, Chip-tool command used below are an example to verify the functionality. For certification test, we expect DUT should have a capability or way to run the equivalent command.
disabled: true

- label: "Step 0a: Preparation"
- label: "Step 0a: Precondition 1"
verification: |
- TH as server exposes a Scenes Management server cluster on Endpoint: EndpointID, supporting all possible commands and corresponding attributes.
- Commission DUT to TH
disabled: true

- label:
"Step 0b: Precondition write the Group Key Set and Group Key Map, then
add group1 to the group table"
"Step 0b: Precondition 2: TH sends KeySetWrite command in the
GroupKeyManagement cluster to DUT using a key that is pre-installed on
the TH. GroupKeySet fields are as follows: * GroupKeySetID: 0x01a1 *
GroupKeySecurityPolicy: TrustFirst (0) * EpochKey0:
a0a1a2a3a4a5a6a7a8a9aaabacadaeaf * EpochStartTime0: 1110000 *
EpochKey1: b0b1b2b3b4b5b6b7b8b9babbbcbdbebf * EpochStartTime1: 1110001
* EpochKey2: c0c1c2c3c4c5c6c7c8c9cacbcccdcecf * EpochStartTime2:
1110002"
verification: |
Please execute the below commands before starting the test case :
Expand Down Expand Up @@ -86,9 +92,16 @@ tests:
[1706722808.568729][5404:5404] CHIP:DMG:
[1706722808.568739][5404:5404] CHIP:DMG: InteractionModelRevision = 11
[1706722808.568747][5404:5404] CHIP:DMG: },
disabled: true

Before adding the Groups 0x0001 execute below command
- label:
"Step 0c: Precondition 3: TH binds GroupIds 0x0001 and 0x0002 with
GroupKeySetID 0x01a1 in the GroupKeyMap attribute list on
GroupKeyManagement cluster by writing the GroupKeyMap attribute with
two entries as follows: * List item 1: - FabricIndex: 1 - GroupId:
0x0001 - GroupKeySetId: 0x01a1"
verification: |
Please execute the below commands before starting the test case :
./chip-tool groupkeymanagement write group-key-map '[{"groupId": "0x0001", "groupKeySetID": "0x01a1", "fabricIndex": 1} ]' 1 0
Expand Down Expand Up @@ -136,7 +149,30 @@ tests:
[1706722844.841738][5404:5404] CHIP:DMG: moreChunkedMessages = false,
[1706722844.841741][5404:5404] CHIP:DMG: InteractionModelRevision = 11
[1706722844.841743][5404:5404] CHIP:DMG: },
disabled: true

- label:
"Step 0d: Precondition 4: TH sends a RemoveAllGroups command to DUT."
verification: |
Please execute the below commands before starting the test case :
./chip-tool groups remove-all-groups 1 1
Verify DUT responds with SUCCESS status response on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1653485455.344097][11508:11513] CHIP:DMG: StatusIB =
[1653485455.344141][11508:11513] CHIP:DMG: {
[1653485455.344190][11508:11513] CHIP:DMG: status = 0x00 (SUCCESS),
[1653485455.344236][11508:11513] CHIP:DMG: },
5. TH sends a AddGroup command to DUT with the GroupID field set to G1.
disabled: true

- label:
"Step 0e: Precondition 5: TH sends a AddGroup command to DUT with the
GroupID field set to G1."
verification: |
Please execute the below commands before starting the test case :
./chip-tool groups add-group 0x01 Gp1 1 1
Expand Down

0 comments on commit 7d27042

Please sign in to comment.