eventtest

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

eventtest requires:

  • pass in the kubeconfig path on the command line using --kubeconfig=/path/to/kubeconfig
  • pass in the cluster name on the command line using -clustername flag
  • pass in the namespace on the command line using -namespace flag
  • pass in the username on the command line using -username flag
  • pass in the rolename on the command line using -rolename flag
  • pass in the endpoint for the event router -event-tcp-address="127.0.0.1:14150"

You can port-forward to the event router as follows:

kubectl port-forward pod/postgres-operator-79dfddf5bc-6hlqz 14150:4150 -n pgo

This port-forward creates a localhost port at 14150 that maps to the pgo-event container port at 4150.

To run a single test:

go test -run TestEventCreate -v --kubeconfig=/home/jeffmc/.kube/config -clustername=foomatic -namespace=pgouser1

To run all tests:

go test ./... -v --kubeconfig=/home/jeffmc/.kube/config -clustername=foomatic -namespace=pgouser1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventTCPAddress = "localhost:14150"
	Namespace       = "pgouser1"
	TestUsername    = "pgouser1"
	TestClusterName = "foo"
	TestRolename    = "pgoadmin"
	SLEEP_SECS      = 10
)

Functions

func SetupKube

func SetupKube() (*kubernetes.Clientset, *rest.RESTClient)

Types

This section is empty.

Jump to

Keyboard shortcuts

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