test

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertionsTest

func AssertionsTest(t *testing.T, datastore storage.OpenFGADatastore)

func BootstrapFGAStore added in v1.5.4

func BootstrapFGAStore(
	t require.TestingT,
	ds storage.OpenFGADatastore,
	model string,
	tupleStrs []string,
) (string, *openfgav1.AuthorizationModel)

BootstrapFGAStore is a utility to write an FGA model and relationship tuples to a datastore. It doesn't validate the model. It validates the format of the tuples, but not the types within them. It returns the store_id and FGA AuthorizationModel, respectively.

func FindLatestAuthorizationModelTest added in v1.5.0

func FindLatestAuthorizationModelTest(t *testing.T, datastore storage.OpenFGADatastore)

func ReadAndReadPageTest added in v1.5.5

func ReadAndReadPageTest(t *testing.T, datastore storage.OpenFGADatastore)

func ReadAuthorizationModelsTest

func ReadAuthorizationModelsTest(t *testing.T, datastore storage.OpenFGADatastore)

func ReadChangesTest

func ReadChangesTest(t *testing.T, datastore storage.OpenFGADatastore)

func ReadStartingWithUserTest

func ReadStartingWithUserTest(t *testing.T, datastore storage.OpenFGADatastore)

func RunAllTests

func RunAllTests(t *testing.T, ds storage.OpenFGADatastore)

func StoreTest

func StoreTest(t *testing.T, datastore storage.OpenFGADatastore)

func TupleWritingAndReadingTest

func TupleWritingAndReadingTest(t *testing.T, datastore storage.OpenFGADatastore)

func WriteAndReadAuthorizationModelTest

func WriteAndReadAuthorizationModelTest(t *testing.T, datastore storage.OpenFGADatastore)

func WriteTuplesWithMaxTuplesPerWrite added in v1.10.0

func WriteTuplesWithMaxTuplesPerWrite(datastore storage.OpenFGADatastore, ctx context.Context) func(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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