| # 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: Descriptor Cluster Tests |
| |
| config: |
| cluster: "Descriptor" |
| endpoint: 0 |
| |
| tests: |
| - label: "Read attribute Device list" |
| command: "readAttribute" |
| attribute: "Device List" |
| response: |
| value: [{ deviceTypeId: 1, revision: 1 }] |
| |
| - label: "Read attribute Server list" |
| command: "readAttribute" |
| attribute: "Server List" |
| response: |
| value: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
| # CLUSTER_ID value is dummy 0 since yaml compares only the length of the List. |
| # right now |
| |
| - label: "Read attribute Client list" |
| command: "readAttribute" |
| attribute: "Client List" |
| response: |
| value: [] |
| |
| - label: "Read attribute Parts list" |
| command: "readAttribute" |
| attribute: "Parts List" |
| response: |
| value: [1, 2] |