use of com.thoughtworks.go.helper.HgTestRepo in project gocd by gocd.
the class BuildCauseProducerServiceWithFlipModificationTest method setup.
@BeforeEach
public void setup(@TempDir Path tempDir) throws Exception {
configHelper = new GoConfigFileHelper();
dbHelper.onSetUp();
configHelper.usingCruiseConfigDao(goConfigDao);
configHelper.onSetUp();
svnRepository = new SvnTestRepo(tempDir);
hgTestRepo = new HgTestRepo("testHgRepo", tempDir);
repository = new SvnCommand(null, svnRepository.projectRepositoryUrl());
svnMaterialConfig = svn(repository.getUrl().originalArgument(), repository.getUserName(), repository.getPassword(), repository.isCheckExternals());
}
use of com.thoughtworks.go.helper.HgTestRepo in project gocd by gocd.
the class ChangeMaterialsTest method setUp.
@BeforeEach
public void setUp(@TempDir Path tempDir) throws Exception {
username = new Username(new CaseInsensitiveString("gli"));
dbHelper.onSetUp();
cruiseConfig = new GoConfigFileHelper().usingCruiseConfigDao(goConfigDao);
cruiseConfig.onSetUp();
hgTestRepo = new HgTestRepo(tempDir);
SvnTestRepo svnRepo = new SvnTestRepo(tempDir);
cruiseConfig.addPipeline(PIPELINE_NAME, DEV_STAGE, svnRepo.materialConfig(), "foo");
mingle = cruiseConfig.addStageToPipeline(PIPELINE_NAME, FT_STAGE, "bar");
pipeline = dbHelper.newPipelineWithAllStagesPassed(mingle);
listener = new StubScheduleCheckCompletedListener();
topic.addListener(listener);
}
use of com.thoughtworks.go.helper.HgTestRepo in project gocd by gocd.
the class BuildCauseProducerServiceIntegrationHgTest method setup.
@BeforeEach
public void setup(@TempDir Path tempDir) throws Exception {
dbHelper.onSetUp();
configHelper.usingCruiseConfigDao(goConfigDao);
configHelper.onSetUp();
hgTestRepo = new HgTestRepo("hgTestRepo1", tempDir);
hgMaterial = MaterialsMother.hgMaterial(hgTestRepo.projectRepositoryUrl());
hgMaterial.setFilter(new Filter(new IgnoredFiles("helper/**/*.*")));
workingFolder = TempDirUtils.createTempDirectoryIn(tempDir, "workingFolder").toFile();
outputStreamConsumer = inMemoryConsumer();
mingleConfig = configHelper.addPipeline("cruise", STAGE_NAME, this.hgMaterial.config(), "unit", "functional");
}
Aggregations