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

Split yang tests into multiple files #6939

Merged
merged 11 commits into from
Mar 31, 2021

Conversation

joyas-joseph
Copy link
Contributor

@joyas-joseph joyas-joseph commented Mar 2, 2021

Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
Signed-off-by: Joyas Joseph joyas_joseph@dell.com

Link to previous PR #3730

Why I did it

Add manageability to the yang model tests

How I did it

By splitting the tests and config data for the tests into multiple files.
The "tests" directory contains all the tests and the "tests_config" directory contains the configs used for the tests.

New tests can be added in new json files.

How to verify it

Build the sonic_yang_models package

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

Description for the changelog

Improve yang model test manageability

A picture of a cute animal (not mandatory but encouraged)

and config data for the tests into multiple files.

The "tests" directory contains all the tests and the "tests_config"
directory contains the configs used for the tests.

New tests can be added in new json files.

Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
@joyas-joseph joyas-joseph requested a review from lguohan as a code owner March 2, 2021 19:31
@lguohan lguohan added the YANG YANG model related changes label Mar 4, 2021
@lguohan
Copy link
Collaborator

lguohan commented Mar 4, 2021

can you check the build failure?

Also, add missed data for SAMPLE_CONFIG_DB_JSON and
SAMPLE_CONFIG_DB_JSON_1

Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
@joyas-joseph
Copy link
Contributor Author

can you check the build failure?

I have updated the PR. All checks pass now.

@joyas-joseph
Copy link
Contributor Author

@praveen-li Could you please review this?

@praveen-li
Copy link
Member

@praveen-li Could you please review this?

sure I'll have a look today thanks

Copy link
Member

@praveen-li praveen-li left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for starting this effort.

…test_split

Address review comments

Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
@joyas-joseph joyas-joseph changed the title Improve yang model test manageability Split yang tests into multiple files Mar 10, 2021
Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
@joyas-joseph
Copy link
Contributor Author

retest this please

Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
@praveen-li
Copy link
Member

praveen-li commented Mar 18, 2021

@joyas-joseph:
Add 'Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com' as well in this PR.
Also, add a reference to the previous PR in the commit log, I think: #3730

So that questions about original content can be redirected to me in the future using GITHUB blame.

@joyas-joseph
Copy link
Contributor Author

joyas-joseph commented Mar 19, 2021

@joyas-joseph:
Add 'Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com' as well in this PR.
Also, add a reference to the previous PR in the commit log, I think: #3730

So that questions about original content can be redirected to me in the future using GITHUB blame.

Updated the PR.

@praveen-li
Copy link
Member

@joyas-joseph thanks

@lguohan kindly merge this pr today if possible so that other prs can be on top of it. Thx a lot.

praveen-li
praveen-li previously approved these changes Mar 19, 2021
@lguohan
Copy link
Collaborator

lguohan commented Mar 28, 2021

can you help to resolve the conflict?

…test_split

Merge and resolve conflicts

Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
lguohan
lguohan previously approved these changes Mar 29, 2021
@@ -0,0 +1,46 @@
{%- set default_cable = '5m' %}
Copy link
Member

@praveen-li praveen-li Mar 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Joyesh, We need rebase here. Seems something got messed up here, these files should not be in this diff. I remember I approve this PR, but kindly fix this last comment and I'll approve again, thanks a lot.....I
on Double check, I think It is right rebase. I am not sure, why one commit shows the extra delta.

praveen-li
praveen-li previously approved these changes Mar 30, 2021
@praveen-li
Copy link
Member

@lguohan kindly merge this pr before other yang PRs if possible, so that new prs can be on top of it. Thx a lot.

@lguohan
Copy link
Collaborator

lguohan commented Mar 30, 2021

@joyas-joseph , more yang related pr has been merged, can you resolve the conflict?

…test_split

Merge and resolve conflicts

Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
@bhavini-gada
Copy link

@lguohan - Can you please merge this before merging any new PRs ?

@lguohan lguohan merged commit 0b64dc3 into sonic-net:master Mar 31, 2021
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-buildimage that referenced this pull request May 23, 2021
* Add manageability to the yang model tests by splitting the tests
and config data for the tests into multiple files.

The "tests" directory contains all the tests and the "tests_config"
directory contains the configs used for the tests.

New tests can be added in new json files.

Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
* Add manageability to the yang model tests by splitting the tests
and config data for the tests into multiple files.

The "tests" directory contains all the tests and the "tests_config"
directory contains the configs used for the tests.

New tests can be added in new json files.

Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request Dec 23, 2022
* Add manageability to the yang model tests by splitting the tests
and config data for the tests into multiple files.

The "tests" directory contains all the tests and the "tests_config"
directory contains the configs used for the tests.

New tests can be added in new json files.

Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
YANG YANG model related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants