blob: 769dc5d3cba3ac31345160e861e058930667b9c8 [file] [log] [blame]
# Copyright (c) 2024 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: 265.1.1. [TC-EEVSEM-1.1] Global Attributes with DUT as Server
PICS:
- EEVSEM.S
config:
nodeId: 0x12344321
cluster: "Energy EVSE Mode"
endpoint: 1
tests:
- label:
"Step 1: Commission DUT to TH (can be skipped if done in a preceding
test)."
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
- label: "Step 2: TH reads from the DUT the ClusterRevision attribute"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 1
constraints:
type: int16u
#https://github.com/project-chip/connectedhomeip/issues/31599
- label: "Step 3: TH reads from the DUT the FeatureMap attribute"
verification: |
./chip-tool energyevsemode read feature-map 1 1
On the TH(Chip-tool) Log, Verify featureMap value is 0 and below is the sample log provided for the raspi platform:
[1707803286.349129][12699:12701] CHIP:DMG: }
[1707803286.349183][12699:12701] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_009D Attribute 0x0000_FFFC DataVersion: 811903427
[1707803286.349202][12699:12701] CHIP:TOO: FeatureMap: 0
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label: "Step 4: TH reads from the DUT the AttributeList attribute"
PICS: PICS_EVENT_LIST_ENABLED
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [0, 1, 65528, 65529, 65530, 65531, 65532, 65533]
- label: "Step 4a: TH reads AttributeList from DUT"
PICS: "!PICS_EVENT_LIST_ENABLED"
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [0, 1, 65528, 65529, 65531, 65532, 65533]
- label:
"Step 4b: TH reads optional attribute (StartUpMode) in AttributeList
from DUT"
PICS: EEVSEM.S.A0002
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [2]
- label: "Step 5: TH reads EventList from DUT"
PICS: PICS_EVENT_LIST_ENABLED
command: "readAttribute"
attribute: "EventList"
response:
value: []
constraints:
type: list
- label: "Step 6: TH reads AcceptedCommandList from DUT"
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: [0]
constraints:
type: list
- label: "Step 7: TH reads GeneratedCommandList from DUT"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: [1]
constraints:
type: list