keto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultKetoImageName specifies the Keto docker image name to use in tests.
	DefaultKetoImageName = "oryd/keto"
	// DefaultKetoEnvVarImageName is the environment variable name for default Keto docker image name.
	DefaultKetoEnvVarImageName = "TEST_ORY_KETO_IMAGE_NAME"
	// DefaultKetoImageVersion specifies the Keto docker image version to use in tests.
	DefaultKetoImageVersion = "v0.6.0-alpha.1"
	// DefaultKetoEnvVarImageVersion is the environment variable name for default Keto docker image version.
	DefaultKetoEnvVarImageVersion = "TEST_ORY_KETO_IMAGE_VERSION"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TestEnvContext

type TestEnvContext interface {
	Cleanup()
	WriteClient() *ketoClient.OryKeto
	ReadClient() *ketoClient.OryKeto
	Pool() *dockertest.Pool
	WritePort() string
	ReadPort() string
}

TestEnvContext represents a test keto environment context.

func SetupTestKeto

func SetupTestKeto(t *testing.T, postgresCtx postgres.TestEnvContext, namespace ...string) TestEnvContext

SetupTestKeto sets up keto environment for tests.

Jump to

Keyboard shortcuts

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