Split yang tests into multiple files#6939
Conversation
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>
|
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>
I have updated the PR. All checks pass now. |
|
@praveen-li Could you please review this? |
sure I'll have a look today thanks |
praveen-li
left a comment
There was a problem hiding this comment.
Thanks for starting this effort.
src/sonic-yang-mgmt/tests/libyang-python-tests/test_sonic_yang.py
Outdated
Show resolved
Hide resolved
src/sonic-yang-mgmt/tests/libyang-python-tests/test_sonic_yang.py
Outdated
Show resolved
Hide resolved
src/sonic-yang-mgmt/tests/libyang-python-tests/test_sonic_yang.py
Outdated
Show resolved
Hide resolved
src/sonic-yang-mgmt/tests/libyang-python-tests/test_sonic_yang.py
Outdated
Show resolved
Hide resolved
src/sonic-yang-models/tests/yang_model_tests/tests_config/except.json
Outdated
Show resolved
Hide resolved
src/sonic-yang-models/tests/yang_model_tests/tests_config/except.json
Outdated
Show resolved
Hide resolved
src/sonic-yang-models/tests/yang_model_tests/tests_config/except.json
Outdated
Show resolved
Hide resolved
src/sonic-yang-models/tests/yang_model_tests/tests_config/except.json
Outdated
Show resolved
Hide resolved
src/sonic-yang-models/tests/yang_model_tests/tests_config/except.json
Outdated
Show resolved
Hide resolved
…test_split Address review comments Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
|
retest this please |
Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
|
@joyas-joseph: So that questions about original content can be redirected to me in the future using GITHUB blame. |
Updated the PR. |
|
@joyas-joseph thanks @lguohan kindly merge this pr today if possible so that other prs can be on top of it. Thx a lot. |
|
can you help to resolve the conflict? |
…test_split Merge and resolve conflicts Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
c5934f6
| @@ -0,0 +1,46 @@ | |||
| {%- set default_cable = '5m' %} | |||
There was a problem hiding this comment.
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.
|
@lguohan kindly merge this pr before other yang PRs if possible, so that new prs can be on top of it. Thx a lot. |
|
@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>
b6b7770
Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
|
@lguohan - Can you please merge this before merging any new PRs ? |
* 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>
* 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>
* 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>
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)
Description for the changelog
Improve yang model test manageability
A picture of a cute animal (not mandatory but encouraged)