stable

Clone or download

Read-only

Webhook was not deleted when token is updating

This is part of story #17182: reference tuleap artifacts in gitlab merge requests How to test: - Have an integrated repository with valid token - Revoke this token - Create another token - In the UI, go to your repository in Git service - Update API token => The last webhook is deleted on GitLab server => A new webhook was created => There are no errors in gitlab_syslog Change-Id: I6a43cc66636646bee455ffb82ae013b8baecebc9

Modified Files

Name
M plugins/gitlab/include/REST/v1/GitlabRepositoryResource.php +2 −25 Go to diff View file
M plugins/gitlab/include/Repository/GitlabRepositoryDeletor.php +10 −2 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/WebhookCreator.php +1 −1 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/WebhookDeletor.php +5 −11 Go to diff View file
M plugins/gitlab/tests/unit/Repository/GitlabRepositoryDeletorTest.php +18 −2 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookCreatorTest.php +5 −17 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/WebhookDeletorTest.php +5 −33 Go to diff View file