tests

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name of the KIND cluster used for testing
	DefaultKindClusterName = "porter"

	// Relative location of the KUBECONFIG for the test cluster
	Kubeconfig = "kind.config"

	// Container name of the local registry
	DefaultRegistryName = "registry"
)

Variables

This section is empty.

Functions

func CreateTestCluster

func CreateTestCluster()

Create a KIND cluster named porter.

func DeleteTestCluster

func DeleteTestCluster()

Delete the KIND cluster named porter.

func EnsureKubectl

func EnsureKubectl()

Ensure kubectl is installed.

func EnsureTestCluster

func EnsureTestCluster()

Ensure that the test KIND cluster is up.

func StartDocker

func StartDocker() error

Ensure the docker daemon is started and ready to accept connections.

func StartDockerRegistry

func StartDockerRegistry() error

Start a Docker registry to use with the tests.

func StopDockerRegistry

func StopDockerRegistry() error

Stop the Docker registry used by the tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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