tester

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PackerFileHeader = `
packer {
  required_plugins {
  }
}
`

Variables

This section is empty.

Functions

func NewTestContext

func NewTestContext(ctx context.Context, httpClient *http.Client) (context.Context, error)

func Test

func Test(t *testing.T, config *TestConfig)

Types

type PackerCheck

type PackerCheck interface {
	Check(ctx context.Context) error
	CheckName() string
}

PackerCheck represents a check for a scaleway resource

type PackerCleanup added in v1.4.0

type PackerCleanup interface {
	Cleanup(ctx context.Context, t *testing.T) error
}

PackerCleanup represents a cleanup function for a scaleway resource

type PackerCtx

type PackerCtx struct {
	ScwClient *scw.Client
	ProjectID string
}

func ExtractCtx

func ExtractCtx(ctx context.Context) *PackerCtx

type PackerCtxKey

type PackerCtxKey struct{}

type TestConfig

type TestConfig struct {
	Config  string
	Checks  []PackerCheck
	Cleanup []PackerCleanup
}

Jump to

Keyboard shortcuts

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