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

[vstest]Migrating vs tests from using click commands to direct DB access #2179

Merged
merged 2 commits into from
Mar 23, 2022

Conversation

dgsudharsan
Copy link
Collaborator

What I did
Migrate vs tests from using click commands to direct DB access.

Why I did it
This is to decouple sonic-utilities and sonic-swss. Currently sonic-utilities need to run vstests since many tests use the click commands from config_db. When we have pipeline failures in vs tests it also affects sonic-utilities PR.
Removed ACL CLI and few CRM tests that test CLI and aren't relevant in vstests scenario.

ACL CLI is covered here https://github.com/Azure/sonic-utilities/blob/47c243eb7e9cbe6ebd3479290a98183071cf2124/tests/acl_config_test.py

CRM CLI is covered here
https://github.com/Azure/sonic-utilities/blob/47c243eb7e9cbe6ebd3479290a98183071cf2124/tests/crm_test.py

How I verified it
Run the vs tests

Details if related

@lgtm-com
Copy link

lgtm-com bot commented Mar 15, 2022

This pull request fixes 2 alerts when merging 52e66a4 into ce88696 - view on LGTM.com

fixed alerts:

  • 1 for Unused import
  • 1 for Unused argument in a formatting call

liat-grozovik
liat-grozovik previously approved these changes Mar 15, 2022
Signed-off-by: Sudharsan Dhamal Gopalarathnam <sudharsand@nvidia.com>
@lgtm-com
Copy link

lgtm-com bot commented Mar 15, 2022

This pull request fixes 2 alerts when merging 4a286a5 into 608acc3 - view on LGTM.com

fixed alerts:

  • 1 for Unused import
  • 1 for Unused argument in a formatting call

@dgsudharsan
Copy link
Collaborator Author

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny prsunny merged commit 6eda965 into sonic-net:master Mar 23, 2022
dprital pushed a commit to dprital/sonic-swss that referenced this pull request May 8, 2022
…ess (sonic-net#2179)

* [vstest]Migrating vs tests from using click commands to direct DB access
Signed-off-by: Sudharsan Dhamal Gopalarathnam <sudharsand@nvidia.com>
preetham-singh pushed a commit to preetham-singh/sonic-swss that referenced this pull request Aug 6, 2022
…ess (sonic-net#2179)

* [vstest]Migrating vs tests from using click commands to direct DB access
Signed-off-by: Sudharsan Dhamal Gopalarathnam <sudharsand@nvidia.com>
@dgsudharsan dgsudharsan deleted the vs_tests_upd branch March 9, 2023 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants