-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[YAML] Issue an error on pairing timeout (#16774)
- Loading branch information
1 parent
04f1acd
commit 3034129
Showing
24 changed files
with
6,569 additions
and
1,901 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
examples/chip-tool/templates/tests/partials/test_step_response.zapt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{~#*inline "maybeCheckClusterError"}} | ||
{{#if response.clusterError}} | ||
VerifyOrReturn(CheckValue("clusterStatus", status.mClusterStatus.HasValue(), true)); | ||
VerifyOrReturn(CheckValue("clusterStatus", status.mClusterStatus.Value(), {{response.clusterError}})); | ||
{{/if}} | ||
{{/inline~}} | ||
|
||
{{~#*inline "maybeContinueWithoutWaitingOnDone"}} | ||
{{~#if isWaitForReport}}shouldContinue = true;{{/if~}} | ||
{{~#if (isTestOnlyCluster cluster)}}shouldContinue = true;{{/if~}} | ||
{{/inline~}} | ||
|
||
{{~#*inline "maybeReturnOnUnsupported"}} | ||
{{~#if optional}} | ||
if (IsUnsupported(status.mStatus)) | ||
{ | ||
{{>maybeContinueWithoutWaitingOnDone}} | ||
return; | ||
} | ||
{{/if~}} | ||
{{/inline~}} | ||
|
||
{{! --- Test Step Response Content --}} | ||
{{#if response.error}} | ||
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), {{response.error}})); | ||
{{>maybeCheckClusterError}} | ||
{{else}} | ||
{{>maybeReturnOnUnsupported}} | ||
VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), {{response.error}})); | ||
{{#if hasSpecificResponse}} | ||
{ | ||
{{asDecodableType}} value; | ||
VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); | ||
{{#chip_tests_item_response_parameters}} | ||
{{>maybeCheckExpectedValue}} | ||
{{>maybeCheckExpectedConstraints}} | ||
{{>maybeSaveAs}} | ||
{{/chip_tests_item_response_parameters}} | ||
} | ||
{{/if}} | ||
{{/if}} | ||
{{>maybeContinueWithoutWaitingOnDone}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.