Documentation ¶
Index ¶
- func AssertionsTest(t *testing.T, datastore storage.OpenFGADatastore)
- func BootstrapFGAStore(t require.TestingT, ds storage.OpenFGADatastore, model string, ...) (string, *openfgav1.AuthorizationModel)
- func FindLatestAuthorizationModelTest(t *testing.T, datastore storage.OpenFGADatastore)
- func ReadAuthorizationModelsTest(t *testing.T, datastore storage.OpenFGADatastore)
- func ReadChangesTest(t *testing.T, datastore storage.OpenFGADatastore)
- func ReadPageTestCorrectnessOfContinuationTokens(t *testing.T, datastore storage.OpenFGADatastore)
- func ReadPageTestCorrectnessOfContinuationTokensV2(t *testing.T, datastore storage.OpenFGADatastore)
- func ReadPageTestCorrectnessOfTuples(t *testing.T, datastore storage.OpenFGADatastore)
- func ReadStartingWithUserTest(t *testing.T, datastore storage.OpenFGADatastore)
- func ReadTestCorrectnessOfTuples(t *testing.T, datastore storage.OpenFGADatastore)
- func RunAllTests(t *testing.T, ds storage.OpenFGADatastore)
- func StoreTest(t *testing.T, datastore storage.OpenFGADatastore)
- func TupleWritingAndReadingTest(t *testing.T, datastore storage.OpenFGADatastore)
- func WriteAndReadAuthorizationModelTest(t *testing.T, datastore storage.OpenFGADatastore)
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 ReadAuthorizationModelsTest ¶
func ReadAuthorizationModelsTest(t *testing.T, datastore storage.OpenFGADatastore)
func ReadChangesTest ¶
func ReadChangesTest(t *testing.T, datastore storage.OpenFGADatastore)
func ReadPageTestCorrectnessOfContinuationTokens ¶ added in v1.5.0
func ReadPageTestCorrectnessOfContinuationTokens(t *testing.T, datastore storage.OpenFGADatastore)
func ReadPageTestCorrectnessOfContinuationTokensV2 ¶ added in v1.5.0
func ReadPageTestCorrectnessOfContinuationTokensV2(t *testing.T, datastore storage.OpenFGADatastore)
func ReadPageTestCorrectnessOfTuples ¶ added in v1.5.0
func ReadPageTestCorrectnessOfTuples(t *testing.T, datastore storage.OpenFGADatastore)
func ReadStartingWithUserTest ¶
func ReadStartingWithUserTest(t *testing.T, datastore storage.OpenFGADatastore)
func ReadTestCorrectnessOfTuples ¶ added in v1.5.0
func ReadTestCorrectnessOfTuples(t *testing.T, datastore storage.OpenFGADatastore)
func RunAllTests ¶
func RunAllTests(t *testing.T, ds storage.OpenFGADatastore)
func TupleWritingAndReadingTest ¶
func TupleWritingAndReadingTest(t *testing.T, datastore storage.OpenFGADatastore)
func WriteAndReadAuthorizationModelTest ¶
func WriteAndReadAuthorizationModelTest(t *testing.T, datastore storage.OpenFGADatastore)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.