testsecrets

package
v0.0.161 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddVaultSecrets

func AddVaultSecrets(objects ...runtime.Object) []runtime.Object

func LoadExtSecretDir added in v0.0.49

func LoadExtSecretDir(t *testing.T, ns, dir string) []runtime.Object

LoadExtSecretDir loads the given YAML files in the given directory as external secrets for a test case

func LoadExtSecretFiles

func LoadExtSecretFiles(t *testing.T, ns string, fileNames ...string) []runtime.Object

LoadExtSecretFiles loads the given YAML files as external secrets for a test case

Types

type FakeVaultSecrets added in v0.0.49

type FakeVaultSecrets struct {
	Objects map[string]map[string]string
}

func LoadFakeVaultSecrets added in v0.0.49

func LoadFakeVaultSecrets(t *testing.T, cmds []*cmdrunner.Command, vaultBin string) FakeVaultSecrets

func (*FakeVaultSecrets) AssertHasValue added in v0.0.49

func (s *FakeVaultSecrets) AssertHasValue(t *testing.T, objectName, propertyName string) string

AssertHasValue asserts the given property has a value populated

func (*FakeVaultSecrets) AssertValueEquals added in v0.0.81

func (s *FakeVaultSecrets) AssertValueEquals(t *testing.T, objectName, propertyName, expectedValue string)

AssertValueEquals asserts the given property value

Jump to

Keyboard shortcuts

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