testing

package
v0.0.0-...-56cb166 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInternalSecretBackend

func CreateInternalSecretBackend(c *gc.C, runner database.TxnRunner)

CreateInternalSecretBackend creates the internal secret backend on a controller. This should only ever be used from within other state packages. This avoids the need for introducing cyclic imports with tests.

func CreateKubernetesSecretBackend

func CreateKubernetesSecretBackend(c *gc.C, runner database.TxnRunner)

CreateKubernetesSecretBackend creates the kubernetes secret backend on a controller. This should only ever be used from within other state packages. This avoids the need for introducing cyclic imports with tests.

func CreateTestModel

func CreateTestModel(
	c *gc.C,
	txnRunner database.TxnRunnerFactory,
	name string,
) coremodel.UUID

CreateTestModel is a testing utility function for creating a basic model for a test to rely on. The created model will have it's uuid returned.

This should only ever be used from within other state packages to establish a reference model. This avoids the need for introducing cyclic imports with tests.

func DeleteTestModel

func DeleteTestModel(
	c *gc.C,
	txnRunner database.TxnRunnerFactory,
	uuid coremodel.UUID,
)

DeleteTestModel is responsible for cleaning up a testing mode previously created with CreateTestModel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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