Documentation ¶
Overview ¶
Load Balancers unit tests
Index ¶
Constants ¶
View Source
const CreateRequest = `` /* 283-byte string literal not displayed */
View Source
const CreateResponse = `` /* 1833-byte string literal not displayed */
View Source
const GetResponse = `` /* 1833-byte string literal not displayed */
View Source
const ListResponse = `` /* 946-byte string literal not displayed */
View Source
const ListResponseDuplicatedNames = `` /* 946-byte string literal not displayed */
View Source
const UpdateRequest = `` /* 210-byte string literal not displayed */
View Source
const UpdateResponse = `` /* 1731-byte string literal not displayed */
Variables ¶
View Source
var DetailDefaultGateway = "100.127.253.1"
View Source
var DetailIPAddress1 = "100.127.253.173"
View Source
var DetailIPAddress2 = "192.168.110.1"
View Source
var DetailNetworkID1 = "c7f88fab-573e-47aa-b0b4-257db28dae23"
View Source
var DetailNetworkID2 = "1839d290-721c-49ba-99f1-3d7aa37811b0"
View Source
var DetailVirtualIPAddress1 = "100.127.253.174"
View Source
var ExpectedLoadBalancerSlice = []load_balancers.LoadBalancer{LoadBalancer1, LoadBalancer2}
View Source
var LoadBalancer1 = load_balancers.LoadBalancer{ ID: "5f3cae7c-58a5-4124-b622-9ca3cfbf2525", AdminUsername: "user-admin", AvailabilityZone: "zone1-groupa", DefaultGateway: &DetailDefaultGateway, Description: "Load Balancer 1 Description", LoadBalancerPlanID: "bd12784a-c66e-4f13-9f72-5143d64762b6", Name: "Load Balancer 1", Status: "ACTIVE", TenantID: "6a156ddf2ecd497ca786ff2da6df5aa8", UserUsername: "user-read", }
View Source
var LoadBalancer2 = load_balancers.LoadBalancer{
ID: "601665cf-c161-4e80-87f0-a3c0925d07a0",
AdminUsername: "user-admin",
AvailabilityZone: "zone1_groupa",
Description: "abcdefghijklmnopqrstuvwxyz",
LoadBalancerPlanID: "bd12784a-c66e-4f13-9f72-5143d64762b6",
Name: "Load Balancer 2",
Status: "PENDING_CREATE",
TenantID: "6a156ddf2ecd497ca786ff2da6df5aa8",
UserUsername: "user-read",
}
View Source
var LoadBalancerDetail = load_balancers.LoadBalancer{ ID: "5f3cae7c-58a5-4124-b622-9ca3cfbf2525", AdminUsername: "user-admin", AvailabilityZone: "zone1-groupa", DefaultGateway: &DetailDefaultGateway, Description: "Load Balancer 1 Description", Interfaces: []load_balancer_interfaces.LoadBalancerInterface{ { ID: "ee335c69-b50f-4a32-9d0f-f44cef84a456", IPAddress: &DetailIPAddress1, Name: "Interface 1/1", NetworkID: &DetailNetworkID1, SlotNumber: 1, Status: "ACTIVE", Type: "user", VirtualIPAddress: &DetailVirtualIPAddress1, VirtualIPProperties: &load_balancer_interfaces.VirtualIPProperties{ Protocol: VirtualIPPropertiesProtocol, Vrid: VirtualIPPropertiesVrid, }, }, { ID: "b39b61e4-00b1-4698-aed0-1928beb90abe", IPAddress: &DetailIPAddress2, Name: "Interface 1/2", NetworkID: &DetailNetworkID2, SlotNumber: 2, Status: "ACTIVE", Type: "user", }, }, LoadBalancerPlanID: "bd12784a-c66e-4f13-9f72-5143d64762b6", Name: "Load Balancer 1", Status: "ACTIVE", SyslogServers: []load_balancer_syslog_servers.LoadBalancerSyslogServer{ { ID: "11001101-2edf-1844-1ff7-12ba5b7e566a", IPAddress: "177.77.07.215", LogFacility: "LOCAL0", LogLevel: "ALERT|INFO|ERROR", Name: "syslog_server_main", PortNumber: 514, Status: "ACTIVE", }, { ID: "22002202-2edf-1844-1ff7-12ba5b7e566a", IPAddress: "177.77.07.211", LogFacility: "LOCAL1", LogLevel: "ERROR", Name: "syslog_server_backup_fst", PortNumber: 514, Status: "ACTIVE", }, }, TenantID: "6a156ddf2ecd497ca786ff2da6df5aa8", UserUsername: "user-read", }
View Source
var VirtualIPPropertiesProtocol = "vrrp"
View Source
var VirtualIPPropertiesVrid = 10
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.