stable
Clone or download
Read-only
Part of story #26799 associate a Tuleap project and a GitLab group How to test: - Try calling the POST gitlab_groups REST route with a project that is already linked (for example call it twice and change the gitlab group ID). - It should respond with code 400 Bad request A given Tuleap project is only supposed to be linked once to a GitLab group. Change-Id: Ida6fb539f8144c306d3c42832a7dbb6b2d76be2c
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/gitlab/include/Group/GitlabGroupDAO.php | +8 | −1 | Go to diff View file |
M | plugins/gitlab/include/Group/GitlabGroupFactory.php | +6 | −0 | Go to diff View file |
M | plugins/gitlab/include/Group/GroupCreator.php | +13 | −6 | Go to diff View file |
A | plugins/gitlab/include/Group/ProjectAlreadyLinkedToGitlabGroupException.php | +31 | −0 | Go to diff View file |
A | plugins/gitlab/include/Group/VerifyProjectIsAlreadyLinked.php | +26 | −0 | Go to diff View file |
M | plugins/gitlab/include/REST/v1/GitlabGroupResource.php | +1 | −1 | Go to diff View file |
M | plugins/gitlab/include/Repository/GitlabRepositoryGroupLinkHandler.php | +2 | −0 | Go to diff View file |
M | plugins/gitlab/include/Repository/HandleGitlabRepositoryGroupLink.php | +2 | −0 | Go to diff View file |
M | plugins/gitlab/tests/unit/Group/GitlabGroupFactoryTest.php | +15 | −4 | Go to diff View file |
M | plugins/gitlab/tests/unit/Group/GitlabRepositoryGroupLinkHandlerTest.php | +2 | −0 | Go to diff View file |
A | plugins/gitlab/tests/unit/Test/Stubs/VerifyProjectIsAlreadyLinkedStub.php | +45 | −0 | Go to diff View file |