mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-20 23:41:28 +02:00
Tests that need root or mutate host state (nftables/iptables/DNS, TUN/WireGuard interfaces, routes, eBPF, SSH/service install) are now gated behind a //go:build privileged tag. The default `go test ./client/...` runs as a non-root user with no sudo and leaves host networking untouched; mixed files were split so pure-logic tests stay in the default suite. A self-hosting ory/dockertest/v4 harness (client/testutil/privileged) runs the privileged suite inside a --privileged --cap-add=NET_ADMIN container via `make test-privileged`; a DOCKER_CI=true guard skips the spawn when already inside the container. Added `make test-unit` for the host-safe run.
16 lines
524 B
Go
16 lines
524 B
Go
//go:build linux && !android
|
|
|
|
package systemops
|
|
|
|
// Interface names used by the shared routing test fixtures. Kept untagged (no
|
|
// privileged build tag) so the non-privileged test files in this package compile.
|
|
//
|
|
//nolint:unused // consumed by the privileged-tagged routing tests
|
|
var expectedVPNint = "wgtest0"
|
|
|
|
//nolint:unused // consumed by the privileged-tagged routing tests
|
|
var expectedExternalInt = "dummyext0"
|
|
|
|
//nolint:unused // consumed by the privileged-tagged routing tests
|
|
var expectedInternalInt = "dummyint0"
|