summaryrefslogtreecommitdiff
path: root/internal/namespace
diff options
context:
space:
mode:
authorJames O'Doherty <james@theodohertyfamily.com>2026-05-22 09:18:55 -0400
committerJames O'Doherty <james@theodohertyfamily.com>2026-05-22 09:18:55 -0400
commit96d75d9f1fab87365d7e6b5070eed3a5757c3484 (patch)
treee01144dbb5338826d36f1b07444ebd78407c3bf4 /internal/namespace
parent756ba94292b408cc4f23d137b2c4c52009b2b38d (diff)
Refactor CLI for testability and implement hermetic config path injection
Diffstat (limited to 'internal/namespace')
-rw-r--r--internal/namespace/namespace_test.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/internal/namespace/namespace_test.go b/internal/namespace/namespace_test.go
index cfa0e9b..e39710d 100644
--- a/internal/namespace/namespace_test.go
+++ b/internal/namespace/namespace_test.go
@@ -7,18 +7,16 @@ import (
)
func TestNamespaceCreation(t *testing.T) {
- t.Log("Integration Test: Verifying CLONE_NEWUSER and CLONE_NEWNET syscalls")
- // TODO: Verify that unshare creates a new network namespace
- // TODO: Verify that the process has root privileges inside the namespace
+ // 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) {
- t.Log("Integration Test: Verifying bind-mount of namespace to /run/user/$UID/wg-wrap/")
- // TODO: Verify that the namespace survives after the process exits
- // TODO: Verify that we can re-join the namespace via setns
+ // 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) {
- t.Log("Integration Test: Verifying TUN device creation and IP routing table setup")
- // TODO: Mock 'ip' command or use netlink to verify route exists
+ // Test that the TUN device is created and the routing table is configured with the correct VPN subnet.
+ t.Skip("not implemented")
}