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): Added testcase to verify stun client #578

Merged
merged 8 commits into from
Apr 12, 2024

Conversation

MaheshGSLAB
Copy link
Collaborator

Description

Added test case to verify the stun client.

  • success: The test will pass if the STUN client is correctly configured with the specified IPv4 source address, public address, and port.
  • failure: The test will fail if the STUN client is not configured or if the IPv4 source address, public address, or port details are incorrect.

Fixes #576

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)
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes (tox -e testenv)

Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@MaheshGSLAB MaheshGSLAB marked this pull request as ready for review March 14, 2024 09:00
Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

anta/tests/stun.py Outdated Show resolved Hide resolved
anta/tests/stun.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@gmuloc gmuloc left a comment

Choose a reason for hiding this comment

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

Need to change the model to separate source and public port

@MaheshGSLAB MaheshGSLAB requested a review from gmuloc April 12, 2024 05:47
@gmuloc gmuloc added this to the v1.0.0 milestone Apr 12, 2024

source_address: IPv4Address
"""IPv4 source address of STUN client."""
source_port: Port
Copy link
Collaborator

Choose a reason for hiding this comment

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

lets make 4500 the default ! (as it is the default source port for STUN)

Copy link
Collaborator

@gmuloc gmuloc left a comment

Choose a reason for hiding this comment

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

one last change

@gmuloc gmuloc merged commit afe12ca into aristanetworks:main Apr 12, 2024
17 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.

Add support to validate STUN client
2 participants