summaryrefslogtreecommitdiff
path: root/internal/namespace/namespace_test.go
blob: e39710d75ffedb77b692dd4daeafc2371cc0cadc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//go:build linux && integration

package namespace

import (
	"testing"
)

func TestNamespaceCreation(t *testing.T) {
	// Test that CLONE_NEWUSER and CLONE_NEWNET are called in the correct sequence and a netns is created.
	t.Skip("not implemented")
}

func TestNamespacePinning(t *testing.T) {
	// Test that the network namespace is bind-mounted to /run/user/$UID/wg-wrap/ and persists after process exit.
	t.Skip("not implemented")
}

func TestRoutingSetup(t *testing.T) {
	// Test that the TUN device is created and the routing table is configured with the correct VPN subnet.
	t.Skip("not implemented")
}