summaryrefslogtreecommitdiff
path: root/spec/gitlab_shell_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* updated spec context ant comment [ci-skip]fix/git-annex-sshJames Lopez2016-03-181-2/+2
|
* added comment to clarify specJames Lopez2016-03-161-0/+1
|
* get git annex to work when using custom SSH portJames Lopez2016-03-161-1/+9
|
* Add spec for stricter exec_cmd checksJacob Vosmaer2015-11-251-0/+9
|
* Limit availability of SSH_ORIGINAL_COMMANDJacob Vosmaer2015-11-251-24/+24
| | | | | Hoping this makes it more obvious when code touches the very unsafe contents of this variable.
* Skip 'git annex init' when using 'gcryptsetup'no-init-on-gcryptsetupJacob Vosmaer2015-08-111-0/+8
| | | | | 'gcryptsetup' is a special git-annex feature that does its own initialization.
* Update GitlabShell tests.gl-id-refactorDouwe Maan2015-04-061-25/+22
|
* Write GitlabShell error to stderr.nice-error-messageDouwe Maan2015-04-061-1/+1
|
* 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-111-0/+21
|
* Revert "Revert "Merge branch 'git_hook_messages'""Valery Sizov2014-11-241-5/+6
| | | | This reverts commit f8453da5868dd7a23d0f2f3da7a45e33c441d1db.
* Revert "Merge branch 'git_hook_messages'"Jacob Vosmaer2014-11-201-6/+5
| | | | | | | | | | 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-141-5/+6
|
* 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
|
* Improve coverage.Gabor Nagy2014-06-231-0/+25
|
* Execute command directly without using shellFrançois Bobot2013-09-161-2/+2
| | | | use Shellwords.shellwords for splitting origin_cmd instead of .split(' ')
* Allow administrators to log users by key id (faster) or by username (clearer).ash2013-05-181-2/+9
|
* Specs for logging in gitlab-shell.ash2013-05-181-0/+26
|
* Randomize config.repos_path in testsChristian Höltje2013-03-151-3/+5
|
* Verify GL_ID environment variable is set.Christian Höltje2013-03-151-4/+9
| | | | This also randomizes the key_id used in the tests.
* Use Kernel::exec instead of system()Christian Höltje2013-03-151-1/+13
| | | | | We don't need to keep the ruby process around once we've established that it's ok to run a git command.
* Cleaned up gitlab_shell_specChristian Höltje2013-03-151-30/+60
| | | | | | * Used mocks to test if methods are colled * Increased coverage * Removed duplication and excess verbage
* gitlab netDmitriy Zaporozhets2013-02-051-3/+3
|
* gitlab-keys with testsDmitriy Zaporozhets2013-02-051-1/+0
|
* More testsDmitriy Zaporozhets2013-02-051-1/+56
|
* rspec helperDmitriy Zaporozhets2013-02-051-2/+2
|
* init rspecDmitriy Zaporozhets2013-02-041-0/+16