test

package
v0.0.0-...-71115bb Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 32 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 AnsattportenHandler

func AnsattportenHandler(clientID string) http.HandlerFunc

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