setup

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package setup implements a real env in which to run tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CMD added in v0.5.0

func CMD(flags ...string) func()

CMD runs the command with given flags.

func ClosableStandalone added in v0.5.0

func ClosableStandalone(path string, ports []int, flags ...string) (string, string, func())

ClosableStandalone wires standalone modules to build a testing ready runtime.

func ClosableStandaloneWithSchemaLoaders added in v0.5.0

func ClosableStandaloneWithSchemaLoaders(path string, ports []int, schemaLoaders []SchemaLoader, flags ...string) (string, string, func())

ClosableStandaloneWithSchemaLoaders wires standalone modules to build a testing ready runtime.

func DataNode added in v0.5.0

func DataNode(etcdEndpoint string) func()

DataNode runs a data node.

func EmptyClosableStandalone added in v0.5.0

func EmptyClosableStandalone(path string, ports []int, flags ...string) (string, string, func())

EmptyClosableStandalone wires standalone modules to build a testing ready runtime.

func EmptyStandalone added in v0.5.0

func EmptyStandalone(flags ...string) (string, string, func())

EmptyStandalone wires standalone modules to build a testing ready runtime.

func LiaisonNode added in v0.5.0

func LiaisonNode(etcdEndpoint string) (string, func())

LiaisonNode runs a liaison node.

func Standalone added in v0.5.0

func Standalone(flags ...string) (string, string, func())

Standalone wires standalone modules to build a testing ready runtime.

func StandaloneWithSchemaLoaders added in v0.5.0

func StandaloneWithSchemaLoaders(schemaLoaders []SchemaLoader, certFile, keyFile string, flags ...string) (string, string, func())

StandaloneWithSchemaLoaders wires standalone modules to build a testing ready runtime. It also allows to preload schema.

func StandaloneWithTLS added in v0.5.0

func StandaloneWithTLS(certFile, keyFile string, flags ...string) (string, string, func())

StandaloneWithTLS wires standalone modules to build a testing ready runtime with TLS enabled.

Types

type SchemaLoader added in v0.4.0

type SchemaLoader interface {
	run.Unit
	SetRegistry(registry schema.Registry)
}

SchemaLoader is a service that can preload schema.

Jump to

Keyboard shortcuts

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