use of com.thoughtworks.go.fixture.PipelineWithTwoStages 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.fixture.PipelineWithTwoStages in project gocd by gocd.
the class PipelineHistoryServiceIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
goCache.clear();
pipelineOne = new PipelineWithMultipleStages(3, materialRepository, transactionTemplate, temporaryFolder);
pipelineOne.setGroupName("group1");
pipelineTwo = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
pipelineTwo.setGroupName("group2");
diskIsFull = new ArtifactsDiskIsFull();
configHelper.usingCruiseConfigDao(goConfigDao);
configHelper.onSetUp();
dbHelper.onSetUp();
pipelineOne.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
pipelineTwo.usingConfigHelper(configHelper).usingDbHelper(dbHelper).addToSetup();
pipelineOne.configStageAsManualApprovalWithApprovedUsers(pipelineOne.stageName(2), "jez");
configHelper.addSecurityWithAdminConfig();
configHelper.setOperatePermissionForGroup("group1", "jez");
pipelineCommentFeatureToggleState = featureToggleService.isToggleOn(Toggles.PIPELINE_COMMENT_FEATURE_TOGGLE_KEY);
featureToggleService.changeValueOfToggle(Toggles.PIPELINE_COMMENT_FEATURE_TOGGLE_KEY, true);
notifier.disableUpdates();
}
use of com.thoughtworks.go.fixture.PipelineWithTwoStages in project gocd by gocd.
the class StageStatusCacheTest method setUp.
@Before
public void setUp() throws Exception {
dbHelper.onSetUp();
configFileHelper.onSetUp();
configFileHelper.usingEmptyConfigFileWithLicenseAllowsUnlimitedAgents();
configFileHelper.usingCruiseConfigDao(goConfigDao);
pipelineFixture = new PipelineWithTwoStages(materialRepository, transactionTemplate, temporaryFolder);
pipelineFixture.usingConfigHelper(configFileHelper).usingDbHelper(dbHelper).onSetUp();
}
Aggregations