test

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupEndpointFromContext

func CleanupEndpointFromContext(ctx inttest.TestContext, keyEndpointID any, projectKey any) error

func CreateTestServiceEndpoint

func CreateTestServiceEndpoint(ctx inttest.TestContext, projectName, projectID string) (string, string, error)

func DeleteEndpointByID

func DeleteEndpointByID(ctx inttest.TestContext, endpointID, projectID string) error

func DeleteProjectByID

func DeleteProjectByID(ctx inttest.TestContext, projectID string) error

func GetTestProjectName

func GetTestProjectName(ctx inttest.TestContext) (string, error)

func ProvisionProject

func ProvisionProject(ctx inttest.TestContext, projectName string) (string, error)

func ResolveProcessTemplate

func ResolveProcessTemplate(ctx inttest.TestContext, client core.Client, preferred string) (string, error)

func WaitForOperation

func WaitForOperation(ctx inttest.TestContext, opRef *operations.OperationReference) error

Types

type CtxKey

type CtxKey string
const (
	CtxKeyProjectName CtxKey = "serviceendpoint/test/project-name"
	CtxKeyProjectID   CtxKey = "serviceendpoint/test/project-id"
	CtxKeyEndpointID  CtxKey = "serviceendpoint/test/endpoint-id"
)

type SharedProject

type SharedProject struct {
	// contains filtered or unexported fields
}

func NewSharedProject

func NewSharedProject(name string) *SharedProject

func (*SharedProject) Cleanup

func (p *SharedProject) Cleanup() error

func (*SharedProject) Ensure

func (p *SharedProject) Ensure(ctx inttest.TestContext) error

Jump to

Keyboard shortcuts

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