| # 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: Operational Credentials Cluster Tests |
| |
| config: |
| cluster: "Operational Credentials" |
| endpoint: 0 |
| |
| tests: |
| - label: "Read number of supported fabrics" |
| command: "readAttribute" |
| attribute: "SupportedFabrics" |
| response: |
| constraints: |
| type: uint8 |
| minValue: 4 |
| |
| - label: "Read number of commissioned fabrics" |
| command: "readAttribute" |
| attribute: "CommissionedFabrics" |
| response: |
| constraints: |
| type: uint8 |
| minValue: 1 |
| |
| - label: "Read current fabric index" |
| command: "readAttribute" |
| attribute: "CurrentFabricIndex" |
| response: |
| constraints: |
| type: uint8 |
| # 0 is not a valid value, but past that we have no idea what the |
| # other side will claim here. |
| minValue: 1 |
| |
| # This test is currently disabled as it breaks on Darwin. |
| # The test removes the current fabric, and Darwin test runner reuses |
| # the same pairing to run all the tests. Due to that, all subsequent |
| # tests fail. |
| - label: "Remove fabric" |
| disabled: true |
| command: "RemoveFabric" |
| arguments: |
| values: |
| - name: "FabricIndex" |
| value: 1 |