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

Add test_gnoi_system.py with a simple test for System.Time. #16334

Merged
merged 4 commits into from
Jan 16, 2025

Conversation

hdwhdw
Copy link
Contributor

@hdwhdw hdwhdw commented Jan 3, 2025

Description of PR

Create a new file for testing GNOI System API and bootstrap it with a simple test for System.Time

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

Create a new file for testing GNOI System API and bootstrap it with a simple test for System.Time

How did you do it?

Create a new file for testing GNOI System API and bootstrap it with a simple test for System.Time

How did you verify/test it?

Run on KVM

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@hdwhdw hdwhdw requested a review from Copilot January 3, 2025 16:36

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

tests/gnmi/test_gnoi_system.py:27

  • The error message could be more descriptive. Suggested change: 'System.Time API call failed with return code {} and message: {}'.format(ret, msg)
pytest_assert(ret == 0, "System.Time API unexpectedly reported failure")

tests/gnmi/test_gnoi_system.py:19

  • The comment is clear and correctly formatted.
"""
Verify the gNOI System Time API returns the current system time in valid JSON format.
"""
@hdwhdw hdwhdw requested a review from qiluo-msft January 6, 2025 03:41
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@hdwhdw hdwhdw requested a review from xincunli-sonic January 6, 2025 21:01
@hdwhdw hdwhdw requested a review from xincunli-sonic January 7, 2025 04:35
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@hdwhdw hdwhdw requested a review from vvolam January 10, 2025 17:25
qiluo-msft
qiluo-msft previously approved these changes Jan 10, 2025
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@hdwhdw hdwhdw requested review from qiluo-msft and ganglyu January 10, 2025 22:45
@hdwhdw hdwhdw requested a review from Copilot January 10, 2025 22:49

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@qiluo-msft qiluo-msft merged commit fff1abd into sonic-net:master Jan 16, 2025
21 checks passed
@hdwhdw hdwhdw deleted the time branch January 16, 2025 18:48
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.

5 participants