2024-10-05 21:03:26 +00:00
|
|
|
package network
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"isle/toolkit"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestCreate(t *testing.T) {
|
2024-10-06 15:15:40 +00:00
|
|
|
toolkit.MarkIntegrationTest(t)
|
|
|
|
|
2024-10-05 21:03:26 +00:00
|
|
|
var (
|
2024-10-06 17:38:35 +00:00
|
|
|
h = newIntegrationHarness(t)
|
|
|
|
network = h.createNetwork(t, "primus", nil)
|
2024-10-05 21:03:26 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
gotCreationParams, err := network.GetNetworkCreationParams(h.ctx)
|
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("calling GetNetworkCreationParams: %v", err)
|
2024-10-06 17:38:35 +00:00
|
|
|
} else if network.creationParams != gotCreationParams {
|
2024-10-05 21:03:26 +00:00
|
|
|
t.Fatalf(
|
|
|
|
"expected CreationParams %+v, got %+v",
|
2024-10-06 17:38:35 +00:00
|
|
|
network.creationParams,
|
2024-10-05 21:03:26 +00:00
|
|
|
gotCreationParams,
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|