Documentation
¶
Overview ¶
Package testutil provides fake-client test helpers shared by every reconciler package under pkg/secrets — scheme construction and ExternalSecret/Secret assertions. It lives under internal/ so it is only importable from within pkg/secrets, where it is exclusively test-only code.
Index ¶
- func ExternalSecretExists(t *testing.T, c client.Client, name, namespace string) bool
- func GetExternalSecret(t *testing.T, c client.Client, name, namespace string) *unstructured.Unstructured
- func NewScheme(t *testing.T, adders ...func(*runtime.Scheme) error) *runtime.Scheme
- func SecretExists(t *testing.T, c client.Client, name, namespace string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExternalSecretExists ¶
ExternalSecretExists reports whether the named ExternalSecret exists.
func GetExternalSecret ¶
func GetExternalSecret(t *testing.T, c client.Client, name, namespace string) *unstructured.Unstructured
GetExternalSecret fetches the named ExternalSecret, failing the test if it does not exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.