| # 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. |
| # Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default |
| |
| name: 125.2.1. [TC-G-2.1] Attributes [DUT-Server] |
| |
| PICS: |
| - G.S |
| |
| config: |
| nodeId: 0x12344321 |
| cluster: "Basic" |
| endpoint: 0 |
| |
| tests: |
| - label: "TH reads NameSupport attribute from DUT" |
| PICS: G.S.A0000 |
| verification: | |
| ./chip-tool groups read name-support 1 1 |
| |
| Verify the name support value on the TH Log: |
| |
| [1651217306.461810][2457:2462] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Attribute 0x0000_0000 DataVersion: 745654550 |
| [1651217306.461894][2457:2462] CHIP:TOO: name support: 128(binary:10000000) |
| disabled: true |
| |
| - label: |
| "TH writes NameSupport attribute as 0x80 EXOR the value as read in |
| step 1" |
| verification: | |
| ./chip-tool groups write-by-id 0x0000 126 1 1 |
| |
| Verify the response is UNSUPPORTED_WRITE on the TH Log: |
| |
| [1651217949.041814][2514:2519] CHIP:DMG: } |
| [1651217949.041889][2514:2519] CHIP:TOO: Response Failure: IM Error 0x00000588: General error: 0x88 (UNSUPPORTED_WRITE) |
| disabled: true |
| |
| - label: "TH reads NameSupport attribute from DUT" |
| verification: | |
| ./chip-tool groups read name-support 1 1 |
| |
| Verify the name support value on the TH Log: |
| |
| [1651217306.461810][2457:2462] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0004 Attribute 0x0000_0000 DataVersion: 745654550 |
| [1651217306.461894][2457:2462] CHIP:TOO: name support: 128 |
| disabled: true |