testenv

package
v0.1.38 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 15 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

type VoidProducerMock added in v0.1.18

type VoidProducerMock struct{}

func (VoidProducerMock) PublishAspectDelete added in v0.1.18

func (v VoidProducerMock) PublishAspectDelete(id string, owner string) error

func (VoidProducerMock) PublishAspectUpdate added in v0.1.18

func (v VoidProducerMock) PublishAspectUpdate(aspect models.Aspect, owner string) error

func (VoidProducerMock) PublishDevice added in v0.1.18

func (v VoidProducerMock) PublishDevice(element models.Device, userId string) error

func (VoidProducerMock) PublishDeviceDelete added in v0.1.18

func (v VoidProducerMock) PublishDeviceDelete(id string, owner string) error

func (VoidProducerMock) PublishDeviceGroup added in v0.1.18

func (v VoidProducerMock) PublishDeviceGroup(element models.DeviceGroup, owner string) error

func (VoidProducerMock) PublishDeviceGroupDelete added in v0.1.18

func (v VoidProducerMock) PublishDeviceGroupDelete(id string, owner string) error

func (VoidProducerMock) PublishDeviceRights added in v0.1.18

func (v VoidProducerMock) PublishDeviceRights(deviceId string, userId string, rights model.ResourceRights) (err error)

func (VoidProducerMock) PublishHub added in v0.1.18

func (v VoidProducerMock) PublishHub(hub models.Hub, userId string) (err error)

func (VoidProducerMock) SendDone added in v0.1.18

func (v VoidProducerMock) SendDone(msg donewait.DoneMsg) error

Jump to

Keyboard shortcuts

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