Skip to content

Commit

Permalink
Update DGGEN_1_1 and DGGEN_2_3 to match latest testplan spec (project…
Browse files Browse the repository at this point in the history
…-chip#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 <[email protected]>
  • Loading branch information
tehampson and restyled-commits authored Feb 13, 2024
1 parent 4fef04b commit 2bfb41e
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3628,6 +3628,9 @@ PICS:
- label: "Indicates that node is configured for test event triggers."
id: DGGEN.S.C00.Rsp

- label: "Indicates cluster supports Payload Test Request."
id: DGGEN.S.C03.Rsp

#
# server / Events
#
Expand All @@ -3649,6 +3652,13 @@ PICS:
- label: "Indicates the reason that caused the device to reboot start-up."
id: DGGEN.S.E03

#
# server / features
#
- label:
"Support specific commands needed for extended Data Model features."
id: DGGEN.S.F00

#
# client / attributes
#
Expand Down
11 changes: 11 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DGGEN_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,20 @@ tests:
type: int16u

- label: "Step 3: TH reads from the DUT the FeatureMap attribute."
PICS: "!DGGEN.S.F00"
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 0
constraints:
type: bitmap32

- label: "Step 3: TH reads from the DUT the FeatureMap attribute."
PICS: DGGEN.S.F00
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 1
constraints:
type: bitmap32

Expand Down
68 changes: 67 additions & 1 deletion src/app/tests/suites/certification/Test_TC_DGGEN_2_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,21 @@ tests:

- label:
"Step 4: Invoke the TestEventTrigger command with EnableKey field set
to PIXIT.DGGEN.ENABLEKEY and EventTrigger field set to 0."
to all zeros and EventTrigger field set to 0."
PICS: DGGEN.S.C00.Rsp
command: "TestEventTrigger"
arguments:
values:
- name: "EnableKey"
value: "hex:00000000000000000000000000000000"
- name: "EventTrigger"
value: 0
response:
error: CONSTRAINT_ERROR

- label:
"Step 5: Invoke the TestEventTrigger command with EnableKey field set
to 8-bytes to zeros and EventTrigger field set to 0."
PICS: DGGEN.S.C00.Rsp
command: "TestEventTrigger"
arguments:
Expand All @@ -89,3 +103,55 @@ tests:
value: 0
response:
error: CONSTRAINT_ERROR

- label:
"Step 6: Invoke the PayloadTestRequest command with EnableKey field
set to PIXIT.DGGEN.ENABLEKEY, Value field set to 0x1 and Count set to
1."
runIf: IsExpectedValue
PICS: DGGEN.S.C03.Rsp
command: "PayloadTestRequest"
arguments:
values:
- name: "EnableKey"
value: PIXIT.DGGEN.ENABLEKEY
- name: "Value"
value: 0x1
- name: "Count"
value: 1
response:
- values:
- name: "Payload"
value: "hex:01"

- label:
"Step 7: Invoke the PayloadTestRequest command with EnableKey field
set to all zeros, Value field set to 0x1 and Count set to 1."
PICS: DGGEN.S.C03.Rsp
command: "PayloadTestRequest"
arguments:
values:
- name: "EnableKey"
value: "hex:00000000000000000000000000000000"
- name: "Value"
value: 0x1
- name: "Count"
value: 1
response:
error: CONSTRAINT_ERROR

- label:
"Step 8: Invoke the PayloadTestRequest command with EnableKey field
set to 8-bytes to zeros, Value field set to 0x1 and Count set to 1."
PICS: DGGEN.S.C03.Rsp
command: "PayloadTestRequest"
arguments:
values:
- name: "EnableKey"
value: "hex:00000000000000000000000000000000"
- name: "Value"
value: 0x1
- name: "Count"
value: 1
response:
error: CONSTRAINT_ERROR
2 changes: 2 additions & 0 deletions src/app/tests/suites/certification/ci-pics-values
Original file line number Diff line number Diff line change
Expand Up @@ -931,10 +931,12 @@ DGGEN.S.A0006=1
DGGEN.S.A0007=1
DGGEN.S.A0008=1
DGGEN.S.C00.Rsp=1
DGGEN.S.C03.Rsp=1
DGGEN.S.E00=1
DGGEN.S.E01=1
DGGEN.S.E02=1
DGGEN.S.E03=1
DGGEN.S.F00=1

DGGEN.C=1
DGGEN.C.A0000=1
Expand Down

0 comments on commit 2bfb41e

Please sign in to comment.