// NewConfig returns an instance of Config with reasonable defaults. func NewConfig() *Config { c := &Config{} c.Meta = meta.NewConfig() c.Gulpd = gulpd.NewConfig() c.HTTPD = httpd.NewConfig() return c }
func (s *S) SetUpSuite(c *check.C) { cfg := meta.NewConfig() cfg.MkGlobal() s.config = cfg m := make(map[string]string) m[CHEFREPO_GIT] = "https://github.com/megamsys/chef-repo.git" m[CHEFREPO_TARBALL] = "https://github.com/megamsys/chef-repo/archive/0.96.tar.gz" s.M = m c.Assert(s.config, check.NotNil) c.Assert(s.M, check.NotNil) }