isle/go/daemon/network/network_it_test.go

31 lines
698 B
Go
Raw Normal View History

package network
import (
"testing"
"isle/toolkit"
)
// TODO seeing more of these logs than I'd expect:
// INFO [network/children] Creating UDP socket from nebula addr "lUDPAddr"="172.16.1.1:0" "rUDPAddr"="172.16.1.1:45535"
func TestCreate(t *testing.T) {
2024-10-06 15:15:40 +00:00
toolkit.MarkIntegrationTest(t)
var (
h = newIntegrationHarness(t)
network = h.createNetwork(t, "primus", nil)
)
gotCreationParams, err := network.GetNetworkCreationParams(h.ctx)
if err != nil {
t.Fatalf("calling GetNetworkCreationParams: %v", err)
} else if network.creationParams != gotCreationParams {
t.Fatalf(
"expected CreationParams %+v, got %+v",
network.creationParams,
gotCreationParams,
)
}
}