use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class RestfulServiceTest method setUp.
@BeforeEach
public void setUp(@TempDir Path tempDir) throws Exception {
fixture = new PipelineWithTwoStages(materialRepository, transactionTemplate, tempDir);
configHelper = new GoConfigFileHelper().usingCruiseConfigDao(cruiseConfigDao);
configHelper.onSetUp();
dbHelper.onSetUp();
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.
@BeforeEach
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();
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class BuilderFactoryIntegrationTest method setUp.
@BeforeEach
public void setUp() throws Exception {
configHelper = new GoConfigFileHelper(goConfigDao);
configHelper.onSetUp();
goConfigService.forceNotifyListeners();
configHelper.addPipeline("up42", "up42_stage", "up42_job");
goConfigService.forceNotifyListeners();
}
use of com.thoughtworks.go.util.GoConfigFileHelper in project gocd by gocd.
the class ScheduleServiceRunOnAllAgentIntegrationTest method setup.
@BeforeEach
public void setup() throws Exception {
CONFIG_HELPER = new GoConfigFileHelper();
dbHelper.onSetUp();
CONFIG_HELPER.usingCruiseConfigDao(goConfigDao);
CONFIG_HELPER.onSetUp();
repository = new SvnCommand(null, testRepo.projectRepositoryUrl());
goConfigService.forceNotifyListeners();
agentAssignment.clear();
goCache.clear();
CONFIG_HELPER.addPipeline("blahPipeline", "blahStage", MaterialConfigsMother.hgMaterialConfig(UUID.randomUUID().toString()), "job1", "job2");
CONFIG_HELPER.makeJobRunOnAllAgents("blahPipeline", "blahStage", "job2");
notifier.disableUpdates();
}
Aggregations