diff options
Diffstat (limited to 'internal/namespace')
| -rw-r--r-- | internal/namespace/namespace_test.go | 14 |
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") } |
