Search in sources :

Example 66 with PartialConfig

use of com.thoughtworks.go.config.remote.PartialConfig in project gocd by gocd.

the class CachedGoConfigIntegrationTest method setupExternalConfigRepoWithDependencyMaterialOnPipelineInMainXml.

private void setupExternalConfigRepoWithDependencyMaterialOnPipelineInMainXml(String upstream, String remoteDownstreamPipelineName) {
    PipelineConfig upstreamPipelineConfig = GoConfigMother.createPipelineConfigWithMaterialConfig(upstream, new GitMaterialConfig("FOO"));
    goConfigService.addPipeline(upstreamPipelineConfig, "default");
    PartialConfig partialConfig = PartialConfigMother.pipelineWithDependencyMaterial(remoteDownstreamPipelineName, upstreamPipelineConfig, new RepoConfigOrigin(configRepo, "r1"));
    goPartialConfig.onSuccessPartialConfig(configRepo, partialConfig);
}
Also used : GitMaterialConfig(com.thoughtworks.go.config.materials.git.GitMaterialConfig) PartialConfig(com.thoughtworks.go.config.remote.PartialConfig) RepoConfigOrigin(com.thoughtworks.go.config.remote.RepoConfigOrigin)

Aggregations

PartialConfig (com.thoughtworks.go.config.remote.PartialConfig)66 Test (org.junit.Test)40 RepoConfigOrigin (com.thoughtworks.go.config.remote.RepoConfigOrigin)28 File (java.io.File)15 StringContains.containsString (org.hamcrest.core.StringContains.containsString)12 ConfigRepoConfig (com.thoughtworks.go.config.remote.ConfigRepoConfig)11 FullConfigUpdateCommand (com.thoughtworks.go.config.update.FullConfigUpdateCommand)10 IOException (java.io.IOException)8 GitAPIException (org.eclipse.jgit.api.errors.GitAPIException)8 ExpectedException (org.junit.rules.ExpectedException)8 GoConfigInvalidException (com.thoughtworks.go.config.exceptions.GoConfigInvalidException)7 Cloner (com.rits.cloning.Cloner)6 GoConfigMother (com.thoughtworks.go.helper.GoConfigMother)6 ScmMaterialConfig (com.thoughtworks.go.config.materials.ScmMaterialConfig)5 ConfigFileHasChangedException (com.thoughtworks.go.config.exceptions.ConfigFileHasChangedException)4 ConfigMergeException (com.thoughtworks.go.config.exceptions.ConfigMergeException)4 GitMaterialConfig (com.thoughtworks.go.config.materials.git.GitMaterialConfig)4 PipelineGroups (com.thoughtworks.go.domain.PipelineGroups)4 DependencyMaterialConfig (com.thoughtworks.go.config.materials.dependency.DependencyMaterialConfig)3 Arrays.asList (java.util.Arrays.asList)3