test

package
v0.0.0-...-ff48f10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Timeout              = time.Second * 5
	Interval             = time.Millisecond * 100
	ClientID             = "some-random-id"
	ExposedConsumerOrgno = "111111111"
)

Variables

This section is empty.

Functions

func AssertSecretExists

func AssertSecretExists(t *testing.T, cli client.Client, name string, namespace string, instance clients.Instance, assertions func(*corev1.Secret, clients.Instance))

func ContainsOwnerRef

func ContainsOwnerRef(refs []metav1.OwnerReference, owner clients.Instance) bool

func IDPortenHandler

func IDPortenHandler(clientID string) http.HandlerFunc

func MaskinportenHandler

func MaskinportenHandler(clientID, orgno string) http.HandlerFunc

func ResourceDoesNotExist

func ResourceDoesNotExist(cli client.Client, key client.ObjectKey, instance client.Object) func() bool

func ResourceExists

func ResourceExists(cli client.Client, key client.ObjectKey, instance client.Object) func() bool

func SetupTestEnv

func SetupTestEnv(handler http.HandlerFunc) (*envtest.Environment, *client.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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