test

package
v1.2.4-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AddDeploymentToGenConfig

func AddDeploymentToGenConfig(gen *generated.SpinnakerGeneratedConfig, depName string, fileName string, t *testing.T)

func AddServiceToGenConfig

func AddServiceToGenConfig(gen *generated.SpinnakerGeneratedConfig, svcName string, fileName string, t *testing.T)

func BuildSvc

func BuildSvc(name string, svcType string, publicPort int32, t *testing.T) *corev1.Service

func FakeClient

func FakeClient(t *testing.T, objs ...runtime.Object) client.Client

func ManifestFileToSpinService added in v0.4.0

func ManifestFileToSpinService(manifestYaml string, t *testing.T) interfaces.SpinnakerService

func ManifestToSpinService

func ManifestToSpinService(s string, t *testing.T) interfaces.SpinnakerService

func ReadYamlFile

func ReadYamlFile(path string, target interface{}, t *testing.T)

func ReadYamlString added in v0.4.0

func ReadYamlString(s []byte, target interface{}, t *testing.T)

Types

type DummyK8sSecretEngine added in v0.3.3

type DummyK8sSecretEngine struct {
	Secret string
	File   bool
}

func (*DummyK8sSecretEngine) Decrypt added in v0.3.3

func (s *DummyK8sSecretEngine) Decrypt() (string, error)

func (*DummyK8sSecretEngine) IsFile added in v0.3.3

func (s *DummyK8sSecretEngine) IsFile() bool

Jump to

Keyboard shortcuts

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