blob: e86f7dc90f72631b3eb81c1775569aec318f5dc3 [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.10.1. [TC-SU-4.1] Verifying Cluster Attributes on OTA-R(DUT)
PICS:
- MCORE.OTA.Requestor
config:
nodeId: 0x12344321
cluster: "Basic"
endpoint: 0
tests:
- label:
"TH sends a write request for the DefaultOTAProviders Attribute on the
first fabric to the DUT. TH2 is set as the default Provider for the
fabric."
verification: |
./chip-tool otasoftwareupdaterequestor write default-ota-providers "[{"fabricIndex": 1, "providerNodeID": 3735928559, "endpoint": 0}]" 0x0000001234567890 0
verify success response on chip-tool logs:
status = 0x00 (SUCCESS),
disabled: true
- label:
"TH sends a read request to read the DefaultOTAProviders Attribute on
the first fabric to the DUT."
verification: |
./chip-tool otasoftwareupdaterequestor read default-ota-providers 0x1234567890 0
verify on chip-tool logs:
[1651277342848] [26860:35431852] CHIP: [TOO] DefaultOtaProviders: 1 entries
[1651277342848] [26860:35431852] CHIP: [TOO] [1]: {
[1651277342848] [26860:35431852] CHIP: [TOO] ProviderNodeID: 1
[1651277342848] [26860:35431852] CHIP: [TOO] Endpoint: 0
[1651277342848] [26860:35431852] CHIP: [TOO] FabricIndex: 1
[1651277342848] [26860:35431852] CHIP: [TOO] }
disabled: true
- label:
"TH sends a write request for the DefaultOTAProviders Attribute on the
second fabric to the DUT. TH3 is set as the default Provider for the
fabric."
verification: |
./chip-tool otasoftwareupdaterequestor write default-ota-providers "[{"fabricIndex": 2, "providerNodeID": 1, "endpoint": 0}]" 0x858 0 --commissioner-name beta
verify success response in chip-tool logs:
status = 0x00 (SUCCESS),
disabled: true
- label:
"TH sends a read request to read the DefaultOTAProviders Attribute on
the first and second fabric to the DUT."
verification: |
./chip-tool otasoftwareupdaterequestor read default-ota-providers 0x1234567890 0
verify on chip-tool logs:
[1651277342848] [26860:35431852] CHIP: [TOO] DefaultOtaProviders: 1 entries
[1651277342848] [26860:35431852] CHIP: [TOO] [1]: {
[1651277342848] [26860:35431852] CHIP: [TOO] ProviderNodeID: 1
[1651277342848] [26860:35431852] CHIP: [TOO] Endpoint: 0
[1651277342848] [26860:35431852] CHIP: [TOO] FabricIndex: 1
[1651277342848] [26860:35431852] CHIP: [TOO] }
./chip-tool otasoftwareupdaterequestor read default-ota-providers 0x858 0 --commissioner-name beta
verify on chip-tool logs:
[1651277543492] [26864:35434761] CHIP: [TOO] DefaultOtaProviders: 1 entries
[1651277543492] [26864:35434761] CHIP: [TOO] [1]: {
[1651277543492] [26864:35434761] CHIP: [TOO] ProviderNodeID: 5
[1651277543492] [26864:35434761] CHIP: [TOO] Endpoint: 0
[1651277543492] [26864:35434761] CHIP: [TOO] FabricIndex: 2
[1651277543492] [26864:35434761] CHIP: [TOO] }
disabled: true
- label:
"TH sends a write request for the DefaultOTAProviders Attribute on the
first fabric to the DUT. TH4 is the first Provider location and TH2 is
the second Provider location in the same write request on the first
fabric. TH sends a read request to read the DefaultOTAProviders
Attribute on the first and second fabric to the DUT."
verification: |
./chip-tool otasoftwareupdaterequestor write default-ota-providers "[{"fabricIndex": 1, "providerNodeID": 10, "endpoint": 0}, {"fabricIndex": 1, "providerNodeID": 20, "endpoint": 0}]" 0x0000001234567890 0
verify on chip-tool logs:
[1651278243153] [27005:35448520] CHIP: [TOO] Response Failure: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR)
./chip-tool otasoftwareupdaterequestor read default-ota-providers 0x1234567890 0
verify on chip-tool logs:
[1651277342848] [26860:35431852] CHIP: [TOO] DefaultOtaProviders: 1 entries
[1651277342848] [26860:35431852] CHIP: [TOO] [1]: {
[1651277342848] [26860:35431852] CHIP: [TOO] ProviderNodeID: 10
[1651277342848] [26860:35431852] CHIP: [TOO] Endpoint: 0
[1651277342848] [26860:35431852] CHIP: [TOO] FabricIndex: 1
[1651277342848] [26860:35431852] CHIP: [TOO] }
chip-tool otasoftwareupdaterequestor read default-ota-providers 0x858 0 --commissioner-name beta
verify on chip-tool logs:
[1651277543492] [26864:35434761] CHIP: [TOO] DefaultOtaProviders: 1 entries
[1651277543492] [26864:35434761] CHIP: [TOO] [1]: {
[1651277543492] [26864:35434761] CHIP: [TOO] ProviderNodeID: 5
[1651277543492] [26864:35434761] CHIP: [TOO] Endpoint: 0
[1651277543492] [26864:35434761] CHIP: [TOO] FabricIndex: 2
[1651277543492] [26864:35434761] CHIP: [TOO] }
disabled: true
- label:
"TH sends a write request for the DefaultOTAProviders Attribute with
an empty provider list on the second fabric to the DUT. TH sends a
read request to read the DefaultOTAProviders Attribute on the first
and second fabric to the DUT."
verification: |
chip-tool otasoftwareupdaterequestor write default-ota-providers "[]" 0x858 0 --commissioner-name beta
verify on chip-tool logs:
status = 0x00 (SUCCESS),
./chip-tool otasoftwareupdaterequestor read default-ota-providers 0x1234567890 0
verify on chip-tool logs:
[1651277342848] [26860:35431852] CHIP: [TOO] DefaultOtaProviders: 1 entries
[1651277342848] [26860:35431852] CHIP: [TOO] [1]: {
[1651277342848] [26860:35431852] CHIP: [TOO] ProviderNodeID: 10
[1651277342848] [26860:35431852] CHIP: [TOO] Endpoint: 0
[1651277342848] [26860:35431852] CHIP: [TOO] FabricIndex: 1
[1651277342848] [26860:35431852] CHIP: [TOO] }
./chip-tool otasoftwareupdaterequestor read default-ota-providers 0x858 0 --commissioner-name beta
verify on chip-tool logs:
[1651280268033] [27804:35481732] CHIP: [TOO] DefaultOtaProviders: 0 entries
disabled: true
- label:
"TH sends a read request to read the UpdatePossible attribute from the
DUT."
verification: |
./chip-tool otasoftwareupdaterequestor read update-possible 0x1234567890 0
where 0x1234567890 is OTA Requestor node ID
Verify update-possible on the chip-tool logs is set to True:
[1645822694702] [22599:21229305] CHIP: [DMG] ReportDataMessage =
[1645822694702] [22599:21229305] CHIP: [DMG] {
[1645822694702] [22599:21229305] CHIP: [DMG] AttributeReportIBs =
[1645822694702] [22599:21229305] CHIP: [DMG] [
[1645822694702] [22599:21229305] CHIP: [DMG] AttributeReportIB =
[1645822694702] [22599:21229305] CHIP: [DMG] {
[1645822694702] [22599:21229305] CHIP: [DMG] AttributeDataIB =
[1645822694702] [22599:21229305] CHIP: [DMG] {
[1645822694702] [22599:21229305] CHIP: [DMG] DataVersion = 0x3873a963,
[1645822694702] [22599:21229305] CHIP: [DMG] AttributePathIB =
[1645822694702] [22599:21229305] CHIP: [DMG] {
[1645822694702] [22599:21229305] CHIP: [DMG] Endpoint = 0x0,
[1645822694702] [22599:21229305] CHIP: [DMG] Cluster = 0x2a,
[1645822694702] [22599:21229305] CHIP: [DMG] Attribute = 0x0000_0001,
[1645822694702] [22599:21229305] CHIP: [DMG] }
[1645822694702] [22599:21229305] CHIP: [DMG]
[1645822694702] [22599:21229305] CHIP: [DMG] Data = true,
[1645822694702] [22599:21229305] CHIP: [DMG] },
[1645822694702] [22599:21229305] CHIP: [DMG]
[1645822694702] [22599:21229305] CHIP: [DMG] },
[1645822694702] [22599:21229305] CHIP: [DMG]
[1645822694702] [22599:21229305] CHIP: [DMG] ],
[1645822694702] [22599:21229305] CHIP: [DMG]
[1645822694702] [22599:21229305] CHIP: [DMG] SuppressResponse = true,
[1645822694702] [22599:21229305] CHIP: [DMG] InteractionModelRevision = 1
[1645822694702] [22599:21229305] CHIP: [DMG] }
disabled: true
- label:
"TH sends a read request to read the UpdateState attribute from the
DUT"
verification: |
./chip-tool otasoftwareupdaterequestor read update-state 0x1234567890 0
where 0x1234567890 is OTA Requestor node ID
verify UpdateState value on chip-tool logs as 1:
Verify that the value is set to one of the valid attribute values based on the current update state on the chip-tool logs
[1655444388.600153][6051:6056] CHIP:DMG: ReportDataMessage =
[1655444388.600204][6051:6056] CHIP:DMG: {
[1655444388.600233][6051:6056] CHIP:DMG: AttributeReportIBs =
[1655444388.600274][6051:6056] CHIP:DMG: [
[1655444388.600318][6051:6056] CHIP:DMG: AttributeReportIB =
[1655444388.600375][6051:6056] CHIP:DMG: {
[1655444388.600410][6051:6056] CHIP:DMG: AttributeDataIB =
[1655444388.600461][6051:6056] CHIP:DMG: {
[1655444388.600505][6051:6056] CHIP:DMG: DataVersion = 0xbaa8e8e3,
[1655444388.600560][6051:6056] CHIP:DMG: AttributePathIB =
[1655444388.600605][6051:6056] CHIP:DMG: {
[1655444388.600662][6051:6056] CHIP:DMG: Endpoint = 0x0,
[1655444388.600718][6051:6056] CHIP:DMG: Cluster = 0x2a,
[1655444388.600764][6051:6056] CHIP:DMG: Attribute = 0x0000_0002,
[1655444388.600819][6051:6056] CHIP:DMG: }
[1655444388.600876][6051:6056] CHIP:DMG:
[1655444388.600922][6051:6056] CHIP:DMG: Data = 1,
[1655444388.600975][6051:6056] CHIP:DMG: },
[1655444388.601031][6051:6056] CHIP:DMG:
[1655444388.601069][6051:6056] CHIP:DMG: },
[1655444388.601120][6051:6056] CHIP:DMG:
[1655444388.601153][6051:6056] CHIP:DMG: ],
[1655444388.601207][6051:6056] CHIP:DMG:
[1655444388.601242][6051:6056] CHIP:DMG: SuppressResponse = true,
[1655444388.601286][6051:6056] CHIP:DMG: InteractionModelRevision = 1
[1655444388.601318][6051:6056] CHIP:DMG: }
[1655444388.601501][6051:6056] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002A Attribute 0x0000_0002 DataVersion: 3131631843
[1655444388.601611][6051:6056] CHIP:TOO: UpdateState: 1
disabled: true
- label:
"DUT should start initiating the Software update process. While the
DUT is downloading the image, TH sends a read request to read the
UpdateStateProgress attribute from the DUT"
verification: |
./chip-tool otasoftwareupdaterequestor read update-state-progress 0x1234567890 0
where 0x1234567890 is OTA Requestor node ID
Verify that the field value is null if no ongoing update on the chip-tool logs
[1645823750592] [22938:21245247] CHIP: [DMG] ReportDataMessage =
[1645823750592] [22938:21245247] CHIP: [DMG] {
[1645823750592] [22938:21245247] CHIP: [DMG] AttributeReportIBs =
[1645823750592] [22938:21245247] CHIP: [DMG] [
[1645823750592] [22938:21245247] CHIP: [DMG] AttributeReportIB =
[1645823750592] [22938:21245247] CHIP: [DMG] {
[1645823750592] [22938:21245247] CHIP: [DMG] AttributeDataIB =
[1645823750592] [22938:21245247] CHIP: [DMG] {
[1645823750592] [22938:21245247] CHIP: [DMG] DataVersion = 0x3873a963,
[1645823750592] [22938:21245247] CHIP: [DMG] AttributePathIB =
[1645823750592] [22938:21245247] CHIP: [DMG] {
[1645823750592] [22938:21245247] CHIP: [DMG] Endpoint = 0x0,
[1645823750592] [22938:21245247] CHIP: [DMG] Cluster = 0x2a,
[1645823750592] [22938:21245247] CHIP: [DMG] Attribute = 0x0000_0003,
[1645823750592] [22938:21245247] CHIP: [DMG] }
[1645823750592] [22938:21245247] CHIP: [DMG]
[1645823750592] [22938:21245247] CHIP: [DMG] Data = NULL
[1645823750592] [22938:21245247] CHIP: [DMG] },
[1645823750592] [22938:21245247] CHIP: [DMG]
[1645823750592] [22938:21245247] CHIP: [DMG] },
[1645823750592] [22938:21245247] CHIP: [DMG]
[1645823750592] [22938:21245247] CHIP: [DMG] ],
[1645823750592] [22938:21245247] CHIP: [DMG]
[1645823750592] [22938:21245247] CHIP: [DMG] SuppressResponse = true,
[1645823750592] [22938:21245247] CHIP: [DMG] InteractionModelRevision = 1
[1645823750592] [22938:21245247] CHIP: [DMG] }
Verify that the field value is anything between 1 to 100 for an ongoing update on the chip-tool logs
[1645823829292] [22944:21246546] CHIP: [DMG] ReportDataMessage =
[1645823829292] [22944:21246546] CHIP: [DMG] {
[1645823829292] [22944:21246546] CHIP: [DMG] AttributeReportIBs =
[1645823829292] [22944:21246546] CHIP: [DMG] [
[1645823829292] [22944:21246546] CHIP: [DMG] AttributeReportIB =
[1645823829292] [22944:21246546] CHIP: [DMG] {
[1645823829292] [22944:21246546] CHIP: [DMG] AttributeDataIB =
[1645823829292] [22944:21246546] CHIP: [DMG] {
[1645823829292] [22944:21246546] CHIP: [DMG] DataVersion = 0x3873a966,
[1645823829292] [22944:21246546] CHIP: [DMG] AttributePathIB =
[1645823829292] [22944:21246546] CHIP: [DMG] {
[1645823829292] [22944:21246546] CHIP: [DMG] Endpoint = 0x0,
[1645823829292] [22944:21246546] CHIP: [DMG] Cluster = 0x2a,
[1645823829292] [22944:21246546] CHIP: [DMG] Attribute = 0x0000_0003,
[1645823829292] [22944:21246546] CHIP: [DMG] }
[1645823829292] [22944:21246546] CHIP: [DMG]
[1645823829292] [22944:21246546] CHIP: [DMG] Data = 20,
[1645823829292] [22944:21246546] CHIP: [DMG] },
[1645823829292] [22944:21246546] CHIP: [DMG]
[1645823829292] [22944:21246546] CHIP: [DMG] },
[1645823829292] [22944:21246546] CHIP: [DMG]
[1645823829292] [22944:21246546] CHIP: [DMG] ],
[1645823829292] [22944:21246546] CHIP: [DMG]
[1645823829292] [22944:21246546] CHIP: [DMG] SuppressResponse = true,
[1645823829292] [22944:21246546] CHIP: [DMG] InteractionModelRevision = 1
[1645823829292] [22944:21246546] CHIP: [DMG] }
disabled: true