Versions in this module Expand all Collapse all v0 v0.1.1 Dec 4, 2019 Changes in this version + var GetDockerHostAddr = docker.HostAddr + func GetTLSCertPath() string + func GetTLSKeyPath() string + func Run(t *testing.T, i interface{}) + type FTPSettings struct + Addr string + Pass string + User string + type Initable interface + Init func(*testing.T) + type MysqlSettings struct + DatabaseName string + MigrationDir string + Password string + Port string + type PubSubSettings struct + ProjectID string + TopicSubscriptions []TopicSubscriptions + type RedisSettings struct + Password string + Port string + type RuntimeType int + const RuntimeTypeCommand + const RuntimeTypeService + type Settings struct + FTP *FTPSettings + MySQL *MysqlSettings + PubSub *PubSubSettings + Redis *RedisSettings + SUT *SutSettings + TLS *TLSSettings + type SutSettings struct + Dir string + Envs []string + Ports []int + RuntimeType RuntimeType + type TLSSettings struct + Hosts []string + type TestEnviorment struct + M *testing.M + SUT component.Component + func TestEnv(m *testing.M) *TestEnviorment + func (env *TestEnviorment) Prepare(cli *docker.Docker) error + func (env *TestEnviorment) Run() + func (env *TestEnviorment) Start(ctx context.Context) error + func (env *TestEnviorment) StartSutInCommandMode() error + func (env *TestEnviorment) Stop(ctx context.Context) error + func (env *TestEnviorment) StopSutInCommandMode(tcName string) error + func (env *TestEnviorment) WithFTP(settings FTPSettings) *TestEnviorment + func (env *TestEnviorment) WithMySQL(settings MysqlSettings) *TestEnviorment + func (env *TestEnviorment) WithPubSub(settings PubSubSettings) *TestEnviorment + func (env *TestEnviorment) WithRedis(settings RedisSettings) *TestEnviorment + func (env *TestEnviorment) WithSUT(settings SutSettings) *TestEnviorment + func (env *TestEnviorment) WithTLS(settings TLSSettings) *TestEnviorment + func (env *TestEnviorment) WriteComponentLogs(ctx context.Context, cpnt component.Component, prefix string) error + func (env *TestEnviorment) WriteLogs(ctx context.Context, tcName string) error + type TopicSubscriptions struct + Subscriptions []string + Topic string