From 96d75d9f1fab87365d7e6b5070eed3a5757c3484 Mon Sep 17 00:00:00 2001 From: James O'Doherty Date: Fri, 22 May 2026 09:18:55 -0400 Subject: Refactor CLI for testability and implement hermetic config path injection --- tests/e2e/e2e_test.go | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'tests') diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index 5966659..888aeb6 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -5,27 +5,21 @@ import ( ) func TestDataPlaneConnectivity(t *testing.T) { - t.Log("E2E Test: Virtual Peer connectivity check") - // 1. Spin up a Virtual Peer (GVisor-based userspace stack) - // 2. Generate a matching .conf profile - // 3. Run `wg-wrap --profile test curl ` - // 4. Verify HTTP response is received + // Test full data path: start virtual peer -> run wg-wrap -> curl peer internal IP -> verify HTTP 200. + t.Skip("not implemented") } func TestNetworkIsolation(t *testing.T) { - t.Log("E2E Test: Verifying host isolation") - // 1. Ensure host cannot ping the Virtual Peer's internal IP - // 2. Ensure wrapped process CAN ping the Virtual Peer's internal IP + // Test that host cannot reach peer internal IP, but wrapped process can. + t.Skip("not implemented") } func TestDNSLeakage(t *testing.T) { - t.Log("E2E Test: Verifying DNS is routed via VPN") - // 1. Run `wg-wrap --profile test dig ` - // 2. Verify that the DNS query goes to the VPN DNS server, not host resolver + // Test that DNS queries are routed through the VPN and not the host's resolver. + t.Skip("not implemented") } func TestMTUFragmentation(t *testing.T) { - t.Log("E2E Test: Verifying MTU 1420 prevents packet drop") - // 1. Send large pings (-s 1400) through the tunnel - // 2. Verify packets are received without fragmentation errors + // Test that packets of size ~1400 are transmitted without fragmentation errors. + t.Skip("not implemented") } -- cgit v1.2.3