summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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.
* | Update head featureDmitriy Zaporozhets2013-06-101-0/+21
| |
* | Allow administrators to log users by key id (faster) or by username (clearer).ash2013-05-181-2/+9
| |
* | Use :warn instead of :error for invalid commands.ash2013-05-182-4/+4
| |
* | Specs for logging in gitlab-shell.ash2013-05-181-0/+26
| |
* | Specs for logging during failure cases of fork-project.ash2013-05-181-1/+15
| |
* | Specifications for the 'bad paths' in mv-projects, and logging.ash2013-05-181-0/+20
| |
* | Add logging specs for gitlab-keys.ash2013-05-171-0/+21
| |
* | Specs for logging in gitlab_projects.ash2013-05-171-1/+40
|/
* Fix tests and version up to 1.4.0v1.4.0Dmitriy Zaporozhets2013-04-301-1/+1
|
* improve tests for forking from namespacesAngus MacArthur2013-04-161-5/+5
| | | | Change-Id: I0c343c03ee3f033641f9958030ac57d92296547d
* additional fork check and enhanced testsAngus MacArthur2013-04-161-6/+17
|
* more fixes for pull reuestAngus MacArthur2013-04-161-2/+2
| | | | Change-Id: I1b3d64d79187c414e326928a96427d1cc6176224
* fork fixes for upstream pullAngus MacArthur2013-04-161-3/+10
| | | | Change-Id: Ia48a93ccbfea6fdc0791ce25cf3e6291bfe7fa08