testing

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigExpectation

type ConfigExpectation struct {
	// name is not the Name in the loaded config, but only the "some-config" of "some-config:1.2"
	Name string
	// version is the parsed version string, or "latest" if omitted
	Version string
	// Path is the path to the YAML to load the sidecar yaml from
	Path                  string
	EnvCount              int
	ContainerCount        int
	VolumeCount           int
	VolumeMountCount      int
	HostAliasCount        int
	HostNetwork           bool
	HostPID               bool
	InitContainerCount    int
	ServiceAccount        string
	PrependContainers     bool
	PrependInitContainers bool

	// LoadError is an error, if any, that is expected during load
	LoadError error
}

ConfigExpectation struct for testing: where to find the file and what we expect to find in it

func (*ConfigExpectation) FullName

func (x *ConfigExpectation) FullName() string

FullName returns name + version string

Jump to

Keyboard shortcuts

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