test

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpNsName                       = "http-ns-name"
	DnsNsName                        = "dns-ns-name"
	HttpNsId                         = "http-ns-id"
	DnsNsId                          = "dns-ns-id"
	SvcName                          = "svc-name"
	SvcId                            = "svc-id"
	ClusterId1                       = "test-mcs-clusterid-1"
	ClusterSet                       = "test-mcs-clustersetid"
	ClusterId2                       = "test-mcs-clusterid-2"
	EndptId1                         = "tcp-192_168_0_1-1"
	EndptId2                         = "tcp-192_168_0_2-2"
	EndptIp1                         = "192.168.0.1"
	EndptIp2                         = "192.168.0.2"
	EndptReadyTrue                   = "true"
	EndptReadyFalse                  = "false"
	Port1                            = 1
	PortStr1                         = "1"
	PortName1                        = "http"
	Protocol1                        = "TCP"
	ServicePort1                     = 11
	ServicePortStr1                  = "11"
	Port2                            = 2
	PortStr2                         = "2"
	PortName2                        = "https"
	Protocol2                        = "UDP"
	ServicePort2                     = 22
	ServicePortStr2                  = "22"
	ClusterIp1                       = "10.10.10.1"
	ClusterIp2                       = "10.10.10.2"
	OpId1                            = "operation-id-1"
	OpId2                            = "operation-id-2"
	OpStart                          = 1
	SvcType                          = "ClusterSetIP"
	SvcExportCreationTimestamp int64 = 1640995200000
	Hostname                         = "host"
	Nodename                         = "node"
	PackageVersion                   = "aws-cloud-map-mcs-controller-for-k8s 0.0.1 (abcd)"
)

Variables

This section is empty.

Functions

func ClusterIdForTest added in v0.3.0

func ClusterIdForTest() *aboutv1alpha1.ClusterProperty

func ClusterSetIdForTest added in v0.3.0

func ClusterSetIdForTest() *aboutv1alpha1.ClusterProperty

func GetMulticlusterTestEndpoints added in v0.3.0

func GetMulticlusterTestEndpoints() []*model.Endpoint

func GetTestDnsNamespace

func GetTestDnsNamespace() *model.Namespace

func GetTestEndpoint1 added in v0.2.0

func GetTestEndpoint1() *model.Endpoint

func GetTestEndpoint2

func GetTestEndpoint2() *model.Endpoint

func GetTestEndpoints added in v0.2.2

func GetTestEndpoints(count int) (endpts []*model.Endpoint)

func GetTestHttpNamespace

func GetTestHttpNamespace() *model.Namespace

func GetTestMulticlusterService added in v0.3.0

func GetTestMulticlusterService() *model.Service

func GetTestService

func GetTestService() *model.Service

func GetTestServiceWithEndpoint added in v0.2.0

func GetTestServiceWithEndpoint(endpoints []*model.Endpoint) *model.Service

func SetTestVersion added in v0.3.0

func SetTestVersion()

Types

This section is empty.

Jump to

Keyboard shortcuts

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