test

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkCheckWithDirectResolution added in v0.3.4

func BenchmarkCheckWithDirectResolution(b *testing.B, datastore storage.OpenFGADatastore)

BenchmarkCheckWithDirectResolution ensures that when the user can be found through direct resolution, the code that tries to find the user through usersets is aborted immediately.

func BenchmarkCheckWithTrace

func BenchmarkCheckWithTrace(b *testing.B, datastore storage.OpenFGADatastore)

func BenchmarkCheckWithoutTrace

func BenchmarkCheckWithoutTrace(b *testing.B, datastore storage.OpenFGADatastore)

func BenchmarkListObjectsWithConcurrentChecks

func BenchmarkListObjectsWithConcurrentChecks(b *testing.B, ds storage.OpenFGADatastore)

func BenchmarkListObjectsWithReverseExpand

func BenchmarkListObjectsWithReverseExpand(b *testing.B, ds storage.OpenFGADatastore)

func CheckQueryTest

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

func ConnectedObjectsTest

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

func ListObjectsTest

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

func NewMockStreamServer

func NewMockStreamServer(size int) *mockStreamServer

func ReadAllTuplesInvalidContinuationTokenTest

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

func ReadAllTuplesTest

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

func ReadAuthorizationModelTest

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

func ReadQueryErrorTest

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

func ReadQuerySuccessTest

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

func RunAllBenchmarks

func RunAllBenchmarks(b *testing.B, ds storage.OpenFGADatastore)

func RunAllTests

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

func RunCheckBenchmarks

func RunCheckBenchmarks(b *testing.B, ds storage.OpenFGADatastore)

func RunCommandTests

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

func RunListObjectsBenchmarks

func RunListObjectsBenchmarks(b *testing.B, ds storage.OpenFGADatastore)

func RunQueryTests

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

func TestCheckQueryAuthorizationModelsVersioning

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

TestCheckQueryAuthorizationModelsVersioning ensures that Check is using the "auth model id" passed in as parameter to expand the usersets

func TestCreateStore

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

func TestDeleteStore

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

func TestExpandQuery

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

func TestExpandQueryErrors

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

func TestGetStoreQuery

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

func TestGetStoreSucceeds

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

func TestListStores

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

func TestReadAssertionQuery

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

func TestReadAuthorizationModelQueryErrors

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

func TestReadAuthorizationModelsInvalidContinuationToken

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

func TestReadAuthorizationModelsWithPaging

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

func TestReadAuthorizationModelsWithoutPaging

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

func TestReadChanges

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

func TestReadChangesReturnsSameContTokenWhenNoChanges

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

func TestSuccessfulReadAuthorizationModelQuery

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

func TestWriteAssertions

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

func TestWriteCommand

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

func WriteAuthorizationModelTest

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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