-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[YAML] Add a "contains" method that support complex objects #30204
Comments
@lpbeliveau-silabs This should be supported ever since #29643 merged a few weeks ago. Did you try it and it didn't work? |
I am currently getting a parsing error when try to run the following step:
The resulting error is:
Seems to indicate that the parser is not expecting this key here but this same key works when used to check for a specific value. |
Yep, there's a bug in the handling of |
For a command response, the YAML parser was ending up with the wrong type definition (the one for the whole command response, not the one for the one field) when a type-dependent constraint was used on a field of the response. This led to issues when a type-dependent constraint (like "contains") was used with a list of structs: the field names for the structs were not found, since the object used for lookup had field names for the command itself, not for the field in question. Fixes project-chip#30204
For a command response, the YAML parser was ending up with the wrong type definition (the one for the whole command response, not the one for the one field) when a type-dependent constraint was used on a field of the response. This led to issues when a type-dependent constraint (like "contains") was used with a list of structs: the field names for the structs were not found, since the object used for lookup had field names for the command itself, not for the field in question. Fixes #30204
Workflow issues
In the Yaml CI, we currently need to explicitly test for all members of complex structures even if we are only interested in certain values. For instance, in Test_TC_S_2_2 here, we are only interested in on Attibute in two clusters, but end up checking all attributes present in the struct, which is tedious and means we will need to modifiy this test each time a new extension field set is implemented in the all-cluster-app:
As Identified in the TODO below, we need to have a way to check only for the values that we are expecting to see a change in:
Platform
all
Anything else?
No response
The text was updated successfully, but these errors were encountered: