test

package
v0.0.0-...-af52fa7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 13 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 ExampleEtcdBackup

func ExampleEtcdBackup(namespace string) *etcdv1alpha1.EtcdBackup

func ExampleEtcdBackupSchedule

func ExampleEtcdBackupSchedule(namespace string) *etcdv1alpha1.EtcdBackupSchedule

func ExampleEtcdCluster

func ExampleEtcdCluster(namespace string) *etcdv1alpha1.EtcdCluster

ExampleEtcdCluster returns a valid example for testing purposes.

func ExampleEtcdPeer

func ExampleEtcdPeer(namespace string) *etcdv1alpha1.EtcdPeer

ExampleEtcdPeer returns a valid example for testing purposes.

Types

type TestLogger

type TestLogger struct {
	T *testing.T
	// contains filtered or unexported fields
}

TestLogger is a logr.Logger that prints through a testing.T object.

func (TestLogger) Enabled

func (_ TestLogger) Enabled() bool

func (TestLogger) Error

func (log TestLogger) Error(err error, msg string, args ...interface{})

func (TestLogger) Info

func (log TestLogger) Info(msg string, args ...interface{})

func (TestLogger) V

func (log TestLogger) V(v int) logr.InfoLogger

func (TestLogger) WithName

func (log TestLogger) WithName(name string) logr.Logger

func (TestLogger) WithValues

func (log TestLogger) WithValues(values ...interface{}) logr.Logger

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