use of org.finos.legend.sdlc.server.gitlab.api.GitLabProjectConfigurationApiTestResource in project legend-sdlc by finos.
the class IntegrationTestGitLabProjectConfigurationApis method setUpProjectConfigurationApi.
/**
* Authenticates with OAuth2 and instantiate the test resource.
*/
private static void setUpProjectConfigurationApi() {
GitLabUserContext gitLabMemberUserContext = prepareGitLabMemberUserContext();
GitLabUserContext gitLabOwnerUserContext = prepareGitLabOwnerUserContext();
GitLabConfiguration gitLabConfig = GitLabConfiguration.newGitLabConfiguration(null, null, null, null, null);
ProjectStructureConfiguration projectStructureConfig = ProjectStructureConfiguration.emptyConfiguration();
GitLabProjectApi gitLabProjectApi = new GitLabProjectApi(gitLabConfig, gitLabOwnerUserContext, projectStructureConfig, null, null, backgroundTaskProcessor, null);
GitLabRevisionApi gitLabRevisionApi = new GitLabRevisionApi(gitLabMemberUserContext, backgroundTaskProcessor);
GitLabWorkspaceApi gitLabWorkspaceApi = new GitLabWorkspaceApi(gitLabMemberUserContext, gitLabRevisionApi, backgroundTaskProcessor);
GitLabProjectConfigurationApi gitLabProjectConfigurationApi = new GitLabProjectConfigurationApi(gitLabMemberUserContext, projectStructureConfig, projectStructureConfig.getProjectStructureExtensionProvider(), backgroundTaskProcessor, null);
gitLabProjectConfigurationApiTestResource = new GitLabProjectConfigurationApiTestResource(gitLabWorkspaceApi, gitLabProjectApi, gitLabProjectConfigurationApi);
}
use of org.finos.legend.sdlc.server.gitlab.api.GitLabProjectConfigurationApiTestResource in project legend-sdlc by finos.
the class TestGitLabServerProjectConfigurationApis method setUpProjectConfigurationApi.
/**
* Authenticates with OAuth2 and instantiate the test resource.
*/
private static void setUpProjectConfigurationApi() {
GitLabUserContext gitLabMemberUserContext = prepareGitLabMemberUserContext();
GitLabUserContext gitLabOwnerUserContext = prepareGitLabOwnerUserContext();
GitLabConfiguration gitLabConfig = GitLabConfiguration.newGitLabConfiguration(null, null, null, null, GitLabConfiguration.NewProjectVisibility.PRIVATE);
ProjectStructureConfiguration projectStructureConfig = ProjectStructureConfiguration.emptyConfiguration();
GitLabProjectApi gitLabProjectApi = new GitLabProjectApi(gitLabConfig, gitLabOwnerUserContext, projectStructureConfig, null, gitLabConfig, backgroundTaskProcessor, null);
GitLabRevisionApi gitLabRevisionApi = new GitLabRevisionApi(gitLabMemberUserContext, backgroundTaskProcessor);
GitLabWorkspaceApi gitLabWorkspaceApi = new GitLabWorkspaceApi(gitLabMemberUserContext, gitLabRevisionApi, backgroundTaskProcessor);
GitLabProjectConfigurationApi gitLabProjectConfigurationApi = new GitLabProjectConfigurationApi(gitLabMemberUserContext, projectStructureConfig, projectStructureConfig.getProjectStructureExtensionProvider(), backgroundTaskProcessor, null);
gitLabProjectConfigurationApiTestResource = new GitLabProjectConfigurationApiTestResource(gitLabWorkspaceApi, gitLabProjectApi, gitLabProjectConfigurationApi);
}
Aggregations