summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/git_access_wiki_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-221-2/+2
|
* Create idea of read-only databasetc-geo-read-only-ideaToon Claes2017-10-061-10/+19
| | | | | | | | | | | | In GitLab EE, a GitLab instance can be read-only (e.g. when it's a Geo secondary node). But in GitLab CE it also might be useful to have the "read-only" idea around. So port it back to GitLab CE. Also having the principle of read-only in GitLab CE would hopefully lead to less errors introduced, doing write operations when there aren't allowed for read-only calls. Closes gitlab-org/gitlab-ce#37534.
* Use described_class when possibleRémy Coutable2017-07-271-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-271-1/+1
| | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add “Project moved” error to Git-over-SSHMichael Kozono2017-06-161-1/+2
|
* Refactor to let GitAccess errors bubble upMichael Kozono2017-06-051-4/+3
| | | | | | No external behavior change. This allows `GitHttpController` to set the HTTP status based on the type of error. Alternatively, we could have added an attribute to GitAccessStatus, but this pattern seemed appropriate.
* Add traits for ProjectFeatures to Project factorySemyon Pupkov2017-02-051-2/+0
| | | | https://gitlab.com/gitlab-org/gitlab-ce/issues/24007
* Use `:empty_project` where possible throughout spec/librs-empty_project-libRobert Speicher2017-01-251-1/+1
|
* Use consistent names and move checks to the method,Lin Jen-Shin2016-12-201-1/+1
| | | | | | | | and move those checks to be private. Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_20285012 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_20285279
* Improve Gitlab::GitAccessWiki spec with download access checksDouglas Barbosa Alexandre2016-11-301-0/+25
|
* Merge branch 'fix-unathorized-cloning' into 'security'Douwe Maan2016-11-091-1/+1
| | | | | | | | | | Ensure external users are not able to clone disabled repositories. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/23788 See merge request !2017 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix specs after renaming authentication_capabilitiesKamil Trzcinski2016-09-161-1/+1
|
* Rename capabilities to authentication_abilitiesKamil Trzcinski2016-09-161-2/+2
|
* Fix most of specsKamil Trzcinski2016-09-151-1/+8
|
* Rename ENV['PROTOCOL'] to ENV['GL_PROTOCOL'] to conform to what GitLab Shell ↵Patricio Cano2016-07-051-1/+1
| | | | expects and make the `protocol` param in `GitAccess` mandatory.
* Tag lib specsDouwe Maan2015-12-091-1/+1
|
* Refactor GitAccess to use instance variables.Douwe Maan2015-03-241-2/+2
|
* Updated rspec to rspec 3.x syntaxJeroen van Baarsen2015-02-121-1/+1
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Git hook messages: wiki access fixValery Sizov2014-11-241-1/+1
|
* Better message for failed pushes because of git hooksValery Sizov2014-11-181-2/+2
| | | | | | Conflicts: lib/gitlab/git_access.rb spec/lib/gitlab/git_access_spec.rb
* Developers can push to wiki repo. Protected branches does not affect wiki ↵Dmitriy Zaporozhets2014-10-071-0/+22
repo any more Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>