Search in sources :

Example 26 with PipelineWithTwoStages

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();
}
Also used : PipelineWithTwoStages(com.thoughtworks.go.fixture.PipelineWithTwoStages) GoConfigFileHelper(com.thoughtworks.go.util.GoConfigFileHelper) Before(org.junit.Before)

Example 27 with PipelineWithTwoStages

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();
}
Also used : PipelineWithTwoStages(com.thoughtworks.go.fixture.PipelineWithTwoStages) ArtifactsDiskIsFull(com.thoughtworks.go.fixture.ArtifactsDiskIsFull) PipelineWithMultipleStages(com.thoughtworks.go.fixture.PipelineWithMultipleStages) Before(org.junit.Before)

Example 28 with PipelineWithTwoStages

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();
}
Also used : PipelineWithTwoStages(com.thoughtworks.go.fixture.PipelineWithTwoStages) Before(org.junit.Before)

Aggregations

PipelineWithTwoStages (com.thoughtworks.go.fixture.PipelineWithTwoStages)28 Before (org.junit.Before)22 GoConfigFileHelper (com.thoughtworks.go.util.GoConfigFileHelper)10 SvnCommand (com.thoughtworks.go.domain.materials.svn.SvnCommand)3 SchedulerFixture (com.thoughtworks.go.fixture.SchedulerFixture)2 Test (org.junit.Test)2 MockHttpServletResponse (org.springframework.mock.web.MockHttpServletResponse)2 Cloner (com.rits.cloning.Cloner)1 AgentConfig (com.thoughtworks.go.config.AgentConfig)1 PipelineConfig (com.thoughtworks.go.config.PipelineConfig)1 ArtifactsDiskIsFull (com.thoughtworks.go.fixture.ArtifactsDiskIsFull)1 PipelineWithMultipleStages (com.thoughtworks.go.fixture.PipelineWithMultipleStages)1 ShineDao (com.thoughtworks.go.server.dao.sparql.ShineDao)1 Username (com.thoughtworks.go.server.domain.Username)1 InMemoryEmailNotificationTopic (com.thoughtworks.go.server.messaging.InMemoryEmailNotificationTopic)1 StageNotificationListener (com.thoughtworks.go.server.messaging.StageNotificationListener)1 HttpLocalizedOperationResult (com.thoughtworks.go.server.service.result.HttpLocalizedOperationResult)1 AgentStub (com.thoughtworks.go.server.websocket.AgentStub)1 SystemEnvironment (com.thoughtworks.go.util.SystemEnvironment)1 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)1