Documentation
¶
Index ¶
- Constants
- func AssertSecretExists(t *testing.T, cli client.Client, name string, namespace string, ...)
- func ContainsOwnerRef(refs []metav1.OwnerReference, owner clients.Instance) bool
- func IDPortenHandler(clientID string) http.HandlerFunc
- func MaskinportenHandler(clientID, orgno string) http.HandlerFunc
- func ResourceDoesNotExist(cli client.Client, key client.ObjectKey, instance client.Object) func() bool
- func ResourceExists(cli client.Client, key client.ObjectKey, instance client.Object) func() bool
- func SetupTestEnv(handler http.HandlerFunc) (*envtest.Environment, *client.Client, error)
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 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 ResourceExists ¶
func SetupTestEnv ¶
func SetupTestEnv(handler http.HandlerFunc) (*envtest.Environment, *client.Client, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.