testfiles

package
Version: v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package testfiles locates test files within the Vitess directory tree. It also handles test port allocation.

Index

Constants

This section is empty.

Variables

View Source
var (

	// GoVtTopoEtcd2topoPort is used by the go/vt/topo/etcd2topo package.
	// Takes two ports.
	GoVtTopoEtcd2topoPort = vtPortStart

	// GoVtTopoZk2topoPort is used by the go/vt/topo/zk2topo package.
	// Takes three ports.
	GoVtTopoZk2topoPort = GoVtTopoEtcd2topoPort + 2

	// GoVtTabletserverCustomruleZkcustomrulePort is used by the go/vt/tabletserver/customrule/zkcustomrule package.
	// Takes three ports.
	GoVtTabletserverCustomruleZkcustomrulePort = GoVtTopoZk2topoPort + 3

	// GoVtZktopoPort is used by the go/vt/zktopo package.
	// Takes three ports.
	GoVtZktopoPort = GoVtTabletserverCustomruleZkcustomrulePort + 3

	// GoVtEtcdtopoPort is used by the go/vt/etcdtopo package.
	// Takes two ports.
	GoVtEtcdtopoPort = GoVtZktopoPort + 3

	// GoVtTopoConsultopoPort is used by the go/vt/topo/consultopo package.
	// Takes five ports.
	GoVtTopoConsultopoPort = GoVtEtcdtopoPort + 2
)

Port definitions. Unit tests may run at the same time, so they should not use the same ports.

View Source
var (
	// GoVtTopoZk2topoZkID is used by the go/vt/topo/zk2topo package.
	GoVtTopoZk2topoZkID = 1

	// GoVtTabletserverCustomruleZkcustomruleZkID is used by the
	// go/vt/tabletserver/customrule/zkcustomrule package.
	GoVtTabletserverCustomruleZkcustomruleZkID = 2

	// GoVtZktopoZkID is used by the go/vt/zktopo package.
	GoVtZktopoZkID = 3
)

Zookeeper server ID definitions. Unit tests may run at the same time, so they can't use the same Zookeeper server IDs.

Functions

func Glob

func Glob(pattern string) []string

Glob returns all files matching a pattern in $VTROOT/data/test.

func Locate

func Locate(filename string) string

Locate returns a file path that came from $VTROOT/data/test.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL