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

swarm: add mock net.PacketConn for testing #2443

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Jul 26, 2023

This uses https://github.com/tailscale/tailscale/tree/main/tstest/natlab
to provide a mock net.PacketConn. This allows us to fake quic addresses
on nodes to test for address discovery. This can also be used to test
nat traversal.

Update 2023-09-25: We do need this but I'll pick this up some time next month. Converting it to draft.

This uses https://github.com/tailscale/tailscale/tree/main/tstest/natlab
to provide a mock net.PacketConn. This allows us to fake quic addresses
on nodes to test for address discovery. This can also be used to test
nat traversal.
@sukunrt sukunrt force-pushed the sukun/mock-transport branch 2 times, most recently from 8a2c093 to d1ec619 Compare July 31, 2023 11:13
@sukunrt sukunrt marked this pull request as ready for review July 31, 2023 11:18
@sukunrt sukunrt force-pushed the sukun/mock-transport branch 2 times, most recently from 1383f98 to 1cc7495 Compare July 31, 2023 16:30
@sukunrt sukunrt marked this pull request as draft September 25, 2023 13:11
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.

None yet

1 participant