|
| 1 | +# Copyright (c) 2024 Project CHIP Authors |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +name: Test Fabric Synchronization condition on Bridged Node Device Type |
| 16 | + |
| 17 | +PICS: |
| 18 | + - MCORE.FS |
| 19 | + |
| 20 | +config: |
| 21 | + nodeId: 0x12344321 |
| 22 | + endpoint: 1 |
| 23 | + endpointCommissionerControl: 0 |
| 24 | + |
| 25 | +tests: |
| 26 | + - label: |
| 27 | + "Read the DeviceTypeList attribute of the Descriptor cluster and check |
| 28 | + whether the device type is Aggregator." |
| 29 | + cluster: "Descriptor" |
| 30 | + command: "readAttribute" |
| 31 | + attribute: "DeviceTypeList" |
| 32 | + response: |
| 33 | + value: [ |
| 34 | + { |
| 35 | + DeviceType: 14, # Aggregator |
| 36 | + }, |
| 37 | + ] |
| 38 | + |
| 39 | + - label: |
| 40 | + "Read the ServerList attribute of the Descriptor cluster and check |
| 41 | + whether the Commissioner Control is present." |
| 42 | + endpoint: endpointCommissionerControl |
| 43 | + cluster: "Descriptor" |
| 44 | + command: "readAttribute" |
| 45 | + attribute: "ServerList" |
| 46 | + response: |
| 47 | + constraints: |
| 48 | + type: list |
| 49 | + contains: [ |
| 50 | + 0x0751, # Commissioner Control Cluster |
| 51 | + ] |
| 52 | + |
| 53 | + - label: |
| 54 | + "Read the SupportedDeviceCategories attribute of the Commissioner |
| 55 | + Control cluster and check whether the FabricSynchronization bit is |
| 56 | + set." |
| 57 | + endpoint: endpointCommissionerControl |
| 58 | + cluster: "CommissionerControl" |
| 59 | + command: "readAttribute" |
| 60 | + attribute: "SupportedDeviceCategories" |
| 61 | + response: |
| 62 | + constraints: |
| 63 | + type: bitmap32 |
| 64 | + hasMasksSet: [0x01] |
0 commit comments