use of org.finos.legend.sdlc.server.gitlab.api.GitLabComparisonApiTestResource in project legend-sdlc by finos.
the class IntegrationTestGitLabComparisonApis method setUpComparisonApi.
/**
* Authenticates with OAuth2 and instantiate the test resource.
*/
private static void setUpComparisonApi() {
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);
GitLabEntityApi gitLabEntityApi = new GitLabEntityApi(gitLabMemberUserContext, backgroundTaskProcessor);
GitLabComparisonApi gitLabComparisonApi = new GitLabComparisonApi(gitLabMemberUserContext, gitLabRevisionApi, backgroundTaskProcessor);
gitLabComparisonApiTestResource = new GitLabComparisonApiTestResource(gitLabWorkspaceApi, gitLabProjectApi, gitLabEntityApi, gitLabRevisionApi, gitLabComparisonApi);
}
use of org.finos.legend.sdlc.server.gitlab.api.GitLabComparisonApiTestResource in project legend-sdlc by finos.
the class TestGitLabServerComparisonApis method setUpComparisonApi.
/**
* Authenticates with OAuth2 and instantiate the test resource.
*/
private static void setUpComparisonApi() {
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);
GitLabEntityApi gitLabEntityApi = new GitLabEntityApi(gitLabMemberUserContext, backgroundTaskProcessor);
GitLabComparisonApi gitLabComparisonApi = new GitLabComparisonApi(gitLabMemberUserContext, gitLabRevisionApi, backgroundTaskProcessor);
gitLabComparisonApiTestResource = new GitLabComparisonApiTestResource(gitLabWorkspaceApi, gitLabProjectApi, gitLabEntityApi, gitLabRevisionApi, gitLabComparisonApi);
}
Aggregations