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

feat(anta.tests): PtpGMStatus, PtpLockStatus, PtpModeStatus, PtpOffset, PtpPortModeStatus #564

Merged
merged 4 commits into from
Mar 7, 2024

Conversation

BarikiVarshitha
Copy link
Contributor

Description

Added test cases for PTP which include: PtpGMStatus, PtpLockStatus, PtpModeStatus, PtpOmfStatus, PtpPortModeStatus

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have run pre-commit for code linting and typing (pre-commit run)

…tpModeStatus, PtpOmfStatus, PtpPortModeStatus
@BarikiVarshitha
Copy link
Contributor Author

Credits to Gerard Phillips for developing these test cases for PTP

@BarikiVarshitha BarikiVarshitha requested review from gmuloc and mtache and removed request for gmuloc February 26, 2024 10:35
@BarikiVarshitha BarikiVarshitha changed the title feat(anta.test): PtpGMStatus, PtpLockStatus, PtpModeStatus, PtpOmfStatus, PtpPortModeStatus feat(anta.tests): PtpGMStatus, PtpLockStatus, PtpModeStatus, PtpOmfStatus, PtpPortModeStatus Feb 27, 2024
Copy link
Collaborator

@mtache mtache left a comment

Choose a reason for hiding this comment

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

Thank you for your PR !
I have requested minor changes, please also write these tests in the anta/tests/ptp.py file that already exists and change the categories to ptp instead of hardware, that would make more sense.

anta/tests/ptp2.py Outdated Show resolved Hide resolved
"""
This test verifies that the device is locked to a valid GM
The user should provide a single "validGM" as an input
To test PTP failover, re-run the test with secondary GMid configured.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why should we re-run the test with another input? Can we just use a list of strings as input instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do not want them to be hardcoded as they might be different for some other case, we give valid GM in the nrfu file so from there we are taking this value.

anta/tests/ptp2.py Outdated Show resolved Hide resolved
anta/tests/ptp2.py Outdated Show resolved Hide resolved
anta/tests/ptp2.py Outdated Show resolved Hide resolved
anta/tests/ptp2.py Outdated Show resolved Hide resolved
anta/tests/ptp2.py Outdated Show resolved Hide resolved
anta/tests/ptp2.py Outdated Show resolved Hide resolved
anta/tests/ptp2.py Outdated Show resolved Hide resolved
anta/tests/ptp2.py Outdated Show resolved Hide resolved
@BarikiVarshitha BarikiVarshitha changed the title feat(anta.tests): PtpGMStatus, PtpLockStatus, PtpModeStatus, PtpOmfStatus, PtpPortModeStatus feat(anta.tests): PtpGMStatus, PtpLockStatus, PtpModeStatus, PtpOffset, PtpPortModeStatus Feb 28, 2024
Copy link
Collaborator

@mtache mtache left a comment

Choose a reason for hiding this comment

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

LGTM
Thank you for contributing !

@mtache mtache merged commit 4823938 into aristanetworks:main Mar 7, 2024
19 checks passed
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.

None yet

2 participants