testenv

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 CreateTestEnv(ctx context.Context, wg *sync.WaitGroup, t *testing.T, cm ...func(*config.Config)) (conf config.Config, err error)

func Jwtdelete

func Jwtdelete(token string, url string) (resp *http.Response, err error)

func Jwtput

func Jwtput(token string, url string, contenttype string, body *bytes.Buffer) (resp *http.Response, err error)

func StartController

func StartController(baseCtx context.Context, wg *sync.WaitGroup, conf config.Config) (ctrl *controller.Controller, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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