mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-12 16:37:35 +02:00
@ -1784,6 +1784,24 @@ func TestAccount_Copy(t *testing.T) {
|
|||||||
ID: "network1",
|
ID: "network1",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
NetworkRouters: []*networks.NetworkRouter{
|
||||||
|
{
|
||||||
|
ID: "router1",
|
||||||
|
NetworkID: "network1",
|
||||||
|
PeerGroups: []string{"group1"},
|
||||||
|
Masquerade: false,
|
||||||
|
Metric: 0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
NetworkResources: []*networks.NetworkResource{
|
||||||
|
{
|
||||||
|
ID: "resource1",
|
||||||
|
NetworkID: "network1",
|
||||||
|
Name: "resource",
|
||||||
|
Type: "Subnet",
|
||||||
|
Address: "172.12.6.1/24",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
err := hasNilField(account)
|
err := hasNilField(account)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user