v0.37.1
This commit is contained in:
1 parent
78dbb31487
commit
f48843e934
83 files changed
+7304
-1203
No files matched your search
@@ -188,3 +188,21 @@ func TestProvisionCodeRoundTrip(t *testing.T) {
|
||||
t.Fatal("garbage accepted")
|
||||
}
|
||||
}
|
||||
|
||||
func TestBridgeInterfacesAreReportedSeparately(t *testing.T) {
|
||||
for name, want := range map[string]bool{"docker0": true, "br-1a2b": true, "virbr0": true, "podman0": true, "cni-podman0": true, "veth12": false, "eth0": false, "br0": false, "wg0": false} {
|
||||
if got := bridgeInterface(name); got != want {
|
||||
t.Fatalf("%s: %v", name, got)
|
||||
}
|
||||
}
|
||||
for _, item := range localHostAddresses() {
|
||||
if item.Source != "interface" || bridgeInterface(item.Interface) {
|
||||
t.Fatalf("host address %#v", item)
|
||||
}
|
||||
}
|
||||
for _, item := range bridgeHostAddresses() {
|
||||
if item.Source != "bridge" || !bridgeInterface(item.Interface) {
|
||||
t.Fatalf("bridge address %#v", item)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user