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

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

Merged
merged 2 commits into from
Jan 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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.