acctest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	EnvAcceptance = "KERNEL_ACC"
	EnvAPIKey     = "KERNEL_API_KEY"
	EnvBaseURL    = "KERNEL_BASE_URL"
	EnvProjectID  = "KERNEL_PROJECT_ID"
	// EnvAltProjectID names a second project for cross-project override tests.
	EnvAltProjectID = "KERNEL_ALT_PROJECT_ID"
	// The audit-log export destination test needs an S3 bucket and a role
	// that trusts Kernel; it skips when these are unset.
	EnvAuditExportBucket  = "KERNEL_AUDIT_EXPORT_BUCKET"
	EnvAuditExportRegion  = "KERNEL_AUDIT_EXPORT_REGION"
	EnvAuditExportRoleARN = "KERNEL_AUDIT_EXPORT_ROLE_ARN"
)

Variables

This section is empty.

Functions

func AcceptanceEnabled

func AcceptanceEnabled() bool

func CleanupAuditLogExportDestination added in v0.3.0

func CleanupAuditLogExportDestination(t testing.TB, id string)

func CleanupBrowserPool

func CleanupBrowserPool(t testing.TB, projectID, id string)

CleanupBrowserPool registers a cleanup that deletes the pool from projectID; empty means the env-configured default project.

func CleanupExtension

func CleanupExtension(t testing.TB, projectID, id string)

CleanupExtension registers a cleanup that deletes the extension from projectID; empty means the env-configured default project.

func CleanupProfile

func CleanupProfile(t testing.TB, projectID, id string)

CleanupProfile registers a cleanup that deletes the profile from projectID; empty means the env-configured default project.

func CleanupProject

func CleanupProject(t testing.TB, id string)

func CleanupProxy

func CleanupProxy(t testing.TB, projectID, id string)

CleanupProxy registers a cleanup that deletes the proxy from projectID; empty means the env-configured default project.

func CleanupTelemetryDestination added in v0.2.0

func CleanupTelemetryDestination(t testing.TB, id string)

func ClientFromEnv

func ClientFromEnv() kernelclient.Clients

func IsNotFound

func IsNotFound(err error) bool

IsNotFound reports whether err is a Kernel API 404, which acceptance checks treat as "resource gone" rather than a failure.

func PreCheck

func PreCheck(t testing.TB)

func ProtoV6ProviderFactories

func ProtoV6ProviderFactories() map[string]func() (tfprotov6.ProviderServer, error)

func ProviderConfig

func ProviderConfig() string

func UniqueName

func UniqueName(t testing.TB, prefix string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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