Skip to content

Modifying tests to adapt to new config reload system checks#3657

Merged
yxieca merged 5 commits intosonic-net:masterfrom
dgsudharsan:config_reload_fix
Jun 22, 2021
Merged

Modifying tests to adapt to new config reload system checks#3657
yxieca merged 5 commits intosonic-net:masterfrom
dgsudharsan:config_reload_fix

Conversation

@dgsudharsan
Copy link
Copy Markdown
Contributor

Description of PR

Modify sonic-mgmt test cases to handle new config reload behavior. Config reload will perform system checks before proceeding. If the listed system checks fail config reload will not execute.

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

To enhance the test cases as per new config reload behavior.

How did you do it?

Added system check in tests before executing config reload command so that it would not fail. Additionally add new test case to validate config reload command behavior.

How did you verify/test it?

Run config reload platform tests.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@dgsudharsan dgsudharsan requested review from a team and jleveque as code owners June 10, 2021 23:29
Cosmetic changes

Added force option case

Addressing comments

Adding changes for backward compatibility

Test fixes

Fixed import
@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Jun 11, 2021

This pull request introduces 2 alerts when merging acc2e41 into 6a4da3c - view on LGTM.com

new alerts:

  • 2 for 'import *' may pollute namespace

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Jun 11, 2021

This pull request introduces 1 alert when merging ca7a3b9 into 6a4da3c - view on LGTM.com

new alerts:

  • 1 for Unused import

@dgsudharsan
Copy link
Copy Markdown
Contributor Author

@yxieca @jleveque Can you please review the changes? This can be merged ahead of config reload fixes as this is backward compatible.

Comment thread tests/common/config_reload.py Outdated
Copy link
Copy Markdown
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

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

Looks good to me. I would like someone from @Azure/sonic-fundamentals to review, as well.

@yxieca yxieca merged commit 1068a76 into sonic-net:master Jun 22, 2021
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
…t#3657)

Description of PR
Modify sonic-mgmt test cases to handle new config reload behavior. Config reload will perform system checks before proceeding. If the listed system checks fail config reload will not execute.

Summary:

Approach
What is the motivation for this PR?
To enhance the test cases as per new config reload behavior.

How did you do it?
Added system check in tests before executing config reload command so that it would not fail. Additionally add new test case to validate config reload command behavior.

How did you verify/test it?
Run config reload platform tests.
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.

4 participants