summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Handle broken symlinks in create-hookscreate-hooks-broken-symlinkJacob Vosmaer2015-08-121-0/+45
| | | | | | | If a repository contained a broken symlink named 'hooks', this would raise ENOENT in lib/gitlab_projects.rb, which got ignored in bin/create-hooks. This commit fixes that by making sure we handle broken symlinks in lib/gitlab_projects.rb.
* Remove keys from authorized_keys in-placeJacob Vosmaer2015-07-161-3/+5
| | | | | | This will speed up the rm-key operation. The downside is that authorized_keys will not shrink when you remove a key. If this ever becomes a problem it can be fixed by running 'rake gitlab:shell:setup'.
* Update GitlabShell tests.gl-id-refactorDouwe Maan2015-04-061-25/+22
|
* Move setting/unsetting of GL_ID from lib to executables.Douwe Maan2015-04-061-8/+0
|
* Write GitlabShell error to stderr.nice-error-messageDouwe Maan2015-04-061-1/+1
|
* Prevent character encoding issues by sending received changes as raw data.Douwe Maan2015-03-151-3/+5
|
* Stub repo path for testsDmitriy Zaporozhets2015-03-041-0/+1
|
* Add tests.Douwe Maan2015-02-231-7/+76
|
* Improve broadcast message logicv2.5.1Dmitriy Zaporozhets2015-02-182-4/+4
| | | | | Expect broadcast message API endpoint to return 200 with empty JSON if no broadcast messages available
* Disable git-annex by defaultDmitriy Zaporozhets2015-02-161-1/+7
|
* Add more git-annex testsDmitriy Zaporozhets2015-02-161-1/+9
|
* Enable git-annex on first commandDmitriy Zaporozhets2015-02-131-24/+58
|
* Log full Net::HTTP error.Douwe Maan2015-02-121-5/+0
|
* Show nice error message when internal API is unreachable.Douwe Maan2015-02-113-4/+85
|
* Refactor: Remove #tap for readability and performance and DRY up get/post.Douwe Maan2015-02-111-1/+2
|
* Print broadcast message if one is available.Douwe Maan2015-02-094-0/+99
|
* Revert "Revert "Merge branch 'git_hook_messages'""Valery Sizov2014-11-247-23/+25
| | | | This reverts commit f8453da5868dd7a23d0f2f3da7a45e33c441d1db.
* Revert "Merge branch 'git_hook_messages'"Jacob Vosmaer2014-11-207-25/+23
| | | | | | | | | | At least the following things were broken: - missing require for 'gitlab_access_status' in lib/gitlab_net.rb - gitlabhq master internal API returns 'true' or 'false', gitlab-shell expects JSON This reverts commit 11311a95545f967a5736cd16ab5fc37f7e658519, reversing changes made to 45444597aef3e434571de2491934ae92357ad231.
* Show error message when git access is rejectedValery Sizov2014-11-147-23/+25
|
* Merge pull request #177 from feedhenry/keys_listDmitriy Zaporozhets2014-10-281-0/+13
|\ | | | | Added list-keys command, with associated spec
| * Added list-keys command and specDavid Martin2014-10-151-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed puts and tidied up regex Address the hound Address the hound, again Use single quotes Add back travis.yml file Remove travis.yml, only keep on fh-master Use single quotes Use single quotes
* | Merge pull request #179 from feedhenry/projects_listDmitriy Zaporozhets2014-10-281-0/+16
|\ \ | | | | | | Added list-projects command & spec
| * | Added list-projects command & specDavid Martin2014-10-151-0/+16
| |/ | | | | | | | | | | | | | | | | | | list-projects command usage Single quotes Use single quotes Use single quotes
* | Fix indentationDmitriy Zaporozhets2014-10-201-4/+4
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | add secret tokenValery Sizov2014-10-158-7/+29
|/
* Add coveralls support properlyDmitriy Zaporozhets2014-09-301-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix testsDmitriy Zaporozhets2014-09-251-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Improve gitlab config testsDmitriy Zaporozhets2014-09-161-5/+11
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Improve config specs so they dont rely on config.ymlDmitriy Zaporozhets2014-09-161-13/+20
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* support using custom redis database, fixes #173Tao2014-09-131-0/+1
|
* Merge pull request #161 from Aigeruth/fix/gitlab_config_specDmitriy Zaporozhets2014-09-111-2/+4
|\ | | | | Fix spec for GitlabConfig.gitlab_url.
| * Fix spec for GitlabConfig.gitlab_url.Gabor Nagy2014-07-061-2/+4
| |
* | Rebuild vcr cassettesDmitriy Zaporozhets2014-09-037-45/+55
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Update GitlabNet to match new logicDmitriy Zaporozhets2014-09-018-46/+49
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Remove update hook logicDmitriy Zaporozhets2014-09-013-27/+3
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Add tests for GitlabPostReceiveDmitriy Zaporozhets2014-09-012-1/+20
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | GitlabAccess and GitlabPostReceive classes addedDmitriy Zaporozhets2014-09-011-0/+18
| | | | | | | | | | | | Gitlab Access handles security check. GitlabPostReceive creates a sidekiq job Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Handle invalid number of argumentsJacob Vosmaer2014-08-271-0/+8
| | | | | | | | | | | | | | When a remote user with a valid SSH key runs something like 'ssh git@gitlab.example.com foobar', gitlab-shell would raise an exception in the GitlabShell#escape_path method. With this change, we catch an invalid number of arguments as soon as possible and exit.
* | use abort isntead of raise when checking pathJob van der Voort2014-08-271-1/+1
| |
* | Fix invalid repo_name/repo_path parsing by GitlabUpdateDmitriy Zaporozhets2014-08-132-0/+43
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Need to set config for user.name and user.email before creating the ↵Sean Edge2014-07-121-2/+2
| | | | | | | | annotated tag.
* | Hopefully fixing broken CI build by setting user.name and user.email on the ↵Sean Edge2014-07-111-0/+3
| | | | | | | | temporary repo.
* | Adding support+tests for annotated tags.Sean Edge2014-07-091-7/+26
|/
* Fix testsDmitriy Zaporozhets2014-07-041-2/+2
|
* Merge pull request #159 from Aigeruth/improvement/simplecovDmitriy Zaporozhets2014-07-041-0/+3
|\ | | | | Use simplecov for development.
| * Use simplecov for development.Gabor Nagy2014-06-241-0/+3
| |
* | Improve coverage.Gabor Nagy2014-06-237-0/+246
|/
* Create keys fixtures in testDmitriy Zaporozhets2014-05-311-0/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Put authorized_keys.lock in the .ssh directoryJacob Vosmaer2014-05-301-1/+12
|
* Use lock file when add or remove keys from authorized_keys fileDmitriy Zaporozhets2014-04-181-0/+36
| | | | | | This prevents concurrent modification of authorized_keys file Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>