Documentation ¶
Index ¶
- func Allow(role *types.Role, r string, oo ...string)
- func AllowMe(mrg myRoleGetter, r string, oo ...string)
- func AllowMeDalConnectionCRUD(mrg myRoleGetter)
- func AllowMeDalConnectionSearch(mrg myRoleGetter)
- func AllowMeModuleCRUD(mrg myRoleGetter)
- func AllowMeModuleCreate(mrg myRoleGetter)
- func AllowMeModuleSearch(mrg myRoleGetter)
- func AllowMeRecordCRUD(mrg myRoleGetter)
- func AllowMeWorkflowSearch(mrg myRoleGetter)
- func AssertBody(expected string) assertFn
- func AssertError(expectedError string) assertFn
- func AssertErrorP(expectedError string) assertFn
- func AssertNoErrors(rsp *http.Response, _ *http.Request) (err error)
- func AssertRecordValueError(exp ...*types.RecordValueError) assertFn
- func BindAuthMiddleware(r chi.Router)
- func DecodeBody(rsp *http.Response, s interface{}) error
- func Deny(role *types.Role, r string, oo ...string)
- func DenyMe(mrg myRoleGetter, r string, oo ...string)
- func Dump(rsp *http.Response, _ *http.Request) (err error)
- func Grant(rr ...*rbac.Rule)
- func InitFileUpload(t *testing.T, apiTest *apitest.APITest, endpoint string, ...) *apitest.Response
- func JSON(i interface{}) string
- func LoadLabelsFromStore(t *testing.T, s store.Storer, resKind string, id uint64) (sl map[string]string)
- func NewIntegrationTestApp(ctx context.Context, initTestServices func(*app.CortezaApp) error) *app.CortezaApp
- func RecursiveDotEnvLoad()
- func ReqHeaderRawAuthBearer(token []byte) apitest.Intercept
- func SearchWithLabelsViaAPI(api *apitest.APITest, t *testing.T, endpoint string, res interface{}, ...)
- func SetLabelsViaAPI(api *apitest.APITest, t *testing.T, endpoint string, in, out interface{})
- func UpdateRBAC(rr ...uint64)
- type RecordValueErrorSetResponse
- type StdErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowMeDalConnectionCRUD ¶
func AllowMeDalConnectionCRUD(mrg myRoleGetter)
func AllowMeDalConnectionSearch ¶
func AllowMeDalConnectionSearch(mrg myRoleGetter)
func AllowMeModuleCRUD ¶
func AllowMeModuleCRUD(mrg myRoleGetter)
func AllowMeModuleCreate ¶
func AllowMeModuleCreate(mrg myRoleGetter)
func AllowMeModuleSearch ¶
func AllowMeModuleSearch(mrg myRoleGetter)
func AllowMeRecordCRUD ¶
func AllowMeRecordCRUD(mrg myRoleGetter)
func AllowMeWorkflowSearch ¶
func AllowMeWorkflowSearch(mrg myRoleGetter)
func AssertBody ¶
func AssertBody(expected string) assertFn
AssertBody compares the raw body to the provided string
func AssertError ¶
func AssertError(expectedError string) assertFn
AssertError ensures there are no errors in the response
func AssertErrorP ¶
func AssertErrorP(expectedError string) assertFn
AssertErrorP checks if the expected error is part of the error message
func AssertNoErrors ¶
AssertNoErrors ensures there are no errors in the response
func AssertRecordValueError ¶
func AssertRecordValueError(exp ...*types.RecordValueError) assertFn
Asserts that all expected errors are returned
Compares each error by Kind, Message and Meta.field ¶
Note: This assertion always expects errors!
func BindAuthMiddleware ¶
func BindAuthMiddleware(r chi.Router)
func DecodeBody ¶
decodes response body to given struct
func InitFileUpload ¶
func LoadLabelsFromStore ¶
func NewIntegrationTestApp ¶
func NewIntegrationTestApp(ctx context.Context, initTestServices func(*app.CortezaApp) error) *app.CortezaApp
func RecursiveDotEnvLoad ¶
func RecursiveDotEnvLoad()
RecursiveDotEnvLoad loads ENV variables from .evn files 3 levels down
func ReqHeaderRawAuthBearer ¶
func SearchWithLabelsViaAPI ¶
func SetLabelsViaAPI ¶
func UpdateRBAC ¶
func UpdateRBAC(rr ...uint64)
Types ¶
type RecordValueErrorSetResponse ¶
type RecordValueErrorSetResponse struct { Error struct { Message string Details []types.RecordValueError } }
type StdErrorResponse ¶
type StdErrorResponse struct { Error struct { Message string } }
Click to show internal directories.
Click to hide internal directories.