testing

package
v0.6.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

loadbalancers unit tests

Index

Constants

View Source
const CreateHealthMonitorRequest = `` /* 176-byte string literal not displayed */
View Source
const CreateMemberResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`
View Source
const CreatePoolMemberRequest = `` /* 126-byte string literal not displayed */
View Source
const CreateRequest = `` /* 611-byte string literal not displayed */
View Source
const CreateResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`
View Source
const DeleteMemberResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`
View Source
const DeleteResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`
View Source
const GetResponse = `` /* 883-byte string literal not displayed */
View Source
const ListResponse = `` /* 1049-byte string literal not displayed */
View Source
const UpdateRequest = `
{
	"name": "lbaas_test_pool",
	"timeout_client_data": 0,
    "timeout_member_connect": 0,
    "timeout_member_data": 0
}	
`
View Source
const UpdateResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`

Variables

View Source
var (
	LoadBalancerID = "79943b39-5e67-47e1-8878-85044b39667a"
	ListenerID     = "c63341da-ea44-4027-bbf6-1f1939c783da"

	Member1 = lbpools.PoolMember{
		Address:      &ip1,
		ID:           "65f4e0eb-7846-490e-b44d-726c8baf3c25",
		Weight:       width,
		SubnetID:     subnetID,
		InstanceID:   "",
		ProtocolPort: protocolPort,
	}
	Member2 = lbpools.PoolMember{
		Address:      &ip2,
		ID:           "f6a9c5dd-f8cc-448d-8e57-81de69d127cb",
		Weight:       width,
		SubnetID:     subnetID,
		InstanceID:   "",
		ProtocolPort: protocolPort,
	}
	LBPool1 = lbpools.Pool{
		LoadBalancers: []gcorecloud.ItemID{
			{ID: LoadBalancerID},
		},
		Listeners: []gcorecloud.ItemID{
			{ID: ListenerID},
		},
		SessionPersistence:    nil,
		LoadBalancerAlgorithm: types.LoadBalancerAlgorithmRoundRobin,
		Name:                  "lbaas_test_pool",
		ID:                    "9fccf0a3-c0de-441d-9afd-2b9b58b08b9f",
		Protocol:              types.ProtocolTypeTCP,
		Members: []lbpools.PoolMember{
			Member1,
			Member2,
		},
		ProvisioningStatus: types.ProvisioningStatusActive,
		OperatingStatus:    types.OperatingStatusOnline,
		CreatorTaskID:      creatorTaskID,
		TaskID:             "",
	}
	Tasks1 = tasks.TaskResults{
		Tasks: []tasks.TaskID{"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"},
	}
	ExpectedLBPoolsSlice = []lbpools.Pool{LBPool1}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL