Skip to content

Commit

Permalink
Test added sep22 manualscript (#22824)
Browse files Browse the repository at this point in the history
* Added Auto generated file

* Added Auto generated files

* Restyled by clang-format

* Updating autogen files

Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: kvikrambhat <vikrambhat@outlook.com>
  • Loading branch information
3 people authored and pull[bot] committed Nov 13, 2023
1 parent 0a4cd19 commit 1628869
Show file tree
Hide file tree
Showing 21 changed files with 556 additions and 675 deletions.
6 changes: 3 additions & 3 deletions src/app/tests/suites/certification/Test_TC_ACE_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ tests:
- label: "TH1 commissions DUT using admin node ID N1"
verification: |
DUT side:
sudo ./chip-all-clusters-app
sudo ./chip-all-clusters-app
TH side:
./chip-tool pairing ethernet 1 20202021 chiip5 matter123 3840 5540
./chip-tool pairing ethernet 1 20202021 chiip5 matter123 3840 fe80::e65f:1ff:fe0f:2753 5540
[1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success
[1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success"
disabled: true

- label:
Expand Down
39 changes: 19 additions & 20 deletions src/app/tests/suites/certification/Test_TC_ACL_2_7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ tests:
Open a commissioning window On TH1(Chiptool)using below command
./chip-tool pairing open-commissioning-window 1 1 400 2000 3841
[1657186324.710951][10820:10825] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0000 Status=0x0
[1657186324.710980][10820:10825] CHIP:CTL: Successfully opened pairing window On TH(Chiptool)e device
[1657186324.711048][10820:10825] CHIP:CTL: Manual pairing code: [36253605617]
Expand All @@ -75,7 +76,7 @@ tests:
Commission TH2(Chiptool) to DUT using manualcode generated in TH1 using open commission window
./chip-tool pairing code 2 36253605617 --commissioner-name beta
./chip-tool pairing code 2 36253605617 --commissioner-name beta --commissioner-nodeid 223344
[1657186359.584672][3509:3514] CHIP:CTL: Successfully finished commissioning step "Cleanup"
[1657186359.584743][3509:3514] CHIP:TOO: Device commissioning completed with success
disabled: true
Expand All @@ -84,7 +85,7 @@ tests:
"TH2 reads DUT Endpoint 0 OperationalCredentials cluster
CurrentFabricIndex attribute"
verification: |
./chip-tool operationalcredentials read current-fabric-index 2 0 --commissioner-name beta
./chip-tool operationalcredentials read current-fabric-index 2 0 --commissioner-name beta --commissioner-nodeid 223344
On TH2(Chiptool), verify CurrentFabricIndex attribute of operationalCredential cluster as 2
[1657186956.724761][3910:3915] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_003E Attribute 0x0000_0005 DataVersion: 3161849734
Expand All @@ -97,7 +98,7 @@ tests:
1.struct .Data field: D_OK_EMPTY 1718"
PICS: ACL.S.A0001
verification: |
./chip-tool accesscontrol write extension "[{"data":"1718"}]" 1 0
./chip-tool accesscontrol write extension '[{"data":"1718"}]' 1 0
On TH1(Chiptool),Verify Successfully to extension attribute list containg one element .
Expand Down Expand Up @@ -146,7 +147,7 @@ tests:
17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"
PICS: ACL.S.A0001
verification: |
./chip-tool accesscontrol write extension "[{"data":"17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"}]" 2 0 --commissioner-name beta
./chip-tool accesscontrol write extension '[{"data":"17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"}]' 2 0 --commissioner-name beta --commissioner-nodeid 223344
On TH2(Chiptool),Verify Successfully to extension attribute list containg one element .
1657894672.479983][2433:2438] CHIP:DMG: WriteClient moving to [ResponseRe]
Expand Down Expand Up @@ -212,7 +213,7 @@ tests:
"TH2 reads DUT Endpoint 0 AccessControl cluster Extension attribute"
PICS: ACL.S.A0001
verification: |
./chip-tool accesscontrol read extension 2 0 --commissioner-name beta
./chip-tool accesscontrol read extension 2 0 --commissioner-name beta --commissioner-nodeid 223344
On TH2(Chiptool), Verify AccessControlExtensionStruct containing 1 element, and MUST NOT contain an element with FabricIndex F1
[1658327214.683199][2749:2754] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_0001 DataVersion: 2953114587
Expand Down Expand Up @@ -252,20 +253,18 @@ tests:
AccessControlExtensionChanged event"
PICS: ACL.S.E01
verification: |
./chip-tool accesscontrol read-event access-control-extension-changed 2 0 --commissioner-name beta
./chip-tool accesscontrol read-event access-control-extension-changed 2 0 --commissioner-name beta --commissioner-nodeid 223344
On TH2(Chiptool) , Verify AccessControlExtensionChanged containing 1 element, and MUST NOT contain an element with FabricIndex F1
[1658327551.622018][4295:4300] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Event 0x0000_0001
[1658327551.622043][4295:4300] CHIP:TOO: Event number: 6
[1658327551.622065][4295:4300] CHIP:TOO: Priority: Info
[1658327551.622130][4295:4300] CHIP:TOO: Timestamp: 4633724
[1658327551.622239][4295:4300] CHIP:TOO: AccessControlExtensionChanged: {
[1658327551.622287][4295:4300] CHIP:TOO: AdminNodeID: 112233
[1658327551.622313][4295:4300] CHIP:TOO: AdminPasscodeID: null
[1658327551.622337][4295:4300] CHIP:TOO: ChangeType: 1
[1658327551.622361][4295:4300] CHIP:TOO: LatestValue: {
[1658327551.622389][4295:4300] CHIP:TOO: Data: 17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018
[1658327551.622414][4295:4300] CHIP:TOO: FabricIndex: 2
[1658327551.622436][4295:4300] CHIP:TOO: }
[1658327551.622459][4295:4300] CHIP:TOO: AdminFabricIndex: 2
[1658327551.622480][4295:4300] CHIP:TOO: }
[1663242753.957097][4264:4270] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Event 0x0000_0001
[1663242753.957400][4264:4270] CHIP:TOO: Event number: 8
[1663242753.957459][4264:4270] CHIP:TOO: Priority: Info
[1663242753.957507][4264:4270] CHIP:TOO: Timestamp: 20785045
[1663242753.957708][4264:4270] CHIP:TOO: AccessControlExtensionChanged: {
[1663242753.957801][4264:4270] CHIP:TOO: AdminNodeID: 223344
[1663242753.957867][4264:4270] CHIP:TOO: AdminPasscodeID: null
[1663242753.957931][4264:4270] CHIP:TOO: ChangeType: 1
[1663242753.957991][4264:4270] CHIP:TOO: LatestValue: {
[1663242753.958055][4264:4270] CHIP:TOO: Data: 17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018
[1663242753.958118][4264:4270] CHIP:TOO: FabricIndex: 2
[1663242753.958183][4264:4270] CHIP:TOO: }
disabled: true
61 changes: 18 additions & 43 deletions src/app/tests/suites/certification/Test_TC_ACL_2_8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,45 +59,17 @@ tests:
verification: |
Open a commissioning window On TH1(Chiptool)using below command
./chip-tool administratorcommissioning open-basic-commissioning-window 180 1 0 --timedInteractionTimeoutMs 1000
[1657286379.420840][4724:4729] CHIP:DMG: InvokeResponseMessage =
[1657286379.420894][4724:4729] CHIP:DMG: {
[1657286379.420937][4724:4729] CHIP:DMG: suppressResponse = false,
[1657286379.421000][4724:4729] CHIP:DMG: InvokeResponseIBs =
[1657286379.421068][4724:4729] CHIP:DMG: [
[1657286379.421120][4724:4729] CHIP:DMG: InvokeResponseIB =
[1657286379.421208][4724:4729] CHIP:DMG: {
[1657286379.421264][4724:4729] CHIP:DMG: CommandStatusIB =
[1657286379.421344][4724:4729] CHIP:DMG: {
[1657286379.421407][4724:4729] CHIP:DMG: CommandPathIB =
[1657286379.421493][4724:4729] CHIP:DMG: {
[1657286379.421581][4724:4729] CHIP:DMG: EndpointId = 0x0,
[1657286379.421656][4724:4729] CHIP:DMG: ClusterId = 0x3c,
[1657286379.421754][4724:4729] CHIP:DMG: CommandId = 0x1,
[1657286379.421838][4724:4729] CHIP:DMG: },
[1657286379.421916][4724:4729] CHIP:DMG:
[1657286379.421998][4724:4729] CHIP:DMG: StatusIB =
[1657286379.422084][4724:4729] CHIP:DMG: {
[1657286379.422159][4724:4729] CHIP:DMG: status = 0x00 (SUCCESS),
[1657286379.422251][4724:4729] CHIP:DMG: },
[1657286379.422336][4724:4729] CHIP:DMG:
[1657286379.422397][4724:4729] CHIP:DMG: },
[1657286379.422483][4724:4729] CHIP:DMG:
[1657286379.422537][4724:4729] CHIP:DMG: },
[1657286379.422616][4724:4729] CHIP:DMG:
[1657286379.422666][4724:4729] CHIP:DMG: ],
[1657286379.422745][4724:4729] CHIP:DMG:
[1657286379.422796][4724:4729] CHIP:DMG: InteractionModelRevision = 1
[1657286379.422861][4724:4729] CHIP:DMG: },
[1657286379.422975][4724:4729] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0001 Status=0x0
[1657286379.423058][4724:4729] CHIP:DMG: ICR moving to [AwaitingDe]
CommissiOn TH2(Chiptool) to DUT using below command
./chip-tool pairing onnetwork 2 20202021 --commissioner-nodeid 223344 --commissioner-name beta
./chip-tool pairing open-commissioning-window 1 1 400 2000 3841
[1657186324.710951][10820:10825] CHIP:DMG: Received Command Response Status for Endpoint=0 Cluster=0x0000_003C Command=0x0000_0000 Status=0x0
[1657186324.710980][10820:10825] CHIP:CTL: Successfully opened pairing window On TH(Chiptool)e device
[1657186324.711048][10820:10825] CHIP:CTL: Manual pairing code: [36253605617]
[1657186324.711108][10820:10825] CHIP:CTL: SetupQRCode: [MT:-24J0IRV01A7TB7E700]
Commission TH2(Chiptool) to DUT using manualcode generated in TH1 using open commission window
./chip-tool pairing code 2 36253605617 --commissioner-name beta --commissioner-nodeid 223344
[1657186359.584672][3509:3514] CHIP:CTL: Successfully finished commissioning step "Cleanup"
[1657186359.584743][3509:3514] CHIP:TOO: Device commissioning completed with success
Expand All @@ -108,6 +80,7 @@ tests:
CurrentFabricIndex attribute"
verification: |
./chip-tool operationalcredentials read current-fabric-index 2 0 --commissioner-nodeid 223344 --commissioner-name beta
On TH2(Chiptool),verify CurrentFabricIndex attribute of operationalCredential cluster as 2
1658747098.843523][3024:3029] CHIP:DMG: },
Expand All @@ -131,7 +104,8 @@ tests:
field: [N1, 1111] Targets field: null"
PICS: ACL.S.A0000
verification: |
./chip-tool accesscontrol write acl "[{ "privilege": 5, "authMode": 2, "subjects": [112233,1111], "targets":null}]" 1 0
./chip-tool accesscontrol write acl '[{ "privilege": 5, "authMode": 2, "subjects": [112233,1111], "targets":null}]' 1 0
On TH1(Chiptool), verify AccessControl cluster ACL attribute, value is list of AccessControlEntryStruct containing 1 element
[1657286416.461279][4737:4742] CHIP:DMG: {
Expand Down Expand Up @@ -185,7 +159,7 @@ tests:
field: [N2, 2222] Targets field: null"
PICS: ACL.S.A0000
verification: |
./chip-tool accesscontrol write acl "[{ "privilege": 5, "authMode": 2, "subjects": [223344,2222], "targets":null}]" 2 0 --commissioner-nodeid 223344 --commissioner-name beta
./chip-tool accesscontrol write acl '[{ "privilege": 5, "authMode": 2, "subjects": [223344,2222], "targets":null}]' 2 0 --commissioner-nodeid 223344 --commissioner-name beta
On TH2(Chiptool), verify AccessControl cluster ACL attribute value is list of AccessControlEntryStruct containing 1 element
Expand Down Expand Up @@ -261,8 +235,8 @@ tests:
On TH2(Chiptool), verify AccessControlEntryStruct containing 1 element, and MUST NOT contain an element with FabricIndex F1
[1661407263.740571][2355:2360] CHIP:DMG: SuppressResponse = true,
[1661407263.740605][2355:2360] CHIP:DMG: InteractionModelRevision = 1
[1661407263.740571][2355:2360] CHIP:DMG: SuppressResponse = true,
[1661407263.740605][2355:2360] CHIP:DMG: InteractionModelRevision = 1
[1661407263.740640][2355:2360] CHIP:DMG: }
[1661407263.741000][2355:2360] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_001F Attribute 0x0000_0000 DataVersion: 2445703657
[1661407263.741100][2355:2360] CHIP:TOO: ACL: 1 entries
Expand Down Expand Up @@ -353,6 +327,7 @@ tests:
PICS: ACL.S.E00
verification: |
./chip-tool accesscontrol read-event access-control-entry-changed 2 0 --commissioner-name beta --commissioner-nodeid 223344
On TH2(Chiptool), verify AccessControl cluster AccessControlEntryChanged containing 3 elements, and MUST NOT contain any element with FabricIndex F1
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_BINFO_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ tests:
3. BINFO.S.A0011(Reachable) - TH reads Reachable attribute from DUT and saves for future use(should be true)
4. BINFO.S.E00(StartUp) && BINFO.S.E01(ShutDown) && BINFO.S.E02(Leave) - TH subscribes to StartUp, ShutDown, Leave and ReachableChanged events on the Basic Information cluster of the DUT
4. BINFO.S.E00(StartUp) | BINFO.S.E01(ShutDown) && BINFO.S.E02(Leave) - TH subscribes to StartUp, ShutDown, Leave and ReachableChanged events on the Basic Information cluster of the DUT
5. TH saves the FabricIndex during commissioning
disabled: true
Expand Down
16 changes: 8 additions & 8 deletions src/app/tests/suites/certification/Test_TC_BRBINFO_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ tests:
NOTE the quotes: single-quote/double-quote/string/double-quote/single-quote
[1660839701.840432][2444:2449] CHIP:DMG: }
[1660839701.840432][2444:2449] CHIP:DMG: }
[1660839701.840505][2444:2449] CHIP:DMG:
[1660839701.840578][2444:2449] CHIP:DMG: StatusIB =
[1660839701.840661][2444:2449] CHIP:DMG: {
[1660839701.840742][2444:2449] CHIP:DMG: status = 0x88 (UNSUPPORTED_WRITE),
[1660839701.840827][2444:2449] CHIP:DMG: },
[1660839701.840578][2444:2449] CHIP:DMG: StatusIB =
[1660839701.840661][2444:2449] CHIP:DMG: {
[1660839701.840742][2444:2449] CHIP:DMG: status = 0x88 (UNSUPPORTED_WRITE),
[1660839701.840827][2444:2449] CHIP:DMG: },
[1660839701.840905][2444:2449] CHIP:DMG:
[1660839701.840973][2444:2449] CHIP:DMG: },
[1660839701.840973][2444:2449] CHIP:DMG: },
disabled: true

- label: "TH reads NodeLabel"
Expand Down Expand Up @@ -185,7 +185,7 @@ tests:
- label: "TH reads HardwareVersion"
PICS: BRBINFO.S.A0007
verification: |
./chip-tool bridgeddevicebasic read hardware-version 1 3
./chip-tool bridgeddevicebasic write hardware-version-string 0x4531 1 3
Optional Attribute - If it is supported, then in TH log it will results in displaying the value, else it will display UNSUPPORTED_ATTRIBUTE
Expand Down Expand Up @@ -472,7 +472,7 @@ tests:
false."
PICS: BRBINFO.S.A0011
verification: |
./chip-tool bridgeddevicebasic write-by-id 0x0005 false 1 0
./chip-tool bridgeddevicebasic write-by-id 17 false 1 3
Expand Down
Loading

0 comments on commit 1628869

Please sign in to comment.