blob: aed9bc9466e30438613680576f8a8441d1ea2d3e [file] [log] [blame]
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: 56.1.1. [TC-DLOG-1.1] Global Attributes with DUT as Server
PICS:
- DLOG.S
config:
nodeId: 0x12344321
cluster: "Diagnostic Logs"
endpoint: 0
tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
- label: "TH reads the ClusterRevision from DUT"
PICS: DLOG.S.Afffd
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 1
constraints:
type: int16u
- label: "TH reads the FeatureMap from DUT"
PICS: DLOG.S.Afffc
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 0
constraints:
type: bitmap32
- label: "TH reads AttributeList from DUT"
PICS: DLOG.S.Afffb
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [65528, 65529, 65530, 65531, 65532, 65533]
#List values range check support https://github.com/project-chip/connectedhomeip/issues/26570
- label:
"TH reads AttributeList attribute from DUT. 1.The list SHALL NOT
contain any additional values in the standard or scoped range:
(0x0000_0000 - 0x0000_4FFF) and (0x0000_F000 - 0x0000_FFFE) 2.The list
MAY contain values in the Manufacturer Extensible Identifier (MEI)
range: (0xXXXX_0000 - 0xXXXX_4FFF), where XXXX is the allowed MEI
range (0x0001 - 0xFFF1), these values SHALL be ignored. 3.The list
SHALL NOT contain any values in the Test Vendor or invalid range:
(0x0000_5000 - 0x0000_EFFF and 0x0000_FFFF), (0xXXXX_5000 -
0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where XXXX is the
allowed MEI range (0x0001 - 0xFFF1)"
verification: |
./chip-tool diagnosticlogs read attribute-list 1 0
On TH(chip-tool), Verify that the DUT response provides a list of supported attributes. This list SHALL include all supported attributes ID values, i.e it should list all mandatory attributes, global attributes (65528, 65529, 65531, 65533) and list may include optional attributes based on DUT Implementation.
[1676282213.422061][3638:3640] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0032 Attribute 0x0000_FFFB DataVersion: 1909711686
[1676282213.422089][3638:3640] CHIP:TOO: AttributeList: 6 entries
[1676282213.422102][3638:3640] CHIP:TOO: [1]: 65528
[1676282213.422113][3638:3640] CHIP:TOO: [2]: 65529
[1676282213.422124][3638:3640] CHIP:TOO: [3]: 65530
[1676282213.422135][3638:3640] CHIP:TOO: [4]: 65531
[1676282213.422145][3638:3640] CHIP:TOO: [5]: 65532
[1676282213.422156][3638:3640] CHIP:TOO: [6]: 65533
[1676282213.422226][3638:3640] CHIP:EM: <<< [E:42829i M:266551039 (Ack:231594444)] (S) Msg TX to 1:000000
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && DLOG.S.Afffb
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label:
"TH reads EventList attribute from DUT. 1.The list MAY contain values
in the Manufacturer Extensible Identifier (MEI) range: (0xXXXX_0000 -
0xXXXX_00FF), where XXXX is the allowed MEI range (0x0001 - 0xFFF1),
these values SHALL be ignored. 2.The list SHALL NOT contain any values
in the Test Vendor or invalid range: (0x0000_0100 - 0x0000_FFFF),
(0xXXXX_0100 - 0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where
XXXX is the allowed MEI range (0x0001 - 0xFFF1)"
verification: |
./chip-tool diagnosticlogs read event-list 1 0
Verify " EventList attribute " consists the list of supported events, which for this cluster should be an empty list on the TH(Chip-tool) Log:
[1676460292.457787][25934:25936] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0032 Attribute 0x0000_FFFA DataVersion: 1490287489
[1676460292.457829][25934:25936] CHIP:TOO: EventList: 0 entries
[1676460292.457878][25934:25936] CHIP:EM: <<< [E:19170i S:29205 M:215468614 (Ack:174747327)] (S) Msg TX to 1:0000000000000001 [110F] --- Type 0000:10 (SecureChannel:StandaloneAck)
[1676460292.457892][25934:25936] CHIP:IN: (S) Sending msg 215468614 on secure session with LSID: 29205
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && DLOG.S.Afffa
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label: "TH reads AcceptedCommandList from DUT"
PICS: DLOG.S.Afff9
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: [0]
constraints:
type: list
- label:
"TH reads AcceptedCommandList attribute from DUT. 1.The list SHALL NOT
contain any additional values in the standard or scoped range:
(0x0000_0000 - 0x0000_00FF). 2.The list MAY contain values in the
Manufacturer Extensible Identifier (MEI) range: (0xXXXX_0000 -
0xXXXX_00FF), where XXXX is the allowed MEI range (0x0001 - 0xFFF1),
these values SHALL be ignored.3.The list SHALL NOT contain any values
in the Test Vendor or invalid range: (0x0000_0100 - 0x0000_FFFF),
(0xXXXX_0100 - 0xXXXX_FFFF) and (0xFFF1_0000 - 0xFFFF_FFFF), where
XXXX is the allowed MEI range (0x0001 - 0xFFF1)"
verification: |
./chip-tool diagnosticlogs read accepted-command-list 1 0
On TH(chip-tool) Verify that the DUT response provides a list of Accepted Command. This list should include the mandatory Command (value 0x00).
[1649670700.139000][3624:3629] CHIP:DMG:
[1649670700.139033][3624:3629] CHIP:DMG: SuppressResponse = true,
[1649670700.139066][3624:3629] CHIP:DMG: InteractionModelRevision = 1
[1649670700.139097][3624:3629] CHIP:DMG: }
[1649670700.139387][3624:3629] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0032 Attribute 0x0000_FFF9 DataVersion: 1216963889
[1649670700.139473][3624:3629] CHIP:TOO: AcceptedCommandList: 1 entries
[1649670700.139528][3624:3629] CHIP:TOO: [1]: 0
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && DLOG.S.Afff9
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label: "TH reads GeneratedCommandList from DUT"
PICS: DLOG.S.Afff8
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: [1]
constraints:
type: list
- label:
"TH reads GeneratedCommandList attribute from DUT. 1.The list MAY
contain values in the Manufacturer Extensible Identifier (MEI) range:
(0xXXXX_0000 - 0xXXXX_00FF), where XXXX is the allowed MEI range
(0x0001 - 0xFFF1), these values SHALL be ignored. 2.The list SHALL NOT
contain any values in the Test Vendor or invalid range: (0x0000_0100 -
0x0000_FFFF), (0xXXXX_0100 - 0xXXXX_FFFF) and (0xFFF1_0000 -
0xFFFF_FFFF), where XXXX is the allowed MEI range (0x0001 - 0xFFF1)"
verification: |
./chip-tool diagnosticlogs read generated-command-list 1 0
On TH(chip-tool), Verify that the DUT response provides a list of Generated Command. This list should include the mandatory Command (value 0x01).
[1659426423.334092][3296:3302] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0032 Attribute 0x0000_FFF8 DataVersion: 2806944860
[1659426423.334191][3296:3302] CHIP:TOO: GeneratedCommandList: 1 entries
[1659426423.334234][3296:3302] CHIP:TOO: [1]: 1
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && DLOG.S.Afff8
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"