Skip to content

ts_tunnel: add helpers for endpoint testing, session rotation tests#284

Open
danderson wants to merge 1 commit into
push-vklkwnswztqzfrom
push-rpnxoxqnpsrp
Open

ts_tunnel: add helpers for endpoint testing, session rotation tests#284
danderson wants to merge 1 commit into
push-vklkwnswztqzfrom
push-rpnxoxqnpsrp

Conversation

@danderson

@danderson danderson commented Jul 16, 2026

Copy link
Copy Markdown
Member

Updates #283


This started out as the regression tests for #286, but the endpoint-level tests were hard enough to write that I went down a rabbithole of writing helpers to make the tests convey their intent a bit more clearly. This PR contains those helpers, the refactor of the existing endpoint test to use them, and two more tests to test that session rotation works per #283.

@danderson
danderson force-pushed the push-rpnxoxqnpsrp branch from b5b8f4f to da94673 Compare July 16, 2026 17:09
@danderson
danderson force-pushed the push-rpnxoxqnpsrp branch from 2d74994 to e582217 Compare July 16, 2026 23:18
@danderson
danderson changed the base branch from main to push-vklkwnswztqz July 16, 2026 23:18
@danderson danderson changed the title WIP: rework endpoint tests with some helpers ts_tunnel: add helpers for endpoint testing, session rotation tests Jul 16, 2026
@danderson
danderson marked this pull request as ready for review July 16, 2026 23:23
@danderson

Copy link
Copy Markdown
Member Author

CI is currently broken due to github having an API outage, but ./bin/check passes locally.

@nrc nrc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, a couple of optional suggestions for removing more boilerplate.

Comment thread ts_tunnel/src/endpoint.rs Outdated
Comment thread ts_tunnel/src/endpoint.rs Outdated
Updates #283

Signed-off-by: David Anderson <danderson@tailscale.com>
Change-Id: I4fef3c7306905957932220aca8bcab1f6a6a6964
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.

2 participants