testutils

package
v0.0.0-...-49be90b Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// UnusedInt is used by testing as a placeholder for unused ints
	UnusedInt = -1
	// UnusedStrSlice is used by testing as a placeholder for unused string slices
	UnusedStrSlice = []string{"unused1", "unused2"}
	// UnusedString is used by testing as a placeholder for unused strings
	UnusedString = "UNUSED"
	// UnusedBool is used by testing as a placeholder for unused bools
	UnusedBool = false
)

Functions

func CheckServiceIPsInRegion

func CheckServiceIPsInRegion(
	t *testing.T,
	serviceNameToIPRanges map[string]*common.ServiceIPRanges,
	service string,
	expectedIPv4s, expectedIPv6s []string)

CheckServiceIPsInRegion checks the existence of specified networks

func GetRegionNameToDetails

func GetRegionNameToDetails(providerNetworks *common.ProviderNetworkRanges) map[string]*common.RegionNetworkDetail

GetRegionNameToDetails creates a map from region name to associated network details for easier lookup

func GetServiceNameToIPs

func GetServiceNameToIPs(regionNetworkDetail *common.RegionNetworkDetail) map[string]*common.ServiceIPRanges

GetServiceNameToIPs creates a map from service name to associated networks for easier lookup

Types

This section is empty.

Jump to

Keyboard shortcuts

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