stable

Clone or download

Read-only

Get Gitlab repositories

This is part of story #17178 reference my gitlab repositories in my tuleap project How to test: * Have plugin Gitlab and be Git Admin * You need Gitlab account * Go to https://gitlab.com/-/profile/personal_access_tokens and generate a new token with 'api' checked * Copy your token * Go to Tuleap -> Git * Open dropdown -> Integrate Gitlab repo * Server Url: https://gitlab.com * Token: your_token Expected results: * if your creds are valid, there is a success message -> For the moment nothing else append. This patch doesn't list project, only querrier the API * If your creds are not valid, there is an error message * You can modify DOM -> Delete 'required="required" on form element * If you submit, you will have an error "You must provide a valid Gitlab server and user token" -> Delete 'pattern="(https?)://.+"' in URL server * If you submit, you will have an error "Server URL is invalid" /!\ This patch doesn't list project, only querrier the API. The success message will be deleted in next patch. Change-Id: I4f668d7bd264951a24786a1a51fee824aff8f7a3

Modified Files

Name
M plugins/git/scripts/repositories/po/fr.po +14 −0 Go to diff View file
M plugins/git/scripts/repositories/src/components/GitlabModal/GitlabProjectModal.test.js +60 −5 Go to diff View file
M plugins/git/scripts/repositories/src/components/GitlabModal/GitlabProjectModal.vue +61 −3 Go to diff View file
A plugins/git/scripts/repositories/src/gitlab/gitlab-api-querier.js +28 −0 Go to diff View file
A plugins/git/scripts/repositories/src/gitlab/gitlab-api-querier.test.js +54 −0 Go to diff View file
A plugins/git/scripts/repositories/src/gitlab/gitlab-credentials-helper.js +43 −0 Go to diff View file
A plugins/git/scripts/repositories/src/gitlab/gitlab-credentials-helper.test.js +82 −0 Go to diff View file
M plugins/git/scripts/repositories/src/store/actions.js +13 −0 Go to diff View file
M plugins/git/scripts/repositories/src/store/actions.test.js +65 −1 Go to diff View file