test

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFilesystemLayouts added in v0.0.6

func CreateFilesystemLayouts(t *testing.T, repo *repository.Store, fsls []*adminv2.FilesystemServiceCreateRequest)

func CreateIPs

func CreateIPs(t *testing.T, repo *repository.Store, ips []*apiv2.IPServiceCreateRequest)

func CreateImages

func CreateImages(t *testing.T, repo *repository.Store, images []*adminv2.ImageServiceCreateRequest)

func CreateMachines added in v0.0.6

func CreateMachines(t *testing.T, testStore *testStore, machines []*metal.Machine)

func CreateMachinesWithAllocation added in v0.0.6

func CreateMachinesWithAllocation(t *testing.T, repo *repository.Store, machines []*apiv2.MachineServiceCreateRequest)

func CreatePartitions

func CreatePartitions(t *testing.T, repo *repository.Store, partitions []*adminv2.PartitionServiceCreateRequest)

func CreateProjectInvites added in v0.0.6

func CreateProjectInvites(t *testing.T, testStore *testStore, invites []*apiv2.ProjectInvite)

func CreateProjectMemberships added in v0.0.6

func CreateProjectMemberships(t *testing.T, testStore *testStore, project string, memberships []*repository.ProjectMemberCreateRequest)

func CreateProjects

func CreateProjects(t *testing.T, repo *repository.Store, projects []*apiv2.ProjectServiceCreateRequest)

func CreateSizes added in v0.0.5

func CreateSizes(t *testing.T, repo *repository.Store, sizes []*adminv2.SizeServiceCreateRequest)

func CreateTenantInvites added in v0.0.6

func CreateTenantInvites(t *testing.T, testStore *testStore, invites []*apiv2.TenantInvite)

func CreateTenantMemberships added in v0.0.6

func CreateTenantMemberships(t *testing.T, testStore *testStore, tenant string, memberships []*repository.TenantMemberCreateRequest)

func CreateTenants

func CreateTenants(t *testing.T, testStore *testStore, tenants []*apiv2.TenantServiceCreateRequest)

func DeleteIPs added in v0.0.6

func DeleteIPs(t *testing.T, testStore *testStore)

func DeleteMachines added in v0.0.6

func DeleteMachines(t *testing.T, testStore *testStore)

func DeleteNetworks added in v0.0.3

func DeleteNetworks(t *testing.T, testStore *testStore)

func StartAsynqServer added in v0.0.3

func StartAsynqServer(t *testing.T, log *slog.Logger, repository *repository.Store, redis *redis.Client) func()

func StartIpam

func StartIpam(t *testing.T) (ipamv1connect.IpamServiceClient, func())

func StartMasterdataInMemory

func StartMasterdataInMemory(t *testing.T, log *slog.Logger) (mdc.Client, *grpc.ClientConn, func())

func StartMasterdataWithCockroach added in v0.0.6

func StartMasterdataWithCockroach(t *testing.T, log *slog.Logger) (mdc.Client, *grpc.ClientConn, func())

func StartRepositoryWithCleanup added in v0.0.3

func StartRepositoryWithCleanup(t *testing.T, log *slog.Logger, testOpts ...testOpt) (*testStore, func())

func StartRethink

func StartRethink(t testing.TB, log *slog.Logger) (generic.Datastore, r.ConnectOpts, func())

func StartValkey

func StartValkey(t *testing.T) (*redis.Client, func())

func WithCockroach added in v0.0.6

func WithCockroach(with bool) *testOptCoackroach

func WithValkey added in v0.0.6

func WithValkey(with bool) *testOptValkey

Types

type NetworkMap added in v0.0.3

type NetworkMap map[string]string

NetworkMap maps network.Name to network.Id

func AllocateNetworks added in v0.0.3

func AllocateNetworks(t *testing.T, repo *repository.Store, nws []*apiv2.NetworkServiceCreateRequest) NetworkMap

Jump to

Keyboard shortcuts

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