Documentation ¶
Overview ¶
attachinterfaces unit tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CreateInterfacesExpected = attachinterfaces.Interface{ PortState: "ACTIVE", FixedIPs: []attachinterfaces.FixedIP{ { SubnetID: "d7906db4-a566-4546-b1f4-5c7fa70f0bf3", IPAddress: "10.0.0.7", }, }, PortID: "0dde1598-b374-474e-986f-5b8dd1df1d4e", NetID: "8a5fe506-7e9f-4091-899b-96336909d93c", MACAddr: "fa:16:3e:38:2d:80", }
CreateInterfacesExpected represents an expected repsonse from a CreateInterface request.
var GetInterfaceExpected = attachinterfaces.Interface{ PortState: "ACTIVE", FixedIPs: []attachinterfaces.FixedIP{ { SubnetID: "d7906db4-a566-4546-b1f4-5c7fa70f0bf3", IPAddress: "10.0.0.7", }, { SubnetID: "45906d64-a548-4276-h1f8-kcffa80fjbnl", IPAddress: "10.0.0.8", }, }, PortID: "0dde1598-b374-474e-986f-5b8dd1df1d4e", NetID: "8a5fe506-7e9f-4091-899b-96336909d93c", MACAddr: "fa:16:3e:38:2d:80", }
GetInterfaceExpected represents an expected repsonse from a GetInterface request.
var ListInterfacesExpected = []attachinterfaces.Interface{ { PortState: "ACTIVE", FixedIPs: []attachinterfaces.FixedIP{ { SubnetID: "d7906db4-a566-4546-b1f4-5c7fa70f0bf3", IPAddress: "10.0.0.7", }, { SubnetID: "45906d64-a548-4276-h1f8-kcffa80fjbnl", IPAddress: "10.0.0.8", }, }, PortID: "0dde1598-b374-474e-986f-5b8dd1df1d4e", NetID: "8a5fe506-7e9f-4091-899b-96336909d93c", MACAddr: "fa:16:3e:38:2d:80", }, }
ListInterfacesExpected represents an expected repsonse from a ListInterfaces request.
Functions ¶
func HandleInterfaceCreateSuccessfully ¶
HandleInterfaceCreateSuccessfully sets up the test server to respond to a CreateInterface request.
func HandleInterfaceDeleteSuccessfully ¶
HandleInterfaceDeleteSuccessfully sets up the test server to respond to a DeleteInterface request.
func HandleInterfaceGetSuccessfully ¶
HandleInterfaceGetSuccessfully sets up the test server to respond to a GetInterface request.
func HandleInterfaceListSuccessfully ¶
HandleInterfaceListSuccessfully sets up the test server to respond to a ListInterfaces request.
Types ¶
This section is empty.