blob: 8eba3aa38999a5c013ee49260d0ddb58a36ca179 [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.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default
name: 3.2.1. [TC-FLABEL-2.1] Fixed Label cluster [DUT-server]
PICS:
- FLABEL.S
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label: "TH reads LabelList from the DUT"
PICS: FLABEL.S.A0000
verification: |
./chip-tool fixedlabel read label-list 1 0
On TH(chip-tool), verify that DUT responds with labellist empty or has one or more entries, each entry should contain label and value field
[1651124649.820293][2819:2824] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0040 Attribute 0x0000_0000 DataVersion: 3688229931
[1651124649.820478][2819:2824] CHIP:TOO: label list: 4 entries
[1651124649.820534][2819:2824] CHIP:TOO: [1]: {
[1651124649.820570][2819:2824] CHIP:TOO: Label: room
[1651124649.820602][2819:2824] CHIP:TOO: Value: bedroom 2
[1651124649.820636][2819:2824] CHIP:TOO: }
[1651124649.820676][2819:2824] CHIP:TOO: [2]: {
[1651124649.820709][2819:2824] CHIP:TOO: Label: orientation
[1651124649.820741][2819:2824] CHIP:TOO: Value: North
[1651124649.820773][2819:2824] CHIP:TOO: }
[1651124649.820812][2819:2824] CHIP:TOO: [3]: {
[1651124649.820845][2819:2824] CHIP:TOO: Label: floor
[1651124649.820875][2819:2824] CHIP:TOO: Value: 2
[1651124649.820906][2819:2824] CHIP:TOO: }
[1651124649.820945][2819:2824] CHIP:TOO: [4]: {
[1651124649.820977][2819:2824] CHIP:TOO: Label: direction
[1651124649.821008][2819:2824] CHIP:TOO: Value: up
[1651124649.821039][2819:2824] CHIP:TOO: }
[1651124649.821193][2819:2824] CHIP:EM: Sending Standalone Ack for MessageCounter:2439070 on exchange 10798i
disabled: true
- label:
"TH tries to write LabelList attribute of the DUT by setting Label =
Test_Label, Value= Test_Value"
PICS: FLABEL.S.A0000
verification: |
./chip-tool fixedlabel write-by-id 0x00 "["label","Testlabel", "value","testvalue"]" 1 0
On TH(chip-tool), Verify the status code as UNSUPPORTED_WRITE
[1657629968.892879][2505:2510] CHIP:DMG: WriteResponseMessage =
[1657629968.892909][2505:2510] CHIP:DMG: {
[1657629968.892937][2505:2510] CHIP:DMG: AttributeStatusIBs =
[1657629968.892975][2505:2510] CHIP:DMG: [
[1657629968.893005][2505:2510] CHIP:DMG: AttributeStatusIB =
[1657629968.893043][2505:2510] CHIP:DMG: {
[1657629968.893077][2505:2510] CHIP:DMG: AttributePathIB =
[1657629968.893119][2505:2510] CHIP:DMG: {
[1657629968.893160][2505:2510] CHIP:DMG: Endpoint = 0x0,
[1657629968.893205][2505:2510] CHIP:DMG: Cluster = 0x40,
[1657629968.893247][2505:2510] CHIP:DMG: Attribute = 0x0000_0000,
[1657629968.893286][2505:2510] CHIP:DMG: }
[1657629968.893329][2505:2510] CHIP:DMG:
[1657629968.893370][2505:2510] CHIP:DMG: StatusIB =
[1657629968.893412][2505:2510] CHIP:DMG: {
[1657629968.893454][2505:2510] CHIP:DMG: status = 0x88 (UNSUPPORTED_WRITE),
[1657629968.893554][2505:2510] CHIP:DMG: },
[1657629968.893594][2505:2510] CHIP:DMG:
[1657629968.893626][2505:2510] CHIP:DMG: },
[1657629968.893662][2505:2510] CHIP:DMG:
[1657629968.893692][2505:2510] CHIP:DMG: ],
[1657629968.893729][2505:2510] CHIP:DMG:
[1657629968.893758][2505:2510] CHIP:DMG: InteractionModelRevision = 1
[1657629968.893787][2505:2510] CHIP:DMG: }
[1657629968.893871][2505:2510] CHIP:DMG: WriteClient moving to [AwaitingDe]
[1657629968.893911][2505:2510] CHIP:TOO: Response Failure: IM Error 0x00000588: General error: 0x88 (UNSUPPORTED_WRITE)
disabled: true
- label: "TH reads LabelList from the DUT"
PICS: FLABEL.S.A0000
verification: |
./chip-tool fixedlabel read label-list 1 0
On TH(all-clusters-app) Verify that the LabelList value is same as value from step 1
[1651124649.820293][2819:2824] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0040 Attribute 0x0000_0000 DataVersion: 3688229931
[1651124649.820478][2819:2824] CHIP:TOO: label list: 4 entries
[1651124649.820534][2819:2824] CHIP:TOO: [1]: {
[1651124649.820570][2819:2824] CHIP:TOO: Label: room
[1651124649.820602][2819:2824] CHIP:TOO: Value: bedroom 2
[1651124649.820636][2819:2824] CHIP:TOO: }
[1651124649.820676][2819:2824] CHIP:TOO: [2]: {
[1651124649.820709][2819:2824] CHIP:TOO: Label: orientation
[1651124649.820741][2819:2824] CHIP:TOO: Value: North
[1651124649.820773][2819:2824] CHIP:TOO: }
[1651124649.820812][2819:2824] CHIP:TOO: [3]: {
[1651124649.820845][2819:2824] CHIP:TOO: Label: floor
[1651124649.820875][2819:2824] CHIP:TOO: Value: 2
[1651124649.820906][2819:2824] CHIP:TOO: }
[1651124649.820945][2819:2824] CHIP:TOO: [4]: {
[1651124649.820977][2819:2824] CHIP:TOO: Label: direction
[1651124649.821008][2819:2824] CHIP:TOO: Value: up
[1651124649.821039][2819:2824] CHIP:TOO: }
[1651124649.821193][2819:2824] CHIP:EM: Sending Standalone Ack for MessageCounter:2439070 on exchange 10798i
disabled: true