-
Notifications
You must be signed in to change notification settings - Fork 727
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
Make GCU syslog's test independent from previous test #4839
Conversation
""" | ||
duthost = duthosts[rand_one_dut_hostname] | ||
create_checkpoint(duthost) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want it to rolled back to original setup. Cuz the test env is based on original setup.
If we created before yield, it will rollback to config_cleanup
or config_add_default
and we will need to add rollback check for each setup.
To move the checkpoint just before yield, we can either
- move each setup code inside test,
- or do another rollback to original setup.
or we can keep the current setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good idea to rollback twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add second rollback
sonic-net#4839) Summary: Make syslog test run independently; add rollback test. What is the motivation for this PR? To avoid testing on one test case that is dependent on the previous test. How did you do it? Setup prerequisite environment for each test and rollback to original setup How did you verify/test it? Run test of sonic-mgmt/tests/generic_config_updater/test_syslog.py on KVM
Description of PR
Summary: Make GCU syslog test independent from previous test
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
To avoid testing on one test case that is dependent on the previous test.
How did you do it?
Setup prerequisite environment for each test
How did you verify/test it?
Run test of sonic-mgmt/tests/generic_config_updater/test_syslog.py on KVM
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation