-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pytest] Test the system uptime in streaming telemetry (#2583)
Signed-off-by: Yong Zhao [email protected] Summary: Fixes # (issue) Bug fix Testbed and Framework(new/improvement) Test case(new/improvement) Approach What is the motivation for this PR? This PR aims to add a function in test_telemetry.py to test the new dataset system uptime in non-db client of streaming telemetry. How did you do it? The ptf docker container will send the request/query to telemetry server by running the command python /gnxi/gnmi_cli_py/py_gnmicli.py -g -t <DuT_IP> -p Telemetry_Port -m get -x platform/sysuptime -xt OTHERS -o "ndastreamingservertest" and then get the response which includes a field showing the string of system uptime. This function will first verify whether the string was an integer and then decide whether the system uptime was updated correctly. How did you verify/test it? I ran this test against the lab device str-dx010-acs-1. Any platform specific information? N/A Supported testbed topology if it's a new test case? N/A
- Loading branch information
Showing
1 changed file
with
72 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters