blob: 7b5858cb5db08ee5224657408e88e2ef73e4109a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
package e2e
import (
"os/exec"
"strings"
"testing"
)
func TestDataPlaneConnectivity(t *testing.T) {
t.Skip("not implemented")
}
func TestNetworkIsolation(t *testing.T) {
// 1. Determine binary path
binaryPath, err := GetBinaryPath()
if err != nil {
t.Skipf("Skipping test: %v", err)
}
// 2. Run the test-ns command using the binary
cmd := exec.Command(binaryPath, "test-ns")
out, err := cmd.CombinedOutput()
if err != nil {
t.Fatalf("wg-wrap test-ns failed: %v\nOutput: %s", err, string(out))
}
// 3. Verify the success message
if !strings.Contains(string(out), "Isolation Verified: OK") {
t.Errorf("Expected 'Isolation Verified: OK', got: %q", string(out))
}
}
func TestDNSLeakage(t *testing.T) {
t.Skip("not implemented")
}
func TestMTUFragmentation(t *testing.T) {
t.Skip("not implemented")
}
|