summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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>
* Invoke IO.popen correctly for Ruby 1.9.3Jacob Vosmaer2014-04-151-1/+1
| | | | | Before this change, tests in gitlab_projects_spec were passing on Ruby 2.0.0 but not on 1.9.3.
* Fix testsDmitriy Zaporozhets2014-04-148-126/+66
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add gitlab-keys batch-add-keysJacob Vosmaer2014-03-141-0/+42
| | | | | This command is intended to be called by the GitLab Rails code when restoring an application backup.
* Dont import repo if existsDmitriy Zaporozhets2014-03-131-0/+9
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Use large repo instead one with promptDmitriy Zaporozhets2014-03-121-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* change seed repoDmitriy Zaporozhets2014-03-121-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add support for import repo timeoutDmitriy Zaporozhets2014-03-121-8/+29
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Use less shell commands in gitlab_projects_spec.rbJacob Vosmaer2014-03-071-2/+2
|
* Use IO.popen instead of Kernel#` to read refsJacob Vosmaer2014-03-071-8/+12
|
* Make GitlabProjects#create_hooks a class methodJacob Vosmaer2014-02-261-2/+2
|
* Stub file writing in testsJacob Vosmaer2013-11-251-6/+11
|
* Fix return values in GitlabKeysJacob Vosmaer2013-11-201-4/+23
|
* Refactor file writing testsJacob Vosmaer2013-11-201-33/+34
|
* More file writing tests for GitlabKeysJacob Vosmaer2013-11-051-27/+33
|
* Remove sed invocation from GitlabKeysJacob Vosmaer2013-11-021-5/+10
|
* Bypass the shell in GitlabProjectsJacob Vosmaer2013-11-011-2/+2
|
* Refactor hook creation in GitlabProjectsJacob Vosmaer2013-11-011-2/+3
|
* Merge branch 'puts_instead_of_echo' of ↵Dmitriy Zaporozhets2013-10-311-2/+5
|\ | | | | | | /home/git/repositories/gitlab/gitlab-shell
| * Use Kernel#open to append lines to authorized_keysJacob Vosmaer2013-10-311-2/+5
| |
* | Execute command directly without using shellFrançois Bobot2013-09-161-2/+2
|/ | | | use Shellwords.shellwords for splitting origin_cmd instead of .split(' ')
* Remove empty post-receive hookJacob Vosmaer2013-07-191-2/+0
|
* Use Tempfile instead of `sed -i`Jacob Vosmaer2013-07-191-1/+4
| | | | | | The syntax for `sed -i` is incompatible between GNU sed and BSD sed. By Tempfile from the Ruby standard library we can avoid using the `-i` option of sed.
* Merge pull request #69 from ↵Dmitriy Zaporozhets2013-07-081-0/+68
|\ | | | | | | | | thomasbiddle/support_adding_and_removing_branches_and_tags Support adding and removing branches and tags
| * Adding tests for the addition of create-branch, create-tag, rm-branch, rm-tagTJ Biddle2013-06-201-0/+68
| | | | | | | | | | The previous commit has the code addition to support adding and removing branches and tags in a repository - This commit ensures basic test cases are supported.