use of com.thoughtworks.go.fixture.PipelineWithMultipleStages in project gocd by gocd.
the class CachedCurrentActivityServiceIntegrationTest method setup.
@Before
public void setup() throws Exception {
configFileHelper.usingCruiseConfigDao(goConfigDao);
configFileHelper.onSetUp();
fixture = new PipelineWithMultipleStages(3, materialRepository, transactionTemplate);
fixture.usingConfigHelper(configFileHelper).usingDbHelper(dbHelper).onSetUp();
}
use of com.thoughtworks.go.fixture.PipelineWithMultipleStages in project gocd by gocd.
the class StageServiceIntegrationTest method shouldReturnTrueIfAnyStageIsBuildingInAGivenPipeline.
@Test
public void shouldReturnTrueIfAnyStageIsBuildingInAGivenPipeline() throws Exception {
fixture = new PipelineWithMultipleStages(4, materialRepository, transactionTemplate);
fixture.usingConfigHelper(configFileHelper).usingDbHelper(dbHelper).onSetUp();
Pipeline pipeline = fixture.createPipelineWithFirstStageAssigned();
assertThat(stageService.isAnyStageActiveForPipeline(fixture.pipelineName, pipeline.getCounter()), Is.is(true));
}
use of com.thoughtworks.go.fixture.PipelineWithMultipleStages in project gocd by gocd.
the class StageControllerIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
fixture = new PipelineWithMultipleStages(3, materialRepository, transactionTemplate);
this.configHelper = new GoConfigFileHelper();
configHelper.usingCruiseConfigDao(goConfigDao);
configHelper.onSetUp();
fixture.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
request = new MockHttpServletRequest();
response = new MockHttpServletResponse();
request.addHeader("Confirm", "true");
}
use of com.thoughtworks.go.fixture.PipelineWithMultipleStages in project gocd by gocd.
the class SchedulingCheckerServiceIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
configFileHelper.onSetUp();
configFileHelper.usingCruiseConfigDao(goConfigDao);
pipelineFixture = new PipelineWithMultipleStages(2, materialRepository, transactionTemplate);
pipelineFixture.usingConfigHelper(configFileHelper).usingDbHelper(dbHelper).onSetUp();
pipelineFixture.configStageAsManualApprovalWithApprovedUsers(pipelineFixture.ftStage, APPROVED_USER);
configFileHelper.addSecurityWithNonExistantPasswordFile();
configFileHelper.addSecurityWithAdminConfig();
dbHelper.onSetUp();
diskSpaceSimulator = new DiskSpaceSimulator();
}
use of com.thoughtworks.go.fixture.PipelineWithMultipleStages in project gocd by gocd.
the class PipelineHistoryControllerIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
fixture = new PipelineWithMultipleStages(3, materialRepository, transactionTemplate);
configHelper.usingCruiseConfigDao(goConfigDao);
configHelper.onSetUp();
dbHelper.onSetUp();
fixture.usingConfigHelper(configHelper).usingDbHelper(dbHelper).onSetUp();
goConfigService.forceNotifyListeners();
request = new MockHttpServletRequest();
response = new MockHttpServletResponse();
}
Aggregations