Skip to content

Commit 2bfb41e

Browse files
Update DGGEN_1_1 and DGGEN_2_3 to match latest testplan spec (#31998)
* Update DGGEN_1_1 and DGGEN_2_3 to match latest testplan spec * Fix CI * Fix CI * Restyled by whitespace * Restyled by prettier-yaml * Fix CI * Fix CI * Quick fix * Update based on PR comments * Restyled by whitespace --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 4fef04b commit 2bfb41e

File tree

4 files changed

+90
-1
lines changed

4 files changed

+90
-1
lines changed

src/app/tests/suites/certification/PICS.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -3628,6 +3628,9 @@ PICS:
36283628
- label: "Indicates that node is configured for test event triggers."
36293629
id: DGGEN.S.C00.Rsp
36303630

3631+
- label: "Indicates cluster supports Payload Test Request."
3632+
id: DGGEN.S.C03.Rsp
3633+
36313634
#
36323635
# server / Events
36333636
#
@@ -3649,6 +3652,13 @@ PICS:
36493652
- label: "Indicates the reason that caused the device to reboot start-up."
36503653
id: DGGEN.S.E03
36513654

3655+
#
3656+
# server / features
3657+
#
3658+
- label:
3659+
"Support specific commands needed for extended Data Model features."
3660+
id: DGGEN.S.F00
3661+
36523662
#
36533663
# client / attributes
36543664
#

src/app/tests/suites/certification/Test_TC_DGGEN_1_1.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,20 @@ tests:
4040
type: int16u
4141

4242
- label: "Step 3: TH reads from the DUT the FeatureMap attribute."
43+
PICS: "!DGGEN.S.F00"
4344
command: "readAttribute"
4445
attribute: "FeatureMap"
4546
response:
47+
value: 0
48+
constraints:
49+
type: bitmap32
50+
51+
- label: "Step 3: TH reads from the DUT the FeatureMap attribute."
52+
PICS: DGGEN.S.F00
53+
command: "readAttribute"
54+
attribute: "FeatureMap"
55+
response:
56+
value: 1
4657
constraints:
4758
type: bitmap32
4859

src/app/tests/suites/certification/Test_TC_DGGEN_2_3.yaml

+67-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,21 @@ tests:
7878

7979
- label:
8080
"Step 4: Invoke the TestEventTrigger command with EnableKey field set
81-
to PIXIT.DGGEN.ENABLEKEY and EventTrigger field set to 0."
81+
to all zeros and EventTrigger field set to 0."
82+
PICS: DGGEN.S.C00.Rsp
83+
command: "TestEventTrigger"
84+
arguments:
85+
values:
86+
- name: "EnableKey"
87+
value: "hex:00000000000000000000000000000000"
88+
- name: "EventTrigger"
89+
value: 0
90+
response:
91+
error: CONSTRAINT_ERROR
92+
93+
- label:
94+
"Step 5: Invoke the TestEventTrigger command with EnableKey field set
95+
to 8-bytes to zeros and EventTrigger field set to 0."
8296
PICS: DGGEN.S.C00.Rsp
8397
command: "TestEventTrigger"
8498
arguments:
@@ -89,3 +103,55 @@ tests:
89103
value: 0
90104
response:
91105
error: CONSTRAINT_ERROR
106+
107+
- label:
108+
"Step 6: Invoke the PayloadTestRequest command with EnableKey field
109+
set to PIXIT.DGGEN.ENABLEKEY, Value field set to 0x1 and Count set to
110+
1."
111+
runIf: IsExpectedValue
112+
PICS: DGGEN.S.C03.Rsp
113+
command: "PayloadTestRequest"
114+
arguments:
115+
values:
116+
- name: "EnableKey"
117+
value: PIXIT.DGGEN.ENABLEKEY
118+
- name: "Value"
119+
value: 0x1
120+
- name: "Count"
121+
value: 1
122+
response:
123+
- values:
124+
- name: "Payload"
125+
value: "hex:01"
126+
127+
- label:
128+
"Step 7: Invoke the PayloadTestRequest command with EnableKey field
129+
set to all zeros, Value field set to 0x1 and Count set to 1."
130+
PICS: DGGEN.S.C03.Rsp
131+
command: "PayloadTestRequest"
132+
arguments:
133+
values:
134+
- name: "EnableKey"
135+
value: "hex:00000000000000000000000000000000"
136+
- name: "Value"
137+
value: 0x1
138+
- name: "Count"
139+
value: 1
140+
response:
141+
error: CONSTRAINT_ERROR
142+
143+
- label:
144+
"Step 8: Invoke the PayloadTestRequest command with EnableKey field
145+
set to 8-bytes to zeros, Value field set to 0x1 and Count set to 1."
146+
PICS: DGGEN.S.C03.Rsp
147+
command: "PayloadTestRequest"
148+
arguments:
149+
values:
150+
- name: "EnableKey"
151+
value: "hex:00000000000000000000000000000000"
152+
- name: "Value"
153+
value: 0x1
154+
- name: "Count"
155+
value: 1
156+
response:
157+
error: CONSTRAINT_ERROR

src/app/tests/suites/certification/ci-pics-values

+2
Original file line numberDiff line numberDiff line change
@@ -931,10 +931,12 @@ DGGEN.S.A0006=1
931931
DGGEN.S.A0007=1
932932
DGGEN.S.A0008=1
933933
DGGEN.S.C00.Rsp=1
934+
DGGEN.S.C03.Rsp=1
934935
DGGEN.S.E00=1
935936
DGGEN.S.E01=1
936937
DGGEN.S.E02=1
937938
DGGEN.S.E03=1
939+
DGGEN.S.F00=1
938940

939941
DGGEN.C=1
940942
DGGEN.C.A0000=1

0 commit comments

Comments
 (0)