Skip to content

Commit

Permalink
Added PICS Condition (#20417)
Browse files Browse the repository at this point in the history
* Added PICS condition

* Added Auto genearted file

* Restyled by whitespace

* Restyled by clang-format

* removed unused PICS values

* Added Auto generated files

* Restyled by clang-format

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Aug 10, 2022
1 parent a145879 commit 1000908
Show file tree
Hide file tree
Showing 66 changed files with 6,989 additions and 2,804 deletions.
1,419 changes: 1,413 additions & 6 deletions src/app/tests/suites/certification/PICS.yaml

Large diffs are not rendered by default.

28 changes: 18 additions & 10 deletions src/app/tests/suites/certification/Test_TC_BINFO_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ tests:
value: nodeId

- label: "Query Data Model Revision"
PICS: BINFO.S.A0000
command: "readAttribute"
attribute: "DataModelRevision"
response:
constraints:
type: uint16

- label: "Query Vendor Name"
PICS: BINFO.S.A0001
command: "readAttribute"
attribute: "VendorName"
response:
Expand All @@ -45,13 +47,15 @@ tests:
maxLength: 32

- label: "Query VendorID"
PICS: BINFO.S.A0002
command: "readAttribute"
attribute: "VendorID"
response:
constraints:
type: uint16

- label: "Query Product Name"
PICS: BINFO.S.A0003
command: "readAttribute"
attribute: "ProductName"
response:
Expand All @@ -60,13 +64,15 @@ tests:
maxLength: 32

- label: "Query ProductID"
PICS: BINFO.S.A0004
command: "readAttribute"
attribute: "ProductID"
response:
constraints:
type: uint16

- label: "Query Node Label"
PICS: BINFO.S.A0005
command: "readAttribute"
attribute: "NodeLabel"
response:
Expand All @@ -75,6 +81,7 @@ tests:
maxLength: 32

- label: "Query User Location"
PICS: BINFO.S.A0006
command: "readAttribute"
attribute: "Location"
response:
Expand All @@ -83,13 +90,15 @@ tests:
maxLength: 16

- label: "Query HardwareVersion"
PICS: BINFO.S.A0007
command: "readAttribute"
attribute: "HardwareVersion"
response:
constraints:
type: uint16

- label: "Query HardwareVersionString"
PICS: BINFO.S.A0008
command: "readAttribute"
attribute: "HardwareVersionString"
response:
Expand All @@ -109,7 +118,7 @@ tests:
[1654069233.033902][11164:11169] CHIP:EM: Sending Standalone Ack for MessageCounter:3270959 on exchange 29106i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
PICS: PICS_USER_PROMPT && BINFO.S.A000a
arguments:
values:
- name: "message"
Expand All @@ -130,7 +139,7 @@ tests:
[1640336849.202479][14335:14340] CHIP:TOO: Basic.ManufacturingDate response: 20210614123456ZZ
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
PICS: PICS_USER_PROMPT && BINFO.S.A000b
arguments:
values:
- name: "message"
Expand All @@ -141,8 +150,7 @@ tests:
- label: "Query PartNumber"
command: "readAttribute"
attribute: "PartNumber"
PICS: PART_NUM
optional: true
PICS: BINFO.S.A000c
response:
constraints:
type: string
Expand All @@ -161,7 +169,7 @@ tests:
[1640337847.187868][14399:14404] CHIP:TOO: Basic.ProductURL response:
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
PICS: PICS_USER_PROMPT && BINFO.S.A000d
arguments:
values:
- name: "message"
Expand All @@ -170,43 +178,43 @@ tests:
value: "y"

- label: "Query ProductLabel"
PICS: BINFO.S.A000e
command: "readAttribute"
attribute: "ProductLabel"
optional: true
response:
constraints:
type: string
maxLength: 64

- label: "Query SerialNumber"
PICS: BINFO.S.A000f
command: "readAttribute"
attribute: "SerialNumber"
optional: true
response:
constraints:
type: string
maxLength: 32

- label: "Query LocalConfigDisabled"
PICS: BINFO.S.A0010
command: "readAttribute"
attribute: "LocalConfigDisabled"
optional: true
response:
constraints:
type: boolean

- label: "Query Reachable"
PICS: BINFO.S.A0011
command: "readAttribute"
attribute: "Reachable"
optional: true
response:
constraints:
type: boolean

- label: "Query UniqueID"
PICS: BINFO.S.A0012
command: "readAttribute"
attribute: "UniqueID"
optional: true
response:
constraints:
type: string
Expand Down
41 changes: 38 additions & 3 deletions src/app/tests/suites/certification/Test_TC_BINFO_2_4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default

name: 11.2.4. [TC-BINFO-2.4] Events [DUT-Client]
name: 3.1.4. [TC-BINFO-2.4] Basic Information Cluster Events [DUT - Controller]

config:
nodeId: 0x12344321
Expand Down Expand Up @@ -45,9 +45,27 @@ tests:
[1651229405.704707][2825:2825] CHIP:DMG: isFabricFiltered = true,
[1651229405.704737][2825:2825] CHIP:DMG: InteractionModelRevision = 1
[1651229405.704766][2825:2825] CHIP:DMG: },
On TH side:
" ./chip-tool basic read-event start-up 1 0
[1646996282.798986][2283:2288] CHIP:DMG:
[1646996282.799030][2283:2288] CHIP:DMG: SuppressResponse = true,
[1646996282.799075][2283:2288] CHIP:DMG: InteractionModelRevision = 1
[1646996282.799117][2283:2288] CHIP:DMG: }
[1646996282.799379][2283:2288] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000
[1646996282.799425][2283:2288] CHIP:TOO: Event number: 0
[1646996282.799465][2283:2288] CHIP:TOO: Priority: Critical
[1646996282.799505][2283:2288] CHIP:TOO: Timestamp: 429117
[1646996282.799725][2283:2288] CHIP:TOO: StartUp: {
[1646996282.799787][2283:2288] CHIP:TOO: SoftwareVersion: 0
[1646996282.799832][2283:2288] CHIP:TOO: }"
disabled: true

- label: "Simulate a Shut down on the TH"
PICS: BINFO.C.E01
verification: |
1. Launch chip-tool into interactive mode with the command ./chip-tool interactive start
Expand Down Expand Up @@ -86,7 +104,17 @@ tests:

- label: "Simulate a Factory Reset the TH"
verification: |
./chip-tool basic read-event leave 1 0
To verify leave event follow the below commands
1. ./chip-tool interactive start
2. basic subscribe-event leave 1 100 1 0
3. operationalcredentials remove-fabric 1 1 0
[1655369668.996192][2323:2328] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0002
[1655369668.996235][2323:2328] CHIP:TOO: Event number: 2
[1655369668.996273][2323:2328] CHIP:TOO: Priority: Info
[1655369668.996311][2323:2328] CHIP:TOO: Timestamp: 659361
[1655369668.998931][2323:2328] CHIP:TOO: Leave: {
[1655369668.998986][2323:2328] CHIP:TOO: }
disabled: true

- label: "Simulate a reboot on the TH"
Expand Down Expand Up @@ -116,6 +144,13 @@ tests:
disabled: true

- label: "Simulate a Reachable attribute change on the TH"
PICS: BINFO.C.E03
verification: |
./chip-tool basic read-event reachable-changed 1 0
./chip-tool basic read-event reachable-changed 1 0
[1655369993.433630][2377:2382] CHIP:DMG: ReportDataMessage =
[1655369993.433667][2377:2382] CHIP:DMG: {
[1655369993.433699][2377:2382] CHIP:DMG: SuppressResponse = true,
[1655369993.433742][2377:2382] CHIP:DMG: InteractionModelRevision = 1
[1655369993.433775][2377:2382] CHIP:DMG: }
disabled: true
Loading

0 comments on commit 1000908

Please sign in to comment.