-
Notifications
You must be signed in to change notification settings - Fork 29
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
Conversation
…tpModeStatus, PtpOmfStatus, PtpPortModeStatus
Credits to Gerard Phillips for developing these test cases for PTP |
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.
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
""" | ||
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. |
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.
Why should we re-run the test with another input? Can we just use a list of strings as input instead?
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.
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.
…tpModeStatus, PtpOffset, PtpPortModeStatus
…tpModeStatus, PtpOffset, PtpPortModeStatus
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.
LGTM
Thank you for contributing !
Description
Added test cases for PTP which include: PtpGMStatus, PtpLockStatus, PtpModeStatus, PtpOmfStatus, PtpPortModeStatus
Checklist:
pre-commit run
)