Skip to content

Commit

Permalink
[tv-app + YAML tests] Update the yaml tests to use the correct format…
Browse files Browse the repository at this point in the history
…ting for the responses since CurrentChannel is a struct (#24696)

* [tv-app + YAML tests] Update the yaml tests to use the correct formatting for the responses since CurrentChannel is a struct

* Update generated content
  • Loading branch information
vivien-apple authored and pull[bot] committed Sep 22, 2023
1 parent 837fb90 commit 3751040
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ tests:
command: "readAttribute"
attribute: "CurrentChannel"
response:
value: [MajorNumber: majornumber, MinorNumber: minornumber]
value: { MajorNumber: majornumber, MinorNumber: minornumber }
12 changes: 9 additions & 3 deletions src/app/tests/suites/certification/Test_TC_CHANNEL_5_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ config:
endpoint: 1
majornumber:
type: int16u
defaultValue: 9
defaultValue: 6
minornumber:
type: int16u
defaultValue: 0
majornumber2:
type: int16u
defaultValue: 9
minornumber2:
type: int16u
defaultValue: 1

Expand Down Expand Up @@ -59,7 +65,7 @@ tests:
command: "readAttribute"
attribute: "CurrentChannel"
response:
value: [MajorNumber: majornumber, MinorNumber: minornumber]
value: { MajorNumber: majornumber, MinorNumber: minornumber }

- label: "Sends a SkipChannel command to the DUT"
PICS: CHANNEL.S.C03.Rsp
Expand All @@ -85,6 +91,6 @@ tests:
command: "readAttribute"
attribute: "CurrentChannel"
response:
value: [MajorNumber: majornumber, MinorNumber: minornumber + 1]
value: { MajorNumber: majornumber2, MinorNumber: minornumber2 }
constraints:
type: ChannelInfoStruct
16 changes: 16 additions & 0 deletions zzz_generated/chip-tool/zap-generated/test/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3751040

Please sign in to comment.