blob: bb25e681c29bcdf4dde109fbc27b83b20193cd85 [file] [log] [blame]
# 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: Test Cluster Constraints Tests
config:
cluster: "Test Cluster"
endpoint: 1
tests:
# Tests for UInt32 attribute
- label: "Write attribute INT32U Value"
command: "writeAttribute"
attribute: "int32u"
arguments:
value: 5
- label: "Read attribute INT32U Value MinValue Constraints"
command: "readAttribute"
attribute: "int32u"
response:
constraints:
minValue: 5
- label: "Read attribute INT32U Value MaxValue Constraints"
command: "readAttribute"
attribute: "int32u"
response:
constraints:
maxValue: 5
- label: "Read attribute INT32U Value NotValue Constraints"
command: "readAttribute"
attribute: "int32u"
response:
constraints:
notValue: 6