# 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: 132.2.1. [TC-ACL-2.1] Simple attributes

PICS:
    - ACL.S

config:
    nodeId: 0x12344321
    cluster: "Access Control"
    endpoint: 0

tests:
    - label: "Step 1: TH1 commissions DUT using admin node ID N1"
      cluster: "DelayCommands"
      command: "WaitForCommissionee"
      arguments:
          values:
              - name: "nodeId"
                value: nodeId

    - label:
          "Step 2: TH1 reads DUT Endpoint 0 AccessControl cluster
          SubjectsPerAccessControlEntry attribute"
      PICS: ACL.S.A0002
      command: "readAttribute"
      attribute: "SubjectsPerAccessControlEntry"
      response:
          constraints:
              type: int16u
              minValue: 4
              maxValue: 65535

    - label:
          "Step 3: TH1 reads DUT Endpoint 0 AccessControl cluster
          TargetsPerAccessControlEntry attribute"
      PICS: ACL.S.A0003
      command: "readAttribute"
      attribute: "TargetsPerAccessControlEntry"
      response:
          constraints:
              type: int16u
              minValue: 3
              maxValue: 65535

    - label:
          "Step 4: TH1 reads DUT Endpoint 0 AccessControl cluster
          AccessControlEntriesPerFabric attribute"
      PICS: ACL.S.A0004
      command: "readAttribute"
      attribute: "AccessControlEntriesPerFabric"
      response:
          constraints:
              type: int16u
              minValue: 4
              maxValue: 65535
