blob: 6a0b3e89ab99e68b29dcbadc932a265eca918ead [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.3.1. [TC-DGGEN-3.1] Attributes observed at client side as DUT
PICS:
- DGGEN.C
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label: "Commission TH to DUT"
verification: |
verification step to be updated.
disabled: true
- label: "DUT reads NetworkInterfaces structure attribute from TH."
PICS: DGGEN.C.A0000
verification: |
./chip-tool generaldiagnostics read network-interfaces 1 0
Verify in DUT as client side: verify that list of supported NetworkInterfaces structures, Structure data includes Name, IsOperational, OffPremiseServicesReachableIPv4, OffPremiseServicesReachableIPv6, HardwareAddress, IPv4Addresses, IPv6Addresses and type.
[1654682355.830733][32933:32938] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0000 DataVersion: 2161135285
[1654682355.830907][32933:32938] CHIP:TOO: NetworkInterfaces: 11 entries
[1654682355.831236][32933:32938] CHIP:TOO: [1]: {
[1654682355.831270][32933:32938] CHIP:TOO: Name: vethf7aa085
[1654682355.831294][32933:32938] CHIP:TOO: IsOperational: TRUE
[1654682355.831331][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv4: null
[1654682355.831356][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv6: null
[1654682355.831380][32933:32938] CHIP:TOO: HardwareAddress: 96C640A56417
[1654682355.831415][32933:32938] CHIP:TOO: IPv4Addresses: 0 entries
[1654682355.831444][32933:32938] CHIP:TOO: IPv6Addresses: 1 entries
[1654682355.831474][32933:32938] CHIP:TOO: [1]: FE8000000000000094C640FFFEA56417
[1654682355.831502][32933:32938] CHIP:TOO: Type: 0
[1654682355.831527][32933:32938] CHIP:TOO: }
[1654682355.831567][32933:32938] CHIP:TOO: [2]: {
[1654682355.831591][32933:32938] CHIP:TOO: Name: veth2598e21
[1654682355.831612][32933:32938] CHIP:TOO: IsOperational: TRUE
[1654682355.831633][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv4: null
[1654682355.831654][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv6: null
[1654682355.831677][32933:32938] CHIP:TOO: HardwareAddress: 3A177D3B1F89
[1654682355.831700][32933:32938] CHIP:TOO: IPv4Addresses: 0 entries
[1654682355.831726][32933:32938] CHIP:TOO: IPv6Addresses: 1 entries
[1654682355.831752][32933:32938] CHIP:TOO: [1]: FE8000000000000038177DFFFE3B1F89
[1654682355.831777][32933:32938] CHIP:TOO: Type: 0
[1654682355.831800][32933:32938] CHIP:TOO: }
[1654682355.831834][32933:32938] CHIP:TOO: [3]: {
[1654682355.831856][32933:32938] CHIP:TOO: Name: veth8b3fd7e
[1654682355.831877][32933:32938] CHIP:TOO: IsOperational: TRUE
[1654682355.831899][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv4: null
[1654682355.831920][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv6: null
[1654682355.831942][32933:32938] CHIP:TOO: HardwareAddress: 866D1837E8EC
[1654682355.831965][32933:32938] CHIP:TOO: IPv4Addresses: 0 entries
[1654682355.831990][32933:32938] CHIP:TOO: IPv6Addresses: 1 entries
[1654682355.832016][32933:32938] CHIP:TOO: [1]: FE80000000000000846D18FFFE37E8EC
[1654682355.832041][32933:32938] CHIP:TOO: Type: 0
[1654682355.832063][32933:32938] CHIP:TOO: }
[1654682355.832096][32933:32938] CHIP:TOO: [4]: {
[1654682355.832119][32933:32938] CHIP:TOO: Name: vethb477521
[1654682355.832140][32933:32938] CHIP:TOO: IsOperational: TRUE
[1654682355.832161][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv4: null
[1654682355.832183][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv6: null
[1654682355.832205][32933:32938] CHIP:TOO: HardwareAddress: 46D8B6E48B90
[1654682355.832228][32933:32938] CHIP:TOO: IPv4Addresses: 0 entries
[1654682355.832253][32933:32938] CHIP:TOO: IPv6Addresses: 1 entries
[1654682355.832280][32933:32938] CHIP:TOO: [1]: FE8000000000000044D8B6FFFEE48B90
[1654682355.832305][32933:32938] CHIP:TOO: Type: 0
[1654682355.832327][32933:32938] CHIP:TOO: }
[1654682355.832362][32933:32938] CHIP:TOO: [5]: {
[1654682355.832385][32933:32938] CHIP:TOO: Name: vethaf676ee
[1654682355.832405][32933:32938] CHIP:TOO: IsOperational: TRUE
[1654682355.832427][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv4: null
[1654682355.832448][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv6: null
[1654682355.832471][32933:32938] CHIP:TOO: HardwareAddress: 9EA9BC908F4D
[1654682355.832493][32933:32938] CHIP:TOO: IPv4Addresses: 0 entries
[1654682355.832518][32933:32938] CHIP:TOO: IPv6Addresses: 1 entries
[1654682355.832545][32933:32938] CHIP:TOO: [1]: FE800000000000009CA9BCFFFE908F4D
[1654682355.832571][32933:32938] CHIP:TOO: Type: 0
[1654682355.832593][32933:32938] CHIP:TOO: }
[1654682355.832629][32933:32938] CHIP:TOO: [6]: {
[1654682355.832651][32933:32938] CHIP:TOO: Name: br-6ab75b625e42
[1654682355.832672][32933:32938] CHIP:TOO: IsOperational: TRUE
[1654682355.832693][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv4: null
[1654682355.832715][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv6: null
[1654682355.832737][32933:32938] CHIP:TOO: HardwareAddress: 0242DF8961A4
[1654682355.832761][32933:32938] CHIP:TOO: IPv4Addresses: 1 entries
[1654682355.832786][32933:32938] CHIP:TOO: [1]: AC130001
[1654682355.832812][32933:32938] CHIP:TOO: IPv6Addresses: 1 entries
[1654682355.832838][32933:32938] CHIP:TOO: [1]: FE800000000000000042DFFFFE8961A4
[1654682355.832863][32933:32938] CHIP:TOO: Type: 0
[1654682355.832884][32933:32938] CHIP:TOO: }
[1654682355.832918][32933:32938] CHIP:TOO: [7]: {
[1654682355.832941][32933:32938] CHIP:TOO: Name: docker0
[1654682355.832962][32933:32938] CHIP:TOO: IsOperational: FALSE
[1654682355.832983][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv4: null
[1654682355.833005][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv6: null
[1654682355.833027][32933:32938] CHIP:TOO: HardwareAddress: 0242F708AABC
[1654682355.833051][32933:32938] CHIP:TOO: IPv4Addresses: 1 entries
[1654682355.833076][32933:32938] CHIP:TOO: [1]: AC110001
[1654682355.833101][32933:32938] CHIP:TOO: IPv6Addresses: 1 entries
[1654682355.833129][32933:32938] CHIP:TOO: [1]: Elided value too large of size 0
[1654682355.833154][32933:32938] CHIP:TOO: Type: 0
[1654682355.833176][32933:32938] CHIP:TOO: }
[1654682355.833229][32933:32938] CHIP:TOO: [8]: {
[1654682355.833254][32933:32938] CHIP:TOO: Name: br-01617d2fb6b6
[1654682355.833275][32933:32938] CHIP:TOO: IsOperational: TRUE
[1654682355.833297][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv4: null
[1654682355.833318][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv6: null
[1654682355.833341][32933:32938] CHIP:TOO: HardwareAddress: 0242261CAA10
[1654682355.833365][32933:32938] CHIP:TOO: IPv4Addresses: 1 entries
[1654682355.833391][32933:32938] CHIP:TOO: [1]: AC120001
[1654682355.833418][32933:32938] CHIP:TOO: IPv6Addresses: 3 entries
[1654682355.833444][32933:32938] CHIP:TOO: [1]: FD006D61747465720000000000000001
[1654682355.833471][32933:32938] CHIP:TOO: [2]: FE80000000000000004226FFFE1CAA10
[1654682355.833607][32933:32938] CHIP:TOO: [3]: FE800000000000000000000000000001
[1654682355.833636][32933:32938] CHIP:TOO: Type: 0
[1654682355.833658][32933:32938] CHIP:TOO: }
[1654682355.833693][32933:32938] CHIP:TOO: [9]: {
[1654682355.833716][32933:32938] CHIP:TOO: Name: wlan0
[1654682355.833737][32933:32938] CHIP:TOO: IsOperational: FALSE
[1654682355.833759][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv4: null
[1654682355.833780][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv6: null
[1654682355.833802][32933:32938] CHIP:TOO: HardwareAddress: E45F016961B3
[1654682355.833825][32933:32938] CHIP:TOO: IPv4Addresses: 0 entries
[1654682355.833850][32933:32938] CHIP:TOO: IPv6Addresses: 0 entries
[1654682355.833874][32933:32938] CHIP:TOO: Type: 1
[1654682355.833896][32933:32938] CHIP:TOO: }
[1654682355.833930][32933:32938] CHIP:TOO: [10]: {
[1654682355.833953][32933:32938] CHIP:TOO: Name: eth0
[1654682355.833973][32933:32938] CHIP:TOO: IsOperational: TRUE
[1654682355.833994][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv4: null
[1654682355.834016][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv6: null
[1654682355.834039][32933:32938] CHIP:TOO: HardwareAddress: E45F016961B1
[1654682355.834062][32933:32938] CHIP:TOO: IPv4Addresses: 1 entries
[1654682355.834087][32933:32938] CHIP:TOO: [1]: C0A80064
[1654682355.834113][32933:32938] CHIP:TOO: IPv6Addresses: 1 entries
[1654682355.834139][32933:32938] CHIP:TOO: [1]: FE80000000000000E65F01FFFE6961B1
[1654682355.834164][32933:32938] CHIP:TOO: Type: 2
[1654682355.834186][32933:32938] CHIP:TOO: }
[1654682355.834220][32933:32938] CHIP:TOO: [11]: {
[1654682355.834243][32933:32938] CHIP:TOO: Name: lo
[1654682355.834264][32933:32938] CHIP:TOO: IsOperational: TRUE
[1654682355.834286][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv4: null
[1654682355.834307][32933:32938] CHIP:TOO: OffPremiseServicesReachableIPv6: null
[1654682355.834329][32933:32938] CHIP:TOO: HardwareAddress: 000000000000
[1654682355.834353][32933:32938] CHIP:TOO: IPv4Addresses: 1 entries
[1654682355.834378][32933:32938] CHIP:TOO: [1]: 7F000001
[1654682355.834403][32933:32938] CHIP:TOO: IPv6Addresses: 1 entries
[1654682355.834429][32933:32938] CHIP:TOO: [1]: 00000000000000000000000000000001
[1654682355.834454][32933:32938] CHIP:TOO: Type: 0
[1654682355.834476][32933:32938] CHIP:TOO: }
[1654682355.834653][32933:32938] CHIP:EM: Sending Standalone Ack for MessageCounter:226724572 on exchange 53960i
disabled: true
- label:
"DUT reads a RebootCount attribute value from TH. Then a TH (node)
gets rebooted more than 2 times."
PICS: DGGEN.C.A0001
verification: |
./chip-tool generaldiagnostics read reboot-count 1 0
Verify in DUT as client side: verify that RebootCount attribute data type must be UINT16 and the count should match with the number of rebooted times.
[1650873646.874760][19568:19573] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0001 DataVersion: 2777668989
[1650873646.874854][19568:19573] CHIP:TOO: RebootCount: 2
[1650873646.874974][19568:19573] CHIP:EM: Sending Standalone Ack for MessageCounter:3185095 on exchange 6631i
disabled: true
- label:
"TH reboots and DUT reads a UpTime attribute value of TH since some
arbitrary start time of TH rebooting."
PICS: DGGEN.C.A0002
verification: |
./chip-tool generaldiagnostics read up-time 1 0
Verify in DUT as client side: Verify that UpTime attribute data type must be UINT64 and the time duratoin should be represented in seconds since DUT (node) has been rebooted.
[1650877936.462457][2360:2365] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0002 DataVersion: 3419113433
[1650877936.462538][2360:2365] CHIP:TOO: UpTime: 368
disabled: true
- label: "DUT reads a TotalOperationalHours attribute value from TH."
PICS: DGGEN.C.A0003
verification: |
./chip-tool generaldiagnostics read total-operational-hours 1 0
Verify in DUT as client side: verify that TotalOperationalHours attribute data type must be UINT32 and the value indicates the number of hours the node has been operational since DUT (node) has been rebooted.
[1650877969.904265][2369:2374] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0003 DataVersion: 3419113433
[1650877969.904339][2369:2374] CHIP:TOO: TotalOperationalHours: 0
disabled: true
- label:
"TH undergoes a reboot process. DUT reads a attribute value from TH."
PICS: DGGEN.C.A0004
verification: |
./chip-tool generaldiagnostics read boot-reasons 1 0
Verify in DUT as client side: verify that bootreason attribute data type must match the value listed in Table 105 BootReason ENUM table in spec
[1650877998.693012][2377:2382] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0004 DataVersion: 3419113433
[1650877998.693118][2377:2382] CHIP:TOO: BootReasons: 0
disabled: true
- label:
"DUT reads ActiveHardwareFaults attribute value from TH. Subscription
is possible option for this attribute."
PICS: DGGEN.C.A0005
verification: |
./chip-tool generaldiagnostics read active-hardware-faults 1 0
Verify in DUT as client side: verify that ActiveHardwareFaults attribute the attribute response should be empty. But when a hardware fault occurs, the return attribute value must match the value listed in the HardwareFault ENUM table 11.11.6.1
[1650878034.133792][2385:2390] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0005 DataVersion: 3419113433
[1650878034.133891][2385:2390] CHIP:TOO: ActiveHardwareFaults: 0 entries
disabled: true
- label:
"DUT reads ActiveRadioFaults attribute value from TH. Subscription is
possible option for this attribute."
PICS: DGGEN.C.A0006
verification: |
./chip-tool generaldiagnostics read active-radio-faults 1 0
Verify in DUT as client side:verify that the attribute response should be empty. But when a radio fault occurs, the return attribute value must match the value listed in the RadioFault ENUM table. 11.11.6.2
[1650878056.266314][2391:2396] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0006 DataVersion: 3419113433
[1650878056.266428][2391:2396] CHIP:TOO: ActiveRadioFaults: 0 entries
disabled: true
- label:
"DUT reads ActiveNetworkFaults attribute value from TH. Subscription
is possible option for this attribute."
PICS: DGGEN.C.A0007
verification: |
./chip-tool generaldiagnostics read active-network-faults 1 0
Verify in DUT as client side: verify that ActiveNetworkFaults attribute value attribute response should be empty. But when a network fault occurs, the return attribute value must match the value listed in the NetworkFault ENUM ta
[1650878077.694616][2399:2404] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0007 DataVersion: 3419113433
[1650878077.694781][2399:2404] CHIP:TOO: ActiveNetworkFaults: 0 entries
disabled: true
- label:
"TH reads TestEventTriggersEnabled attribute value. If this value is
set True, then a certain test mode will be performed (or triggered)
according to pre-provisioned client and server test mode."
PICS: DGGEN.C.A0008
verification: |
./chip-tool generaldiagnostics read test-event-triggers-enabled 1 0
Verify in DUT as client side: verify that TestEventTriggersEnabled attribute value should be data type bool
[1655188892.957794][2868:2873] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0033 Attribute 0x0000_0008 DataVersion: 3562689442
[1655188892.957869][2868:2873] CHIP:TOO: TestEventTriggersEnabled: FALSE
[1655188892.957999][2868:2873] CHIP:EM: Sending Standalone Ack for MessageCounter:133140817 on exchange 23176i
disabled: true