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

validation support for SAI_ATTR_VALUE_TYPE_JSON #1152

Merged
merged 7 commits into from
Nov 29, 2022
Merged

validation support for SAI_ATTR_VALUE_TYPE_JSON #1152

merged 7 commits into from
Nov 29, 2022

Conversation

svshah-intel
Copy link
Contributor

@svshah-intel svshah-intel commented Nov 16, 2022

With a support added for attr value type json, there is a validation support for this attr value type missing. This PR is to enable validation checks for the same.

Signed-off-by: svshah-intel [email protected]

@richardyu-ms
Copy link
Contributor

LGTM, but please resolve the check for Pull Request Coverage

@svshah-intel
Copy link
Contributor Author

svshah-intel commented Nov 16, 2022

LGTM, but please resolve the check for Pull Request Coverage

Thank you for the review.
Regarding coverage, it is a chicken and egg issue here. For the coverage, we need sonic-net/sonic-swss#2506 integrated that has pytest that can cover it. However for sonic-net/sonic-swss#2506 to pass, we need this fix.

Any suggestion to get past that? May be there is a way to handle this within sonic-sairedis repo? I may need a pointer where to add this attr value type then to handle coverage.

@zhangyanzhao
Copy link

@kcudnik would you please help to review this PR? Thanks.

kcudnik
kcudnik previously approved these changes Nov 16, 2022
@svshah-intel
Copy link
Contributor Author

@kcudnik , @richardyu-ms please review updated diffs. I've added unittests for code coverage. Now codecoverage is 100%.

@svshah-intel svshah-intel requested review from kcudnik and removed request for richardyu-ms November 17, 2022 18:32
@prsunny prsunny merged commit b1e9c91 into sonic-net:master Nov 29, 2022
prsunny pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Dec 1, 2022
…attr value

sairedis commits:
b1e9c91 2022-11-29 | validation support for SAI_ATTR_VALUE_TYPE_JSON (sonic-net/sonic-sairedis#1152)
StormLiangMS pushed a commit that referenced this pull request Mar 7, 2023
* validation support for SAI_ATTR_VALUE_TYPE_JSON
* add sairedis-lib and vslib tests for generic programmable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants