func boxByID(s string) (core.Box, error) { settings := util.NewCheapSettings(nil) env := util.NewEnvironment() dockerOptions, err := NewDockerOptions(settings, env) if err != nil { return nil, err } return NewDockerBox( &core.BoxConfig{ID: s}, core.EmptyPipelineOptions(), dockerOptions, ) }
func DefaultTestPipelineOptions(s *util.TestSuite, more map[string]interface{}) *PipelineOptions { overrides := map[string]interface{}{ "debug": true, // "target": "test", "working-dir": s.WorkingDir(), } for k, v := range more { overrides[k] = v } settings := util.NewCheapSettings(overrides) options, err := NewPipelineOptions(settings, util.NewEnvironment()) if err != nil { s.Error(err) } return options }