test

package
v0.0.0-...-6b34a6b Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package test defines custom test helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasTypeLabel

func HasTypeLabel(t *testing.T, builder func(crd cosmosv1.CosmosFullNode) []map[string]string)

func RequireValidMetadata

func RequireValidMetadata(t *testing.T, obj client.Object)

RequireValidMetadata asserts valid metadata properties such as name and label length.

Types

type NopReporter

type NopReporter struct{}

NopReporter is a no-op kube.Reporter.

func (NopReporter) Debug

func (n NopReporter) Debug(msg string, keysAndValues ...interface{})

func (NopReporter) Error

func (n NopReporter) Error(err error, msg string, keysAndValues ...interface{})

func (NopReporter) Info

func (n NopReporter) Info(msg string, keysAndValues ...interface{})

func (NopReporter) RecordError

func (n NopReporter) RecordError(reason string, err error)

func (NopReporter) RecordInfo

func (n NopReporter) RecordInfo(reason, msg string)

Jump to

Keyboard shortcuts

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