You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sonic-yang-models: Update test cases in preparation for libyang3
This mostly simplifies the existing test cases and standardizes
behavior where they may be incompatible with libyang3. The main goal
is to have this in place before the migration to libyang3 to make it
easier to evaluate the actual code review for porting aspects for libyang3.
Convert some yang model test cases that use `eStr` for failure matching
to use `eStrKey` instead to standardize expected failure matching so
when messsages change they can be updated in one place instead of all
over.
Also, split out some new `eStrKey` values that are needed for libyang3
due to different messages, and document the libyang3 values needed once
upgraded but keep libyang1 values for now.
Finally, some tests were using both `eStr` and `eStrKey` and the `eStr`
portion is not needed to perform a meaningful validation, plus the
`eStr` in these cases are not valid for libyang3.
0 commit comments