Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TC_SETRF: Commodity Tariff cluster test scripts #32937

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
a761c0c
add initial Test_TC_SECA_1_1
dmitrymaslovdsr Jan 11, 2024
71dc5dd
change PICS code from SECA to ECAL
dmitrymaslovdsr Mar 5, 2024
a7c1943
add TC_ECAL_2_1 test script
dmitrymaslovdsr Apr 11, 2024
8a120c7
add feature PICS in steps of Test_TC_ECAL_2_1
dmitrymaslovdsr Apr 12, 2024
8626561
fix reading of feature dependent attributes Test_TC_ECAL_1_1.yaml
dmitrymaslovdsr Apr 12, 2024
0eaf87d
add CalendarPeriods, CurrentPeakPeriod, NextPeakPeriod attributes val…
dmitrymaslovdsr Apr 16, 2024
5baf1ae
change StartDate data type to epoch-s
dmitrymaslovdsr Jun 14, 2024
d789d28
Merge branch 'project-chip:master' into energy-calendar-cluster-test-…
dmitrymaslovdsr Jun 17, 2024
b6c4762
Merge branch 'project-chip:master' into energy-calendar-cluster-test-…
dmitrymaslovdsr Jun 24, 2024
a4b7591
remove TC ECAL 1.1. Global Attributes with {DUT_Server}
dmitrymaslovdsr Jun 24, 2024
2d00e2e
Merge branch 'project-chip:master' into energy-calendar-cluster-test-…
dmitrymaslovdsr Jul 18, 2024
86bab06
Merge branch 'master' into energy-calendar-cluster-test-scripts
andy31415 Oct 11, 2024
9522591
Merge branch 'project-chip:master' into energy-calendar-cluster-test-…
dmitrymaslovdsr Feb 28, 2025
2aea917
Merge branch 'project-chip:master' into energy-calendar-cluster-test-…
dmitrymaslovdsr Feb 28, 2025
d8ef594
Merge branch 'project-chip:master' into energy-calendar-cluster-test-…
dmitrymaslovdsr Mar 3, 2025
a5af4de
add TC-ET-2.1, 2.2, 2.3, 3.1; remove TC_ECAL_2_1
dmitrymaslovdsr Mar 3, 2025
3b203c4
Energy Tariff TCs are updated in context of change to Commodity Tariff
aburgonov-dsr Mar 7, 2025
a6951f0
Merge branch 'master' into energy-calendar-cluster-test-scripts
dmitrymaslovdsr Mar 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
324 changes: 324 additions & 0 deletions src/app/tests/suites/certification/Test_TC_SETRF_2_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,324 @@
# Copyright (c) 2025 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: X.2.1. [TC-SETRF-2.1] Attributes with DUT as Server

PICS:
- SETRF.S

config:
nodeId: 0x12344321
cluster: "Commodity Tariff"
endpoint: 1
TEST_EVENT_TRIGGER_KEY:
type: octet_string
defaultValue: "hex:00112233445566778899aabbccddeeff"
TEST_EVENT_TRIGGER_ATTRIBUTES_VALUE_UPDATE:
type: int64u
defaultValue: "0x0700000000000000"
TEST_EVENT_TRIGGER_TEST_EVENT_CLEAR:
type: int64u
defaultValue: "0x0700000000000001"

tests:
- label: "Step 1: Commission DUT to TH"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "Step 2: TH reads the TariffInfo attribute from the DUT"
command: "readAttribute"
attribute: "TariffInfo"
response:
value: null

- label: "Step 3: TH reads the TariffUnit attribute from the DUT"
command: "readAttribute"
attribute: "TariffUnit"
response:
value: null

- label: "Step 4: TH reads the StartDate attribute from the DUT"
command: "readAttribute"
attribute: "StartDate"
response:
value: null

- label: "Step 5: TH reads the DayEntries attribute from the DUT"
command: "readAttribute"
attribute: "DayEntries"
response:
value: null

- label: "Step 6: TH reads the DayPatterns attribute from the DUT"
command: "readAttribute"
attribute: "DayPatterns"
response:
value: null

- label: "Step 7: TH reads the CalendarPeriods attribute from the DUT"
command: "readAttribute"
attribute: "CalendarPeriods"
response:
value: null

- label: "Step 8: TH reads the IndividualDays attribute from the DUT"
command: "readAttribute"
attribute: "IndividualDays"
response:
value: null

- label: "Step 9: TH reads the CurrentDay attribute from the DUT"
command: "readAttribute"
attribute: "CurrentDay"
response:
value: null

- label: "Step 10: TH reads the NextDay attribute from the DUT"
command: "readAttribute"
attribute: "NextDay"
response:
value: null

- label: "Step 11: TH reads the CurrentDayEntry attribute from the DUT"
command: "readAttribute"
attribute: "CurrentDayEntry"
response:
value: null

- label: "Step 12: TH reads the CurrentDayEntryDate attribute from the DUT"
command: "readAttribute"
attribute: "CurrentDayEntryDate"
response:
value: null

- label: "Step 13: TH reads the NextDayEntry attribute from the DUT"
command: "readAttribute"
attribute: "NextDayEntry"
response:
value: null

- label: "Step 14: TH reads the NextDayEntryDate attribute from the DUT"
command: "readAttribute"
attribute: "NextDayEntryDate"
response:
value: null

- label: "Step 15: TH reads the TariffComponents attribute from the DUT"
command: "readAttribute"
attribute: "TariffComponents"
response:
value: null

- label: "Step 16: TH reads the TariffPeriods attribute from the DUT"
command: "readAttribute"
attribute: "TariffPeriods"
response:
value: null

- label: "Step 17: TH reads the CurrentTariffComponents attribute from the DUT"
command: "readAttribute"
attribute: "CurrentTariffComponents"
response:
value: null

- label: "Step 18: TH reads the NextTariffComponents attribute from the DUT"
command: "readAttribute"
attribute: "NextTariffComponents"
response:
value: null

- label: "Step 19: TH reads the DefaultRandomizationOffset attribute from the DUT"
PICS: SETRF.S.A0011
command: "readAttribute"
attribute: "DefaultRandomizationOffset"
response:
value: null

- label: "Step 20: TH reads the DefaultRandomizationType attribute from the DUT"
PICS: SETRF.S.A0012
command: "readAttribute"
attribute: "DefaultRandomizationType"
response:
value: null

- label: "Step 21: TH reads TestEventTriggersEnabled attribute from General
Diagnostics Cluster"
PICS: DGGEN.S.A0008
cluster: "General Diagnostics"
endpoint: 0
command: "readAttribute"
attribute: "TestEventTriggersEnabled"
response:
value: 1

- label: "Step 22: TH sends TestEventTrigger command to General Diagnostics
Cluster on Endpoint 0 with EnableKey field set to
PIXIT.SETRF.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to
PIXIT.SETRF.TEST_EVENT_TRIGGER for Attributes Value Update Test Event"
PICS: DGGEN.S.C00.Rsp
cluster: "General Diagnostics"
endpoint: 0
command: "TestEventTrigger"
arguments:
values:
- name: "EnableKey"
value: TEST_EVENT_TRIGGER_KEY
- name: "EventTrigger"
value: TEST_EVENT_TRIGGER_ATTRIBUTES_VALUE_UPDATE

- label: "Step 23: TH reads the TariffInfo attribute from the DUT"
command: "readAttribute"
attribute: "TariffInfo"
response:
constraints:
type: "TariffInformationStruct"

- label: "Step 24: TH reads the TariffUnit attribute from the DUT"
command: "readAttribute"
attribute: "TariffUnit"
response:
constraints:
type: "TariffUnitEnum"
anyOf: [0, 1, 2, 3, 4, 5, 6, 7, 8]

- label: "Step 25: TH reads the StartDate attribute from the DUT"
command: "readAttribute"
attribute: "StartDate"
response:
constraints:
type: epoch-s

- label: "Step 26: TH reads the DayEntries attribute from the DUT"
command: "readAttribute"
attribute: "DayEntries"
response:
constraints:
type: list

- label: "Step 27: TH reads the DayPatterns attribute from the DUT"
command: "readAttribute"
attribute: "DayPatterns"
response:
constraints:
type: list

- label: "Step 28: TH reads the CalendarPeriods attribute from the DUT"
command: "readAttribute"
attribute: "CalendarPeriods"
response:
constraints:
type: list
minLength: 1
maxLength: 4

- label: "Step 29: TH reads the IndividualDays attribute from the DUT"
command: "readAttribute"
attribute: "IndividualDays"
response:
constraints:
type: list
maxLength: 50

- label: "Step 30: TH reads the CurrentDay attribute from the DUT"
command: "readAttribute"
attribute: "CurrentDay"
response:
constraints:
type: "DayStruct"

- label: "Step 31: TH reads the NextDay attribute from the DUT"
command: "readAttribute"
attribute: "NextDay"
response:
constraints:
type: "DayStruct"

- label: "Step 32: TH reads the CurrentDayEntry attribute from the DUT"
command: "readAttribute"
attribute: "CurrentDayEntry"
response:
constraints:
type: "DayEntryStruct"

- label: "Step 33: TH reads the CurrentDayEntryDate attribute from the DUT"
command: "readAttribute"
attribute: "CurrentDayEntryDate"
response:
constraints:
type: epoch-s

- label: "Step 34: TH reads the NextDayEntry attribute from the DUT"
command: "readAttribute"
attribute: "NextDayEntry"
response:
constraints:
type: "DayEntryStruct"

- label: "Step 35: TH reads the NextDayEntryDate attribute from the DUT"
command: "readAttribute"
attribute: "NextDayEntryDate"
response:
constraints:
type: epoch-s

- label: "Step 36: TH reads the TariffComponents attribute from the DUT"
command: "readAttribute"
attribute: "TariffComponents"
response:
constraints:
type: list
minLength: 1

- label: "Step 37: TH reads the TariffPeriods attribute from the DUT"
command: "readAttribute"
attribute: "TariffPeriods"
response:
constraints:
type: list
minLength: 1

- label: "Step 38: TH reads the CurrentTariffComponents attribute from the DUT"
command: "readAttribute"
attribute: "CurrentTariffComponents"
response:
constraints:
type: list

- label: "Step 39: TH reads the NextTariffComponents attribute from the DUT"
command: "readAttribute"
attribute: "NextTariffComponents"
response:
constraints:
type: list

- label: "Step 40: TH reads the DefaultRandomizationOffset attribute from the DUT"
PICS: SETRF.S.A0011
command: "readAttribute"
attribute: "DefaultRandomizationOffset"
response:
constraints:
type: int16s

- label: "Step 41: TH reads the DefaultRandomizationType attribute from the DUT"
PICS: SETRF.S.A0012
command: "readAttribute"
attribute: "DefaultRandomizationType"
response:
constraints:
type: "TransitionRandomizationType"
anyOf: [0, 1, 2, 3, 4]
Loading
Loading