use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class InvalidConfigMessageRemoverIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
configFile = TestFileUtil.createTempFileInSubfolder("cruise-config.xml");
GoConfigFileHelper.clearConfigVersions();
configHelper = new GoConfigFileHelper();
configHelper.onSetUp();
SystemEnvironment systemEnvironment = new SystemEnvironment();
systemEnvironment.setProperty(SystemEnvironment.CONFIG_FILE_PROPERTY, configFile.getAbsolutePath());
new ConfigRepository(systemEnvironment).initialize();
serverHealthService.removeAllLogs();
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class PipelineScheduleQueueIntegrationTest method setup.
@Before
public void setup() throws Exception {
configFileEditor = new GoConfigFileHelper();
configFileEditor.onSetUp();
dbHelper.onSetUp();
configFileEditor.usingCruiseConfigDao(goConfigDao).initializeConfigFile();
fixture = new PipelineWithTwoStages(materialRepository, transactionTemplate);
fixture.usingDbHelper(dbHelper).usingConfigHelper(configFileEditor).onSetUp();
newCause = BuildCause.createWithEmptyModifications();
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class ConfigSaveDeadlockDetectionIntegrationTest method setup.
@Before
public void setup() throws Exception {
configHelper = new GoConfigFileHelper(ConfigFileFixture.XML_WITH_SINGLE_ENVIRONMENT);
configHelper.usingCruiseConfigDao(goConfigDao).initializeConfigFile();
configHelper.onSetUp();
goConfigService.forceNotifyListeners();
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class ChangesetServiceIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
dbHelper.onSetUp();
configHelper = new GoConfigFileHelper(goConfigDao);
configHelper.onSetUp();
git = MaterialsMother.gitMaterial("http://google.com", null, "master");
git.setFolder("git");
hg = MaterialsMother.hgMaterial();
hg.setFolder("hg");
svn = MaterialsMother.svnMaterial("http://google.com/svn");
svn.setFolder("svn");
pipelineConfig = configHelper.addPipeline("foo-bar", "stage", new MaterialConfigs(hg.config()), "build");
pipelineConfigWithTwoMaterials = configHelper.addPipeline("foo", "stage", new MaterialConfigs(git.config(), hg.config()), "build");
pipelineConfigWithSvn = configHelper.addPipeline("bar", "stage", new MaterialConfigs(svn.config()), "build");
notifier.disableUpdates();
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class InvalidConfigurationTest method useConfig.
private void useConfig(String configContents) throws Exception {
GoConfigFileHelper goConfigFileHelper = new GoConfigFileHelper(configContents);
goConfigFileHelper.initializeConfigFile();
}
Aggregations