Documentation ¶
Index ¶
- func BuildSimpleGraph(eventtype, consumerrole string) string
- type Fullstack
- func (ft *Fullstack) CreateAccount(name string, aType api.Account_Type) *xbus.Client
- func (ft *Fullstack) CreateConsumer(name string, roles []string) (*xbus.Client, *xbus.Actor)
- func (ft *Fullstack) CreateEmitter(name string, roles []string) (*xbus.Client, *xbus.Actor)
- func (ft *Fullstack) CreateRole(actorKind api.Actor_Kind, name string) api.UUID
- func (ft *Fullstack) CreateWorker(name string, roles []string) (*xbus.Client, *xbus.Actor)
- func (ft *Fullstack) GetEnvStateChan(emitter *xbus.Actor, envID api.UUID) (<-chan api.EmitterEnvelopeState, *nats.Subscription)
- func (ft *Fullstack) InstallGraph(graph string)
- func (ft *Fullstack) ServerStart() bool
- func (ft *Fullstack) ServerStop()
- func (ft *Fullstack) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSimpleGraph ¶
BuildSimpleGraph builds a graph
Types ¶
type Fullstack ¶
type Fullstack struct { T *testing.T ServerCert []byte Server *server.Server Client *xbus.Client Logger *testutils.TestLogger Model *model.Model DB *yago.DB CloseDB sqldb.CloseFunction }
Fullstack is the stub we use in our tests
func InitFullstack ¶
InitFullstack is used to produce and kickstart a full stack environment ready for testing
func (*Fullstack) CreateAccount ¶
CreateAccount ...
func (*Fullstack) CreateConsumer ¶
CreateConsumer ...
func (*Fullstack) CreateEmitter ¶
CreateEmitter ...
func (*Fullstack) CreateRole ¶
CreateRole ...
func (*Fullstack) CreateWorker ¶
CreateWorker ...
func (*Fullstack) GetEnvStateChan ¶
func (ft *Fullstack) GetEnvStateChan(emitter *xbus.Actor, envID api.UUID) ( <-chan api.EmitterEnvelopeState, *nats.Subscription, )
GetEnvStateChan returns a chan and subscrition to an envelope state updates
func (*Fullstack) InstallGraph ¶
InstallGraph save & activate a graph
func (*Fullstack) ServerStart ¶
ServerStart is responsible to start the Xbus server
func (*Fullstack) ServerStop ¶
func (ft *Fullstack) ServerStop()
ServerStop is used during shutdown to properly exit all processes
Click to show internal directories.
Click to hide internal directories.