blob: 51c0a686d8c7814528e9c2daba186ee96c6baa2c [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: 47.2.1. [TC-DGETH-2.1] Attributes [DUT as Server]
PICS:
- DGETH.S
config:
nodeId: 0x12344321
cluster: "Ethernet Network Diagnostics"
endpoint: 0
tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
- label: "Read PHYRate attribute constraints"
PICS: DGETH.S.A0000
command: "readAttribute"
attribute: "PHYRate"
response:
constraints:
type: enum8
minValue: 0
maxValue: 9
- label: "Read FullDuplex attribute constraints"
PICS: DGETH.S.A0001
command: "readAttribute"
attribute: "FullDuplex"
response:
constraints:
type: boolean
#issue #13648
- label: "Read PacketRxCount attribute constraints"
PICS: DGETH.S.A0002
command: "readAttribute"
attribute: "PacketRxCount"
response:
constraints:
type: int64u
- label:
"Read PacketRxCount value from DUT and verify the number of packets
received on ethernet network interface"
verification: |
./chip-tool ethernetnetworkdiagnostics read packet-rx-count 1 0
Verify the value of PacketRxCount is in range uint64 on TH(chip-tool) log
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0002 DataVersion: 3872576452
[1649663623.009973][8103:8108] CHIP:TOO: PacketRxCount: 3322
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && DGETH.S.A0002
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label: "Read PacketTxCount attribute constraints"
PICS: DGETH.S.A0003
command: "readAttribute"
attribute: "PacketTxCount"
response:
constraints:
type: int64u
- label:
"Read PacketTxCount value from DUT and verify the number of packets
received on ethernet network interface"
verification: |
./chip-tool ethernetnetworkdiagnostics read packet-tx-count 1 0
Verify the value of PacketTxCount is in range uint64 on TH(chip-tool) Log
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0003 DataVersion: 3872576452
[1649663793.192934][8117:8122] CHIP:TOO: PacketTxCount: 3220
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && DGETH.S.A0003
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label: "Read TxErrCount attribute constraints"
PICS: DGETH.S.A0004
command: "readAttribute"
attribute: "TxErrCount"
response:
constraints:
type: int64u
- label:
"Read TxErrCount value from DUT and verify value indicates the number
of failed packet transmission on ethernet network interface"
verification: |
./chip-tool ethernetnetworkdiagnostics read tx-err-count 1 0
Verify the value of TxErrCount is in range uint64 on TH(chip-tool) Log
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0004 DataVersion: 3872576452
[1649663843.295395][8123:8128] CHIP:TOO: TxErrCount: 0
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && DGETH.S.A0004
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label: "Read CollisionCount attribute constraints"
PICS: DGETH.S.A0005
command: "readAttribute"
attribute: "CollisionCount"
response:
constraints:
type: int64u
- label:
"Read CollisionCount value from DUT and verify value indicates the
number of collision occurred while transmitting packets on ethernet
network interface"
verification: |
./chip-tool ethernetnetworkdiagnostics read collision-count 1 0
Verify the value of CollisionCount is in range uint64 on TH(chip-tool) Log
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0005 DataVersion: 3872576452
[1649663870.221742][8133:8138] CHIP:TOO: CollisionCount: 0
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && DGETH.S.A0005
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label: "Read OverrunCount attribute constraints"
PICS: DGETH.S.A0006
command: "readAttribute"
attribute: "OverrunCount"
response:
constraints:
type: int64u
- label:
"Read OverrunCount value from DUT and verify value indicates the
number of packets dropped due to lack of buffer memory on ethernet
network interface"
verification: |
./chip-tool ethernetnetworkdiagnostics read overrun-count 1 0
Verify the value of OverrunCount is in range uint64 on TH(chip-tool) Log
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0006 DataVersion: 3872576452
[1649663948.738274][8142:8147] CHIP:TOO: OverrunCount: 0
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && DGETH.S.A0006
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label: "Read CarrierDetect attribute constraints"
PICS: DGETH.S.A0007
command: "readAttribute"
attribute: "CarrierDetect"
response:
constraints:
type: boolean
- label:
"Read CarrierDetect value from DUT and verify value indicates the
presence of carrier detect control signal on ethernet network
interface"
verification: |
./chip-tool ethernetnetworkdiagnostics read carrier-detect 1 0
Verify the value of CarrierDetect is either bool or if the interface is not configured or operational, NULL should be read, this is optional attribute implemented in RPI, may vary based on DUT implementation on TH(chip-tool) Log:
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0007 DataVersion: 3872576452
[1649663972.829304][8149:8154] CHIP:TOO: CarrierDetect: null
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && DGETH.S.A0007
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
- label: "Read TimeSinceReset attribute constraints"
PICS: DGETH.S.A0008
command: "readAttribute"
attribute: "TimeSinceReset"
response:
constraints:
type: int64u
- label:
"Read TimeSinceReset value from DUT and verify the value indicates the
duration of time, in minutes"
verification: |
./chip-tool ethernetnetworkdiagnostics read time-since-reset 1 0
Verify the value of TimeSinceReset is in range uint64, If the interface is not configured or operational, NULL should be read, this is optional attribute implemented in RPI, may vary based on DUT implementation on TH(chip-tool) Log:
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0037 Attribute 0x0000_0008 DataVersion: 3872576452
[1649664046.010810][8158:8163] CHIP:TOO: TimeSinceReset: 5219
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && DGETH.S.A0008
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"