summaryrefslogtreecommitdiff
path: root/spec/requests/api/files_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Encode Content-Disposition filenamesStan Hu2019-02-041-1/+1
| | | | | | | | | | | | | Users downloading non-ASCII attachments would see garbled characters. When used with object storage, AWS S3 would return an InvalidArgument error: Header value cannot be represented using ISO-8859-1. Per RFC 5987 and RFC 6266, Content-Disposition should be encoded properly. This commit takes the Rails 6 implementation of ActiveSuppport::Http::ContentDisposition (https://github.com/rails/rails/pull/33829) and ports it here. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/47673
* Fix files/blob api endpoint content dispositionFrancisco Javier López2019-01-101-2/+3
|
* Fixed api content-disposition in blob and files endpointFrancisco Javier López2018-12-311-1/+1
|
* convert specs in javascripts/ and support/ to new syntaxJasper Maes2018-12-211-6/+6
|
* Update specs to rails5 formatblackst0ne-convert-specs-rails5-styleblackst0ne2018-12-191-35/+35
| | | | | | | | | | 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 }`
* Update code based on feedbackJames Lopez2018-12-041-0/+18
|
* Use read_repository scope on read-only files APIJames Lopez2018-12-041-0/+29
|
* Set content disposition attachment to several endpointsFrancisco Javier López2018-11-231-0/+8
|
* Extend to DELETE endpointRobert Schilling2018-08-211-5/+13
|
* Extend to PUT requestRobert Schilling2018-08-211-18/+22
|
* API: Catch empty commit messagesRobert Schilling2018-08-211-0/+12
|
* Fix bug setting http headers in Files APIFrancisco Javier López 🌴 On vacation; back on August 22th!2018-08-011-0/+30
|
* Add SHA256 and HEAD on File APIAhmet Demir2018-06-281-0/+85
|
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-221-1/+1
|
* Refactor `have_http_status` into `have_gitlab_http_status` in the specsJacopo2017-10-201-22/+22
|
* Merge branch 'move-git-operation-service' into 'master'Sean McGivern2017-09-041-2/+2
|\ | | | | | | | | Move GitOperationService to Gitlab::Git See merge request !13984
| * Move GitOperationService to Gitlab::Gitmove-git-operation-serviceJacob Vosmaer2017-09-011-2/+2
| |
* | fix :file_path - add requirements:Marc Siegfriedt2017-08-301-0/+9
|/
* Fix API responses when dealing with txt filesissue_31790Felipe Artur2017-08-151-0/+10
|
* Ensure all project factories use `:repository` trait or `:empty_project`rs-empty_project-cleanupRobert Speicher2017-08-011-2/+2
|
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-2/+2
|
* Correct RSpec/SingleLineHook cop offensesRobert Speicher2017-06-141-1/+3
|
* Introduce optimistic locking support via optional parameter last_commit_id ↵Roman Safronov2017-06-061-0/+19
| | | | on File Update API
* Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Unnecessary "include WaitForAjax" and "include ApiHelpers"Jacopo2017-04-211-2/+1
| | | | | Removed all the unnecessary include of `WaitForAjax` and `ApiHelpers` in the specs. Removed unnecessary usage of `api:true`
* Refactor changing files in web UIDouwe Maan2017-04-201-3/+3
|
* Don't use FFaker in factories, use sequences insteadRémy Coutable2017-04-031-15/+2
| | | | | | | FFaker can generate data that randomly break our test suite. This simplifies our factories and use sequences which are more predictive. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove unecessary endpoint from repository, add compatibility endpoints for ↵issue_16834Felipe Artur2017-03-071-0/+23
| | | | v3 and several improvements
* Update API endpoints for raw filesFelipe Artur2017-03-071-48/+111
|
* Fix creating a file in an empty repo using the APIDouwe Maan2017-03-011-0/+14
|
* Return 204 for delete endpointsRobert Schilling2017-02-281-9/+2
|
* Fix specsDouwe Maan2017-02-241-2/+2
|
* Change branch_name param to branch throughout V4 API22132-rename-branch-name-params-to-branchOswaldo Ferreira2017-02-211-4/+4
|
* Use `:empty_project` where possible in request specsrs-empty_project-requestsRobert Speicher2017-01-261-2/+2
|
* Improve specs for Files API4269-public-files-apiRémy Coutable2016-12-201-23/+51
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Allow unauthenticated access to Repositories Files API GET endpointsRémy Coutable2016-12-201-11/+26
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Changed API spec files to describe the correct classLivier2016-11-281-1/+1
| | | | | | | | Restore changes for api spec files Fix error in rspec Users Delete extra space Repositories-spec
* Add optional 'author' param when making commitsDan Dunckel2016-09-191-0/+75
|
* adds second batch of tests changed to active tenseactive-tense-test-coveragetiagonbotelho2016-08-091-11/+11
|
* Use HTTP matchers if possibleZ.J. van de Weg2016-06-271-12/+12
|
* Add ability to fetch the commit ID of the last commit that actually touched ↵api_file_touched_atValery Sizov2015-11-021-0/+1
| | | | a file
* Revert "Merge branch 'revert-satellites' into 'master' "Dmitriy Zaporozhets2015-08-111-35/+5
| | | | | This reverts commit 5daf44b7c86e0e2641a902b1da8b01d91fa3dbfa, reversing changes made to 2f706fbd231cabe7a76a5d17ac44285aaaf8592c.
* Merge branch 'revert-satellites' into 'master' Dmitriy Zaporozhets2015-08-111-5/+35
|\ | | | | | | | | | | | | | | | | Revert satellites Return satellites to master for 7.14 We remove satellites in next release (8.0) See merge request !1136
| * Fix file api testsDmitriy Zaporozhets2015-08-111-22/+8
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Revert "Merge branch 'web-editor-rugged' into 'master'"Dmitriy Zaporozhets2015-08-111-4/+48
| | | | | | | | | | | | | | This reverts commit 5a1aa49b5533593dc4c6de82279fe44f5f15616c, reversing changes made to a675bea2c1c1d5d6923cb97b8714eb72d4e4ff9b. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Revert "Merge branch 'drop-satellites'"Dmitriy Zaporozhets2015-08-111-1/+1
| | | | | | | | | | | | | | This reverts commit 957e849f41d96fa9778fcdd06792d2f0274b29ab, reversing changes made to 6b9dbe9f5a175a8162abf296367f561bab3eea1a. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Fix corrupted binary files when using API files endpointStan Hu2015-08-091-0/+31
|/ | | | | | Add CHANGELOG for gitlab_git 7.2.9 updates Closes #2219
* Remove satellitesDmitriy Zaporozhets2015-07-151-1/+1
|
* Merge branch 'master' into rubocop-for-testsDmitriy Zaporozhets2015-06-231-6/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: spec/features/issues_spec.rb spec/models/forked_project_link_spec.rb spec/models/hooks/service_hook_spec.rb spec/models/hooks/web_hook_spec.rb spec/models/project_services/hipchat_service_spec.rb spec/requests/api/project_members_spec.rb spec/requests/api/projects_spec.rb spec/requests/api/system_hooks_spec.rb spec/services/archive_repository_service_spec.rb spec/support/matchers.rb spec/tasks/gitlab/backup_rake_spec.rb
| * Update mock and stub syntax for specsRobert Speicher2015-06-221-6/+3
| |