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, temporaryFolder);
fixture.usingDbHelper(dbHelper).usingConfigHelper(configFileEditor).onSetUp();
newCause = BuildCause.createWithEmptyModifications();
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class ArtifactsDirChangeTest method setUp.
@Before
public void setUp() throws Exception {
configHelper = new GoConfigFileHelper().usingCruiseConfigDao(configDao);
fixture = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
fixture.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
serverHealthService.removeAllLogs();
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class InvalidConfigMessageRemoverIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
File tempFolder = temporaryFolder.newFolder();
configFile = new File(tempFolder, "cruise-config.xml");
configFile.createNewFile();
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 CachedGoConfigIntegrationTest method setUp.
@BeforeEach
public void setUp() throws Exception {
configHelper = new GoConfigFileHelper(DEFAULT_XML_WITH_2_AGENTS);
configHelper.usingCruiseConfigDao(goConfigDao);
configHelper.onSetUp();
externalConfigRepo = TempDirUtils.createTempDirectoryIn(temporaryFolder, "config_repo").toFile();
latestModification = setupExternalConfigRepo(externalConfigRepo);
configHelper.addConfigRepo(createConfigRepoWithDefaultRules(git(externalConfigRepo.getAbsolutePath()), XmlPartialConfigProvider.providerName, "gocd-id"));
goConfigService.forceNotifyListeners();
configRepo = configWatchList.getCurrentConfigRepos().get(0);
cachedGoPartials.clear();
configHelper.addEnvironments("some_environment");
magicalGoConfigXmlLoader = new MagicalGoConfigXmlLoader(configCache, registry);
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class FullConfigSaveFlowTestBase method setUp.
@BeforeEach
public void setUp() throws Exception {
configHelper = new GoConfigFileHelper(goConfigDao);
configHelper.onSetUp();
xml = goConfigMigration.upgradeIfNecessary(IOUtils.toString(getClass().getResource("/data/pluggable_artifacts_with_params.xml"), UTF_8));
loader = new MagicalGoConfigXmlLoader(configCache, registry);
setupMetadataForPlugin();
}
Aggregations