Documentation ¶
Index ¶
- func GetClusterRole(name string) rbacv1.ClusterRole
- func GetClusterRoleBinding(name string) rbacv1.ClusterRoleBinding
- func GetRole(name string) rbacv1.Role
- func GetRoleBinding(name string) rbacv1.RoleBinding
- func SetupIntegrationTest(ctx context.Context, t *testing.T) (debug func(), openfgaimpl *openfga.TupleStoreAndChecker)
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 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.
Click to show internal directories.
Click to hide internal directories.