Files
webnet/.env.example
T
codingetandClaude fddeb7f5ba
CI / format (pull_request) Successful in 2m4s
CI / lint (pull_request) Successful in 2m9s
CI / install (pull_request) Successful in 5m28s
CI / typetest (pull_request) Successful in 1m46s
CI / node-tests (pull_request) Successful in 1m55s
CI / typecheck (pull_request) Successful in 2m5s
CI / browser-tests (pull_request) Successful in 3m19s
docs: document the new integration test env variables
TSCONNECT_TEST_USER_AUTH_KEY and TSCONNECT_TEST_EXIT_NODE_ID gate the Taildrop
and exit node tests; both are optional and the suite is green without them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 23:21:18 +00:00

27 lines
1.3 KiB
Bash

# Copy this file to .env.local and fill in real values to enable integration tests.
# .env.local is gitignored and loaded automatically by `npm test` via
# --env-file-if-exists, so integration tests skip gracefully when it is absent.
# URL of the headscale (or Tailscale) control server.
TSCONNECT_TEST_CONTROL_URL=https://headscale.example.com
# Reusable ephemeral authkey for the test tailnet.
# Ephemeral nodes clean themselves up on disconnect, so a single key is enough
# for all tests even when they spin up multiple IPN instances per run.
TSCONNECT_TEST_AUTH_KEY=hskey-auth-...
# Optional. Reusable ephemeral authkey that registers nodes as a plain user
# rather than under a tag.
#
# Taildrop needs both ends untagged: feature/taildrop's canPutFile requires
# IsSelfUntagged() or an ACL-granted PeerCapabilityFileSharingSend, so a tagged
# receiver answers the PUT with "403 Taildrop disabled; no storage directory".
# The Taildrop tests register their own node pair with this key and skip when it
# is unset; every other test uses TSCONNECT_TEST_AUTH_KEY.
TSCONNECT_TEST_USER_AUTH_KEY=hskey-auth-...
# Optional. StableNodeID of an exit node on the test tailnet, as reported in
# notifyNetMap peers (e.g. "nodeidfoo123CNTRL"). Enables the setExitNode test,
# which selects it and then clears it again; skipped when unset.
TSCONNECT_TEST_EXIT_NODE_ID=