isle/go/daemon/network/network_it_test.go

31 lines
698 B
Go

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) {
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,
)
}
}