use of org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository in project spring-cloud-config by spring-cloud.
the class MultipleJGitEnvironmentApplicationPlaceholderRepositoryTests method createRepository.
private PatternMatchingJGitEnvironmentRepository createRepository(String name, String pattern, String uri) {
PatternMatchingJGitEnvironmentRepository repo = new PatternMatchingJGitEnvironmentRepository();
repo.setEnvironment(this.environment);
repo.setName(name);
repo.setPattern(new String[] { pattern });
repo.setUri(uri);
return repo;
}
use of org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository in project spring-cloud-config by spring-cloud.
the class MultipleJGitEnvironmentProfilePlaceholderRepositoryTests method createRepository.
private PatternMatchingJGitEnvironmentRepository createRepository(String name, String pattern, String uri) {
PatternMatchingJGitEnvironmentRepository repo = new PatternMatchingJGitEnvironmentRepository();
repo.setEnvironment(this.environment);
repo.setName(name);
repo.setPattern(new String[] { pattern });
repo.setUri(uri);
repo.setBasedir(new File("target/repos/pattern_repos", name));
return repo;
}
use of org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository in project spring-cloud-config by spring-cloud.
the class MultipleJGitEnvironmentRepositoryTests method createRepositories.
private Map<String, PatternMatchingJGitEnvironmentRepository> createRepositories() throws Exception {
String test1Uri = ConfigServerTestUtils.prepareLocalRepo("test1-config-repo");
Map<String, PatternMatchingJGitEnvironmentRepository> repos = new HashMap<>();
repos.put("test1", createRepository("test1", "*test1*", test1Uri));
return repos;
}
use of org.springframework.cloud.config.server.environment.MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository in project spring-cloud-config by spring-cloud.
the class MultipleJGitEnvironmentRepositoryTests method createRepository.
private PatternMatchingJGitEnvironmentRepository createRepository(String name, String pattern, String uri) {
PatternMatchingJGitEnvironmentRepository repo = new PatternMatchingJGitEnvironmentRepository();
repo.setEnvironment(this.environment);
repo.setName(name);
repo.setPattern(new String[] { pattern });
repo.setUri(uri);
repo.setBasedir(new File(this.repository.getBasedir().getParentFile(), name));
return repo;
}
Aggregations