use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class ScheduleServiceIntegrationTest method setup.
@Before
public void setup() throws Exception {
configHelper = new GoConfigFileHelper();
dbHelper.onSetUp();
configHelper.usingCruiseConfigDao(goConfigDao).initializeConfigFile();
configHelper.onSetUp();
pipelineFixture = new PipelineWithTwoStages(materialRepository, transactionTemplate);
pipelineFixture.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
repository = new SvnCommand(null, testRepo.projectRepositoryUrl());
mingleConfig = configHelper.addPipeline("mingle", STAGE_NAME, repository, JOB_NAME, "functional");
goConfigService.forceNotifyListeners();
agentAssignment.clear();
goCache.clear();
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class ScheduleServiceRunOnAllAgentIntegrationTest method setup.
@Before
public void setup() throws Exception {
CONFIG_HELPER = new GoConfigFileHelper();
dbHelper.onSetUp();
CONFIG_HELPER.usingCruiseConfigDao(goConfigDao).initializeConfigFile();
CONFIG_HELPER.onSetUp();
repository = new SvnCommand(null, testRepo.projectRepositoryUrl());
goConfigService.forceNotifyListeners();
agentAssignment.clear();
goCache.clear();
CONFIG_HELPER.addPipeline("blahPipeline", "blahStage", MaterialConfigsMother.hgMaterialConfig("file:///home/cruise/projects/cruisen/manual-testing/ant_hg/dummy"), "job1", "job2");
CONFIG_HELPER.makeJobRunOnAllAgents("blahPipeline", "blahStage", "job2");
notifier.disableUpdates();
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class ScheduledPipelineLoaderIntegrationTest method setup.
@Before
public void setup() throws Exception {
configHelper = new GoConfigFileHelper(goConfigDao);
dbHelper.onSetUp();
goCache.clear();
configHelper.onSetUp();
svnRepo = new SvnTestRepoWithExternal();
cleanupTempFolders();
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class ScheduleStageTest method setUp.
@Before
public void setUp() throws Exception {
configHelper = new GoConfigFileHelper().usingCruiseConfigDao(dao);
fixture = new PipelineWithMultipleStages(3, materialRepository, transactionTemplate);
fixture.usingThreeJobs();
fixture.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class SecurityServiceIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
configHelper = new GoConfigFileHelper();
configHelper.usingCruiseConfigDao(goConfigDao);
configHelper.onSetUp();
configHelper.addPipelineWithGroup(GROUP_NAME, PIPELINE_NAME, STAGE_NAME, JOB_NAME);
configHelper.addSecurityWithAdminConfig();
dbHelper.onSetUp();
}
Aggregations