nomad/mock: add NodeNetworkResources to mock Node

This commit is contained in:
Nick Ethier 2020-06-19 14:22:24 -04:00
parent a87e91e971
commit fb9c458df1
No known key found for this signature in database
GPG key ID: 07C1A3ECED90D24A

View file

@ -71,6 +71,13 @@ func Node() *structs.Node {
MBits: 1000,
},
},
NodeNetworks: []*structs.NodeNetworkResource{
{
Mode: "host",
Device: "eth0",
Speed: 1000,
},
},
},
ReservedResources: &structs.NodeReservedResources{
Cpu: structs.NodeReservedCpuResources{