test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertStructFields

func AssertStructFields(t *testing.T, expectations map[string]interface{}, actual interface{}) bool

func CheckStructFields

func CheckStructFields(expectations map[string]interface{}, actual interface{}) (field.ErrorList, error)

CheckStructFields asserts that the struct fields referenced by the supplied expectation path, have a value equal to the expectation value.

func ExampleEtcdCluster

func ExampleEtcdCluster(namespace string) *v1alpha1.EtcdCluster

ExampleEtcdCluster returns a valid example for testing purposes

func ExampleEtcdPeer

func ExampleEtcdPeer(namespace string) *v1alpha1.EtcdPeer

ExampleEtcdPeer returns a valid example for testing purposes

Types

This section is empty.

Directories

Path Synopsis
Package e2e holds an end-to-end test framework for testing the operator.
Package e2e holds an end-to-end test framework for testing the operator.

Jump to

Keyboard shortcuts

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