error) { templateExecutor, err := version1.NewTemplateExecutor("version1/abc.tmpl", "version1/def.tmpl") if err != nil { return nil, err } manager := nginx.NewFakeManager("/etc/nginx") cnf, err := NewConfigurator(manager, createTestStaticConfigParams(), NewDefaultConfigParams(false), templateExecutor, templateExecutorV2, false, false, nil, false, nil, false) if err != nil { return nil, err } cnf.isReloadsEnabled = true return cnf, nil }