// NewConfig returns an instance of Config with reasonable defaults. func NewConfig() *Config { c := &Config{} c.Meta = meta.NewConfig() c.Deployd = deployd.NewConfig() c.HTTPD = httpd.NewConfig() c.Docker = docker.NewConfig() c.Bridges = docker.NewBridgeConfig() c.Metrics = metricsd.NewConfig() c.Events = eventsd.NewConfig() c.DNS = dns.NewConfig() return c }
func (s *S) SetUpSuite(c *check.C) { if os.Getenv(meta.MEGAM_HOME) != "" { meta.NewConfig().MkGlobal() } }