Fix tests

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
bcmmbaga 2024-12-10 17:26:23 +01:00
parent 7146fd03d1
commit c7f79085df
No known key found for this signature in database
GPG Key ID: 511EED5C928AD547

View File

@ -1784,6 +1784,24 @@ func TestAccount_Copy(t *testing.T) {
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)
if err != nil {