rbacconversiontesting

package
v0.0.0-...-5b87a2c Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterRole

func GetClusterRole(name string) rbacv1.ClusterRole

func GetClusterRoleBinding

func GetClusterRoleBinding(name string) rbacv1.ClusterRoleBinding

func GetRole

func GetRole(name string) rbacv1.Role

func GetRoleBinding

func GetRoleBinding(name string) rbacv1.RoleBinding

func SetupIntegrationTest

func SetupIntegrationTest(ctx context.Context, t *testing.T) (debug func(), openfgaimpl *openfga.TupleStoreAndChecker)

SetupIntegrationTest reads the common testdata, converts RBAC into tuples, connects to either localhost:8081, or sets up an in-memory server (depending on callClient), then initializes the store, and writes all the tuples. The function returned should be ran deferred by the caller, for outputting debug information for failed tests. TODO: These now require OpenFGA to be serving on localhost:8081

Types

This section is empty.

Jump to

Keyboard shortcuts

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