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.
Click to show internal directories.
Click to hide internal directories.