eventtest

package
v4.2.2-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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