testutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntegratedClient

func IntegratedClient(
	t *testing.T,
) (
	assert *require.Assertions,
	client *v1.Client,
)

func Myself

func Myself() (
	ret struct {
		PrincipalID int
		KID         string
	},
)

func NewFolder

func NewFolder(
	t *testing.T,
	client *v1.Client,
) (
	ret *v1.Folder,
	deleter func(),
)

func NewPrincipal

func NewPrincipal(
	t *testing.T,
	client *v1.Client,
	project int,
) (
	ret *v1.ServicePrincipal,
	deleter func(),
)

func NewProject

func NewProject(
	t *testing.T,
	client *v1.Client,
) (
	ret *v1.Project,
	deleter func(),
)

func NewTestClient

func NewTestClient(v any, s ...int) *v1.Client

func NewUser

func NewUser(
	t *testing.T,
	client *v1.Client,
) (
	ret *v1.User,
	deleter func(),
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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