Documentation ¶
Index ¶
- Constants
- func CreateMongoTestEnv(ctx context.Context, wg *sync.WaitGroup, t *testing.T) (ctrl *controller.Controller, err error)
- func CreateTestEnv(ctx context.Context, wg *sync.WaitGroup, t *testing.T, ...) (conf config.Config, err error)
- func Jwtdelete(token string, url string) (resp *http.Response, err error)
- func Jwtput(token string, url string, contenttype string, body *bytes.Buffer) (resp *http.Response, err error)
- func StartController(baseCtx context.Context, wg *sync.WaitGroup, conf config.Config) (ctrl *controller.Controller, err error)
Constants ¶
View Source
const AdminToken = `` /* 1232-byte string literal not displayed */
View Source
const AdminTokenUser = "admin"
View Source
const SecendOwnerTokenUser = "secondOwner"
View Source
const SecondOwnerToken = `` /* 1219-byte string literal not displayed */
View Source
const TestToken = `` /* 1216-byte string literal not displayed */
View Source
const TestTokenUser = "testOwner"
View Source
const Userid = "dd69ea0d-f553-4336-80f3-7f4567f85c7b"
View Source
const Userjwt = "" /* 1949-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func CreateMongoTestEnv ¶
func CreateMongoTestEnv(ctx context.Context, wg *sync.WaitGroup, t *testing.T) (ctrl *controller.Controller, err error)
func CreateTestEnv ¶
func StartController ¶
func StartController(baseCtx context.Context, wg *sync.WaitGroup, conf config.Config) (ctrl *controller.Controller, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.