-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix: do not require networking during tests #10321
Conversation
There are a couple of tests that get run which reach out to external network devices. Unit tests should not depend on functional networking or be reaching out to random servers. The DNS server is somewhat understandable, but the SNMP server is an unknown system that is not owned by the development team. Fixes: influxdata#9894
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.
Looks good to me. Thanks @powersj for tackling those.
📦 Looks like new artifacts were built from this PR. Expand this list to get them here ! 🐯Artifact URLs |
I don’t think those snmp checks make an actual connection? |
(cherry picked from commit 6a1442f)
@powersj could you elaborate on skipping the snmp plugin tests? |
You can try this out by turning off networking on your system and run those tests. You will see that they attempt to make a connection to |
And the tests fail in that situation? |
Yes, the tests fail when the user has no networking. |
Okay, fine then! 👍 |
There are a couple of tests that get run that reach out to external
network devices. Unit tests should not depend on functional networking
or be reaching out to random servers. The DNS server is somewhat
understandable, but the SNMP server is an unknown system that is not
owned by the development team.
Fixes: #9894