Documentation ¶
Index ¶
- func ChangePosbusAutoAttribute(t *testing.T, node universe.Node, world universe.World, userId *umid.UMID)
- func ChangeRenderAutoAttribute(t *testing.T, node universe.Node, world universe.World)
- func ContainerController(t *testing.T, networkName string, config config.Postgres) testcontainers.Container
- func ContainerMediaManager(t *testing.T, networkName string) (testcontainers.Container, *url.URL)
- func ContainerNetwork(t *testing.T, name string)
- func ContainerPostgres(t *testing.T, networkName string) (testcontainers.Container, config.Postgres)
- func Controller(t *testing.T, pgConfig config.Postgres, mmURL *url.URL) (*url.URL, universe.Node)
- func GetFakeUser() universe.User
- func GuestAccount(ctURL *url.URL) (*umid.UMID, string, error)
- func Object(t *testing.T, node universe.Node, w universe.World, name string) universe.Object
- func UserBlueprint(i int, last entry.User) entry.User
- func World(t *testing.T, node universe.Node, creator *entry.User, name string) universe.World
- type FakeUser
- func (m *FakeUser) AddInfluxTags(prefix string, point *influxWrite.Point) *influxWrite.Point
- func (m *FakeUser) GetID() umid.UMID
- func (m *FakeUser) GetLastPosTime() int64
- func (m *FakeUser) GetLastSendPosTime() int64
- func (m *FakeUser) GetTransform() *cmath.TransformNoScale
- func (m *FakeUser) GetUserDefinition() *posbus.UserData
- func (m *FakeUser) GetWorld() universe.World
- func (m *FakeUser) LockSendBuffer()
- func (m *FakeUser) ReleaseSendBuffer()
- func (m *FakeUser) Send(message *websocket.PreparedMessage) error
- func (m *FakeUser) SendDirectly(message *websocket.PreparedMessage) error
- func (m *FakeUser) SetLastSendPosTime(i int64)
- func (m *FakeUser) SetObject(o universe.Object)
- func (m *FakeUser) SetTransform(t cmath.TransformNoScale)
- func (m *FakeUser) SetWorld(w universe.World)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePosbusAutoAttribute ¶
func ChangePosbusAutoAttribute(t *testing.T, node universe.Node, world universe.World, userId *umid.UMID)
Change an attribute to trigger the backend to send a update message.
func ContainerController ¶
func ContainerController(t *testing.T, networkName string, config config.Postgres) testcontainers.Container
Run the controller as a container.
func ContainerMediaManager ¶
Run the Media manager as a container.
func ContainerNetwork ¶
Create a (docker) network to put multiple containers into.
func ContainerPostgres ¶
func ContainerPostgres(t *testing.T, networkName string) (testcontainers.Container, config.Postgres)
Startup a postgresql database.
func Controller ¶
Run the controller in a goroutine.
func GetFakeUser ¶
func GuestAccount ¶
Create a guest account in the backend through the API. Returns the guest user ID and authentication token (JWT). For use in integration tests.
func UserBlueprint ¶
fixtory blueprint for users
Types ¶
type FakeUser ¶
Fake user for test fixtures. Minimal implementation of universe.User interface TODO: move to 'fakes' package(?)
func (*FakeUser) AddInfluxTags ¶
func (m *FakeUser) AddInfluxTags( prefix string, point *influxWrite.Point) *influxWrite.Point
func (*FakeUser) GetLastPosTime ¶
func (*FakeUser) GetLastSendPosTime ¶
func (*FakeUser) GetTransform ¶
func (m *FakeUser) GetTransform() *cmath.TransformNoScale
func (*FakeUser) GetUserDefinition ¶
func (*FakeUser) LockSendBuffer ¶
func (m *FakeUser) LockSendBuffer()
func (*FakeUser) ReleaseSendBuffer ¶
func (m *FakeUser) ReleaseSendBuffer()
func (*FakeUser) SendDirectly ¶
func (m *FakeUser) SendDirectly(message *websocket.PreparedMessage) error
func (*FakeUser) SetLastSendPosTime ¶
func (*FakeUser) SetTransform ¶
func (m *FakeUser) SetTransform(t cmath.TransformNoScale)
Click to show internal directories.
Click to hide internal directories.