summaryrefslogtreecommitdiff
path: root/spec/controllers/projects/raw_controller_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-231-5/+8
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-181-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-171-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-121-3/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-061-2/+79
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-051-1/+1
|
* Standardize remote_ip and path keys for auth.log and api_json.logStan Hu2019-08-201-2/+2
| | | | | | | | Current `auth.log` uses `fullpath` and `ip`, while `api_json.log` uses `remote_ip` and `path` for the same fields. Let's standardize these namings to make it easier for people working with the data. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66167
* Return 429 on rate limiter on raw endpointMayra Cabrera2019-08-131-3/+3
| | | | | | | | It was originally returning 302 when the rate limit kicks in, because using the the correct status code makes it easier to track rate limiting events Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/65974
* Add RateLimiter to RawControllerMayra Cabrera2019-07-241-0/+95
| | | | | | | | | | * Limits raw requests to 300 per minute and per raw path. * Add a new attribute to ApplicationSettings so user can change this value on their instance. * Uses Gitlab::ActionRateLimiter to limit the raw requests. * Add a new method into ActionRateLimiter to log the event into auth.log Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/48717
* CE backport for changes in EE MR 133899490-store-designs-in-lfs-ceLuke Duncalfe2019-06-061-1/+1
| | | | | | | | | | | | | | This backports to ce a refactor of the shared example 'a controller that can serve LFS files'. The ee MR that contains the original refactor is https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13389 The reason for the refactor was mostly the removal of the outer context as it didn't need to be there, and prevented let(:lfs_oid) from being overwritten. The shared example was also renamed to be more descriptive.
* Add some frozen string to spec/**/*.rbgfyoung2019-04-151-0/+2
| | | | | | | | | | Adds frozen string to the following: * spec/bin/**/*.rb * spec/config/**/*.rb * spec/controllers/**/*.rb xref https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
* Removing workhorse_set_content_type feature flagFrancisco Javier López2018-12-191-61/+14
| | | | | Removing workhorse_set_content_type feature flag introduced in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22667
* Update specs to rails5 formatblackst0ne-convert-specs-rails5-styleblackst0ne2018-12-191-3/+5
| | | | | | | | | | Updates specs to use new rails5 format. The old format: `get :show, { some: params }, { some: headers }` The new format: `get :show, params: { some: params }, headers: { some: headers }`
* Add feature flag for workhorse content type calculationFrancisco Javier López2018-12-061-13/+61
|
* Fixed project logo when it is LFS trackedFrancisco Javier López2018-08-301-85/+16
|
* Fix file_store for artifacts and lfs when savingKamil Trzciński2018-05-011-2/+2
|
* Merge branch '4163-move-uploads-to-object-storage' into 'master'Sean McGivern2018-02-281-2/+2
| | | | | | | | Move uploads to object storage Closes #4163 See merge request gitlab-org/gitlab-ee!3867
* Merge commit 'f2f58a60b76acd479e37bdbc9246ec9f9b2bea82' into ↵Kamil Trzciński2018-02-281-5/+5
|\ | | | | | | object-storage-ee-to-ce-backport
| * Refactor `have_http_status` into `have_gitlab_http_status` in the specsJacopo2017-10-201-5/+5
| |
* | Merge branch 'jej/lfs-object-storage' into 'master'Douwe Maan2018-02-281-20/+36
|/ | | | | | | | Can migrate LFS objects to S3 style object storage Closes #2841 See merge request !2760
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-4/+4
|
* Do not show LFS object when LFS is disabledChristopher Bartz2017-03-131-18/+43
| | | | | | Do not display a 404, when a user tries to retrieve the raw content of an LFS file (pointer) if the config option "lfs_enabled" is set to false. Instead, display the LFS pointer file directly.
* Use Namespace#full_path instead of #path where appropriatedm-more-namespace-full-pathDouwe Maan2017-02-231-4/+4
|
* Use `empty_project` where possible in controller specsrs-empty_project-controllersRobert Speicher2017-01-251-1/+1
|
* fixes part1 of files to start using active tensetiagonbotelho2016-08-091-1/+1
|
* Use HTTP matchers if possibleZ.J. van de Weg2016-06-271-4/+4
|
* Add workhorse controller and API helpersDouwe Maan2016-06-061-0/+2
|
* Change deprecated usage of rendering without response bodyMehmet Emin İNAÇ2016-03-161-1/+1
| | | | | `render nothing: true` has been deprecated. For more information see [pr](https://github.com/rails/rails/pull/20336)
* All for you rubocop.Marin Jankovski2015-12-081-2/+2
|
* Stub the calls to disk and check what send_file returns.Marin Jankovski2015-12-081-1/+3
|
* Fix specs caused by update of gitlab-test repo.serve_lfs_objectMarin Jankovski2015-12-081-1/+1
|
* Add specs for showing lfs object in UI.Marin Jankovski2015-12-071-0/+32
|
* add Content-Type header of raw image filepilsner2015-09-041-0/+14
| | | | | | | | | Add Content-Type header to fix a bug which IE can't show image in markdown when the image is from raw. modified: CHANGELOG modified: app/controllers/projects/raw_controller.rb modified: spec/controllers/projects/raw_controller_spec.rb
* Remove the filename argument from Content-Disposition header to avoidStan Hu2015-09-021-0/+23
RFC 5987 and RFC 6266 encoding issues. This change allows the browser to determine the filename based on the URL. See: http://greenbytes.de/tech/tc2231/ Closes https://github.com/gitlabhq/gitlabhq/issues/9595 Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/1829