-
Notifications
You must be signed in to change notification settings - Fork 753
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
Add testcases for Reboot #16576
base: master
Are you sure you want to change the base?
Add testcases for Reboot #16576
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
tests/gnmi/test_gnoi_system.py
Outdated
duthost = duthosts[rand_one_dut_hostname] | ||
|
||
# Trigger reboot with invalid method | ||
ret, msg = gnoi_request(duthost, localhost, "Reboot", '{"method": 2}') |
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.
2 is still a valid method per https://github.com/openconfig/gnoi/blob/0d0e73a9bd74ee5b32b145cb06ac0f613f89ed0c/system/system.proto#L131
cc: @ndas7
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
pytest_assert(ret == 0, "System.Reboot API reported failure (rc = {}) with message: {}".format(ret, msg)) | ||
logging.info("System.Reboot API returned msg: {}".format(msg)) | ||
|
||
# Get reboot status |
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.
Skip GNMI check during teardown and disable LogAnalyzer for reboot tests
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Description of PR
Summary:
This PR test the features in:
gNOI Cold Reboot #20709 - Adding the framework docker in the sonic-buildimage
gNOI Cold Reboot - Integrated Rebootbackend changes #20710 - rebootbackend process code inside the framework docker
gNOI Cold Reboot - Integrated tests #20711 - Unit tests for cold reboot in rebootbackend
gNOI Cold Reboot - Integrated gNOI repository #20712 - Adding gNOI submodule as a sub-dir inside framework
gNOI Cold Reboot - Integrated Docker and Makefile changes #20713 - Enabling framework docker and all Makefile changes
sonic-net/sonic-host-services#181 sonic-host-services changes for cold reboot
gNOI Reboot Frontend (gNMI)
gNOI Warm reboot - rebootbackend changes - Enabling warm reboot in rebootbackend process
gNOI warm reboot tests - Adding component tests for warm reboot
sonic-net/sonic-host-services#191 - sonic-host-services changes for warm reboot
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation