Skip to content

Commit

Permalink
Test added sep14 (project-chip#22631) (project-chip#22649)
Browse files Browse the repository at this point in the history
* Added updated manual scripts

* Added Auto generated file

* Restyled by clang-format

* Added updated manual scripts

* Added auto generated file

* Restyled by clang-format

Co-authored-by: Restyled.io <[email protected]>

Co-authored-by: kowsisoundhar12 <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
3 people authored Sep 15, 2022
1 parent 52a995a commit 0006f07
Show file tree
Hide file tree
Showing 16 changed files with 875 additions and 161 deletions.
12 changes: 6 additions & 6 deletions src/app/tests/suites/certification/Test_TC_ACE_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ tests:
AuthMode field: CASE (2) Subjects field: [N1] Targets field:
[{Endpoint: 0}]"
verification: |
./chip-tool accesscontrol write acl '[{ "privilege": 5, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": null, "endpoint": 0, "deviceType": null }]}]' 1 0
./chip-tool accesscontrol write acl "[{ "privilege": 5, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": null, "endpoint": 0, "deviceType": null }]}]" 1 0
On TH(Chiptool),Verify ACL attribute with a list of AccessControlEntryStruct entries containing 1 element.
[1659419235.790198][3332:3337] CHIP:DMG: WriteClient moving to [ResponseRe]
[1659419235.790263][3332:3337] CHIP:DMG: WriteResponseMessage =
Expand Down Expand Up @@ -317,7 +317,7 @@ tests:
0}] 2.struct Privilege field: Manage (4) AuthMode field: CASE (2)
Subjects field: [N1] Targets field: [{Endpoint: 0}]"
verification: |
./chip-tool accesscontrol write acl '[{ "privilege": 5, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": 31, "endpoint": 0, "deviceType": null }]},{ "privilege": 4, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": null, "endpoint": 0, "deviceType": null }]}]' 1 0
./chip-tool accesscontrol write acl "[{ "privilege": 5, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": 31, "endpoint": 0, "deviceType": null }]},{ "privilege": 4, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": null, "endpoint": 0, "deviceType": null }]}]" 1 0
On TH(Chiptool),Verify ACL attribute with a list of AccessControlEntryStruct entries containing 2 elements
1660288528.919407][3487:3493] CHIP:DMG: WriteClient moving to [ResponseRe]
Expand Down Expand Up @@ -614,7 +614,7 @@ tests:
0}] 2. struct Privilege field: Operate (3) AuthMode field: CASE (2)
Subjects field: [N1] Targets field: [{Endpoint: 0}]"
verification: |
./chip-tool accesscontrol write acl '[{ "privilege": 5, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": 31, "endpoint": 0, "deviceType": null }]},{ "privilege": 3, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": null, "endpoint": 0, "deviceType": null }]}]' 1 0
./chip-tool accesscontrol write acl "[{ "privilege": 5, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": 31, "endpoint": 0, "deviceType": null }]},{ "privilege": 3, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": null, "endpoint": 0, "deviceType": null }]}]" 1 0
On TH(Chiptool),Verify ACL attribute with a list of AccessControlEntryStruct entries containing 2 elements
1660289539.245027][3576:3581] CHIP:DMG: WriteResponseMessage =
Expand Down Expand Up @@ -823,7 +823,7 @@ tests:
cluster with the EnableKey set to 0 and the EventTrigger set to 0.
(requires manage privilege)"
verification: |
./chip-tool basic write node-label TestNode 1 0
./chip-tool generaldiagnostics test-event-trigger 0 0 1 0
On TH(Chiptool),Verify TestEventTrigger command to the General Diagnostics cluster with the EnableKey set to 0 and the EventTrigger set to 0. (requires manage privilege) Returns UNSUPPORTED_ACCESS (0x7e)
[1660290186.783158][3633:3638] CHIP:DMG: InvokeResponseMessage =
Expand Down Expand Up @@ -905,7 +905,7 @@ tests:
2.struct Privilege field: View (1) AuthMode field: CASE (2) Subjects
field: [N1] Targets field: [{Endpoint: 0}]"
verification: |
./chip-tool accesscontrol write acl '[{ "privilege": 5, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": 31, "endpoint": 0, "deviceType": null }]},{ "privilege": 1, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": null, "endpoint": 0, "deviceType": null }]}]' 1 0
./chip-tool accesscontrol write acl "[{ "privilege": 5, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": 31, "endpoint": 0, "deviceType": null }]},{ "privilege": 1, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": null, "endpoint": 0, "deviceType": null }]}]" 1 0
On TH(Chiptool),Verify ACL attribute with a list of AccessControlEntryStruct entries containing 2 elements
Expand Down Expand Up @@ -1186,7 +1186,7 @@ tests:
verification: |
On TH(Chiptool)1,Verify ACL attribute with a list of AccessControlEntryStruct entries containing 1 element.
./chip-tool accesscontrol write acl '[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": 31, "endpoint": 0, "deviceType": null }]}]' 1 0
./chip-tool accesscontrol write acl "[{ "privilege": 5, "authMode": 2, "subjects": [112233], "targets": [{ "cluster": 31, "endpoint": 0, "deviceType": null }]}]" 1 0
60291527.086023][3753:3758] CHIP:DMG: Cluster = 0x1f,
[1660291527.086060][3753:3758] CHIP:DMG: Attribute = 0x0000_0000,
Expand Down
10 changes: 5 additions & 5 deletions src/app/tests/suites/certification/Test_TC_ACL_2_5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,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 AccessControl cluster Extension attribute, value is list of AccessControlExtensionStruct containing 1 element
217.510779][2371:2376] CHIP:DMG: AttributePathIB =
Expand Down Expand Up @@ -170,7 +170,7 @@ tests:
17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"
PICS: ACL.S.A0001
verification: |
./chip-tool accesscontrol write extension "[{"data":"17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"}]" 1 0
./chip-tool accesscontrol write extension '[{"data":"17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"}]' 1 0
On TH1(Chiptool) , Verify Successfully extension attribute list containing one element
7284747.131523][2411:2416] CHIP:DMG: StatusIB =
[1657284747.131568][2411:2416] CHIP:DMG: {
Expand Down Expand Up @@ -251,7 +251,7 @@ tests:
17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E6700D00000F1FF02003248656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E7420616761696E2E2E2E2E2E2E0018"
PICS: ACL.S.A0001
verification: |
./chip-tool accesscontrol write extension "[{"data":"17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E6700D00000F1FF02003248656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E7420616761696E2E2E2E2E2E2E0018"}]" 1 0
./chip-tool accesscontrol write extension '[{"data":"17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E6700D00000F1FF02003248656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E7420616761696E2E2E2E2E2E2E0018"}]' 1 0
On TH1(Chiptool) , Verify AccessControl cluster Extension attribute value is list of AccessControlExtensionStruct containing 1 element Data, exceeds maximum length.
Expand Down Expand Up @@ -305,7 +305,7 @@ tests:
:17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"
PICS: ACL.S.A0001
verification: |
./chip-tool accesscontrol write extension "[{"data":"1718"},{"data":"17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"}]" 1 0
./chip-tool accesscontrol write extension '[{"data":"1718"},{"data":"17D00000F1FF01003D48656C6C6F20576F726C642E205468697320697320612073696E676C6520656C656D656E74206C6976696E6720617320612063686172737472696E670018"}]' 1 0
On TH1(Chiptool) , Verify AccessControl cluster Extension attribute, value is list of AccessControlExtensionStruct containing 2 elements Returns 0x87 (CONSTRAINT_ERROR)-as there are more than 1 entry
Expand Down Expand Up @@ -358,7 +358,7 @@ tests:
value is an empty list"
PICS: ACL.S.A0001
verification: |
./chip-tool accesscontrol write extension "[]" 1 0
./chip-tool accesscontrol write extension '[]' 1 0
On TH1(Chiptool) , Verify AccessControl cluster Extension attribute, value is an empty list
Expand Down
126 changes: 65 additions & 61 deletions src/app/tests/suites/certification/Test_TC_BR_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ config:
endpoint: 0

tests:
- label: "Precondition"
verification: |
1. DUT has been commissioned to TH
2.Two or more bridged devices of a supported type connected via non-Matter network/protocol to DUT (bridge)
disabled: true

- label:
"Read PartsList and DeviceTypeList attributes of the Descriptor
cluster of endpoint 0 For each endpoint listed in the PartsList
Expand Down Expand Up @@ -204,32 +211,29 @@ tests:
Verify in TH(chip-tool) Log
[1657004014.927308][4678:4683] CHIP:TOO: Endpoint: 4 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 1398882309
[1657004014.927387][4678:4683] CHIP:TOO: device list: 2 entries
[1657004014.927460][4678:4683] CHIP:TOO: [1]: {
[1657004014.927514][4678:4683] CHIP:TOO: Type: 259
[1657004014.927551][4678:4683] CHIP:TOO: Revision: 1
[1657004014.927585][4678:4683] CHIP:TOO: }
[1657004014.927622][4678:4683] CHIP:TOO: [2]: {
[1657004014.927650][4678:4683] CHIP:TOO: Type: 19
[1657004014.927678][4678:4683] CHIP:TOO: Revision: 1
[1657004014.927705][4678:4683] CHIP:TOO: }
[1663141236.408628][40968:40973] CHIP:TOO: device list: 2 entries
[1663141236.408688][40968:40973] CHIP:TOO: [1]: {
[1663141236.408723][40968:40973] CHIP:TOO: Type: 770
[1663141236.408744][40968:40973] CHIP:TOO: Revision: 1
[1663141236.408762][40968:40973] CHIP:TOO: }
[1663141236.408791][40968:40973] CHIP:TOO: [2]: {
[1663141236.408812][40968:40973] CHIP:TOO: Type: 19
[1663141236.408836][40968:40973] CHIP:TOO: Revision: 1
[1663141236.408860][40968:40973] CHIP:TOO: }
./chip-tool descriptor read device-list 1 5
Verify in TH(chip-tool) Log
[1657004035.789404][4690:4695] CHIP:TOO: Endpoint: 5 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 130458766
[1657004035.789470][4690:4695] CHIP:TOO: device list: 2 entries
[1657004035.789526][4690:4695] CHIP:TOO: [1]: {
[1657004035.789571][4690:4695] CHIP:TOO: Type: 259
[1657004035.789601][4690:4695] CHIP:TOO: Revision: 1
[1657004035.789629][4690:4695] CHIP:TOO: }
[1657004035.789663][4690:4695] CHIP:TOO: [2]: {
[1657004035.789691][4690:4695] CHIP:TOO: Type: 19
[1657004035.789717][4690:4695] CHIP:TOO: Revision: 1
[1657004035.789744][4690:4695] CHIP:TOO: }
[1663141236.408519][40968:40973] CHIP:TOO: Endpoint: 5 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 934498373
[1663141236.408628][40968:40973] CHIP:TOO: device list: 2 entries
[1663141236.408688][40968:40973] CHIP:TOO: [1]: {
[1663141236.408723][40968:40973] CHIP:TOO: Type: 770
[1663141236.408744][40968:40973] CHIP:TOO: Revision: 1
[1663141236.408762][40968:40973] CHIP:TOO: }
[1663141236.408791][40968:40973] CHIP:TOO: [2]: {
[1663141236.408812][40968:40973] CHIP:TOO: Type: 19
[1663141236.408836][40968:40973] CHIP:TOO: Revision: 1
[1663141236.408860][40968:40973] CHIP:TOO: }
./chip-tool descriptor read device-list 1 6
Expand Down Expand Up @@ -349,33 +353,31 @@ tests:
Verify in TH(chip-tool) Log
[1657002348.693948][3989:3994] CHIP:TOO: Endpoint: 4 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 1398882309
[1657002348.694013][3989:3994] CHIP:TOO: device list: 2 entries
[1657002348.694063][3989:3994] CHIP:TOO: [1]: {
[1657002348.694100][3989:3994] CHIP:TOO: Type: 259
[1657002348.694125][3989:3994] CHIP:TOO: Revision: 1
[1657002348.694149][3989:3994] CHIP:TOO: }
[1657002348.694176][3989:3994] CHIP:TOO: [2]: {
[1657002348.694199][3989:3994] CHIP:TOO: Type: 19
[1657002348.694221][3989:3994] CHIP:TOO: Revision: 1
[1657002348.694242][3989:3994] CHIP:TOO: }
[1663141236.408628][40968:40973] CHIP:TOO: device list: 2 entries
[1663141236.408688][40968:40973] CHIP:TOO: [1]: {
[1663141236.408723][40968:40973] CHIP:TOO: Type: 770
[1663141236.408744][40968:40973] CHIP:TOO: Revision: 1
[1663141236.408762][40968:40973] CHIP:TOO: }
[1663141236.408791][40968:40973] CHIP:TOO: [2]: {
[1663141236.408812][40968:40973] CHIP:TOO: Type: 19
[1663141236.408836][40968:40973] CHIP:TOO: Revision: 1
[1663141236.408860][40968:40973] CHIP:TOO: }
./chip-tool descriptor read device-list 1 5
Verify in TH(chip-tool) Log
[1657002369.589492][3996:4001] CHIP:TOO: Endpoint: 5 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 130458766
[1657002369.589556][3996:4001] CHIP:TOO: device list: 2 entries
[1657002369.589610][3996:4001] CHIP:TOO: [1]: {
[1657002369.589653][3996:4001] CHIP:TOO: Type: 259
[1657002369.589682][3996:4001] CHIP:TOO: Revision: 1
[1657002369.589710][3996:4001] CHIP:TOO: }
[1657002369.589742][3996:4001] CHIP:TOO: [2]: {
[1657002369.589768][3996:4001] CHIP:TOO: Type: 19
[1657002369.589794][3996:4001] CHIP:TOO: Revision: 1
[1657002369.589819][3996:4001] CHIP:TOO: }
[1663141236.408628][40968:40973] CHIP:TOO: device list: 2 entries
[1663141236.408688][40968:40973] CHIP:TOO: [1]: {
[1663141236.408723][40968:40973] CHIP:TOO: Type: 770
[1663141236.408744][40968:40973] CHIP:TOO: Revision: 1
[1663141236.408762][40968:40973] CHIP:TOO: }
[1663141236.408791][40968:40973] CHIP:TOO: [2]: {
[1663141236.408812][40968:40973] CHIP:TOO: Type: 19
[1663141236.408836][40968:40973] CHIP:TOO: Revision: 1
[1663141236.408860][40968:40973] CHIP:TOO: }
./chip-tool descriptor read device-list 1 6
Expand Down Expand Up @@ -1173,31 +1175,33 @@ tests:
Verify in TH(chip-tool) Log
[1657004014.927308][4678:4683] CHIP:TOO: Endpoint: 4 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 1398882309
[1657004014.927387][4678:4683] CHIP:TOO: device list: 2 entries
[1657004014.927460][4678:4683] CHIP:TOO: [1]: {
[1657004014.927514][4678:4683] CHIP:TOO: Type: 259
[1657004014.927551][4678:4683] CHIP:TOO: Revision: 1
[1657004014.927585][4678:4683] CHIP:TOO: }
[1657004014.927622][4678:4683] CHIP:TOO: [2]: {
[1657004014.927650][4678:4683] CHIP:TOO: Type: 19
[1657004014.927678][4678:4683] CHIP:TOO: Revision: 1
[1657004014.927705][4678:4683] CHIP:TOO: }
OO: Endpoint: 4 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 2589882031
[1663150288.097040][45626:45633] CHIP:TOO: device list: 2 entries
[1663150288.097069][45626:45633] CHIP:TOO: [1]: {
[1663150288.097090][45626:45633] CHIP:TOO: Type: 770
[1663150288.097109][45626:45633] CHIP:TOO: Revision: 1
[1663150288.097127][45626:45633] CHIP:TOO: }
[1663150288.097152][45626:45633] CHIP:TOO: [2]: {
[1663150288.097170][45626:45633] CHIP:TOO: Type: 19
[1663150288.097187][45626:45633] CHIP:TOO: Revision: 1
[1663150288.097205][45626:45633] CHIP:TOO: }
./chip-tool descriptor read device-list 1 5
Verify in TH(chip-tool) Log
[1657004035.789404][4690:4695] CHIP:TOO: Endpoint: 5 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 130458766
[1657004035.789470][4690:4695] CHIP:TOO: device list: 2 entries
[1657004035.789526][4690:4695] CHIP:TOO: [1]: {
[1657004035.789571][4690:4695] CHIP:TOO: Type: 259
[1657004035.789601][4690:4695] CHIP:TOO: Revision: 1
[1657004035.789629][4690:4695] CHIP:TOO: }
[1657004035.789663][4690:4695] CHIP:TOO: [2]: {
[1657004035.789691][4690:4695] CHIP:TOO: Type: 19
[1657004035.789717][4690:4695] CHIP:TOO: Revision: 1
[1657004035.789744][4690:4695] CHIP:TOO: }
OO: Endpoint: 4 Cluster: 0x0000_001D Attribute 0x0000_0000 DataVersion: 2589882031
[1663150288.097040][45626:45633] CHIP:TOO: device list: 2 entries
[1663150288.097069][45626:45633] CHIP:TOO: [1]: {
[1663150288.097090][45626:45633] CHIP:TOO: Type: 770
[1663150288.097109][45626:45633] CHIP:TOO: Revision: 1
[1663150288.097127][45626:45633] CHIP:TOO: }
[1663150288.097152][45626:45633] CHIP:TOO: [2]: {
[1663150288.097170][45626:45633] CHIP:TOO: Type: 19
[1663150288.097187][45626:45633] CHIP:TOO: Revision: 1
[1663150288.097205][45626:45633] CHIP:TOO: }
./chip-tool descriptor read device-list 1 6
Expand Down
Loading

0 comments on commit 0006f07

Please sign in to comment.