summaryrefslogtreecommitdiff
path: root/spec/support/api
Commit message (Collapse)AuthorAgeFilesLines
* Add frozen_string_literal to spec/supportThong Kuah2019-07-258-0/+16
| | | | | Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
* Remove N+1 query for project and group boardscharlieablett2019-06-261-0/+10
| | | | | | - Add test for N+1 queries - Add destroyable lists scope to Board and List - Preload lists for both project and group boards
* Resolve "Get milestone by title via API"Fabio Busatto2019-03-271-0/+9
|
* Merge branch 'improve-spec-requests-api-merge_requests_spec' into 'master'Robert Speicher2019-03-151-0/+2
|\ | | | | | | | | Reduce queries in spec/requests/api/merge_requests_spec.rb See merge request gitlab-org/gitlab-ce!26110
| * Reduce queries in spec/requests/api/merge_requests_spec.rbRémy Coutable2019-03-131-0/+2
| | | | | | | | | | | | | | This reduces the queries from 97137 to 65136 and the query time from 02:04 to 01:27 in spec/requests/api/merge_requests.rb. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Reduce diff with EE in spec/fixtures/api/schemasRémy Coutable2019-03-141-5/+19
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Reduce differences in spec/support/api/schema_matcher.rbRémy Coutable2019-03-071-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Revert "Merge branch '50559-add-milestone-progress-to-api' into 'master'"Stan Hu2019-02-141-5/+0
| | | This reverts merge request !25173
* Add milestone progress to APIRobert Schilling2019-02-131-0/+5
|
* convert specs in javascripts/ and support/ to new syntaxJasper Maes2018-12-214-41/+29
|
* Merge branch 'issue_36138' into 'master'Sean McGivern2018-08-281-0/+18
|\ | | | | | | | | | | | | Allow to delete group milestones Closes #36138 See merge request gitlab-org/gitlab-ce!21057
| * Allow to delete group milestonesissue_36138Felipe Artur2018-08-061-0/+18
| |
* | Remove some duplicate tests and fix some typosqa-314-project-tests-cleanupsliaquat2018-08-161-8/+0
|/
* Updates from `rubocop -a`Lin Jen-Shin2018-07-092-5/+5
|
* Restoring user v3 endpointFrancisco Javier López2018-06-131-4/+6
|
* Removed API endpoint and specsfj-36819-remove-v3-apiFrancisco Javier López2018-05-301-128/+0
|
* Allow start_date as only parameter when updating Milestone via APIMark Fletcher2018-05-241-0/+6
|
* Updates updated_at on issue when using /spend quick actionJacopo2018-05-091-6/+22
|
* EE-BACKPORT group boardsFelipe Artur2018-01-041-0/+180
|
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-221-2/+2
|
* Only include the user's ID in the time_spent command's update hashRobert Speicher2017-12-192-6/+6
| | | | | | | | | Previously, this would include the entire User record in the update hash, which was rendered in the response using `to_json`, erroneously exposing every attribute of that record, including their (now removed) private token. Now we only include the user ID, and perform the lookup on-demand.
* Refactor `have_http_status` into `have_gitlab_http_status` in the specsJacopo2017-10-206-60/+60
|
* Move all API authentication code to APIGuardDouwe Maan2017-10-121-4/+4
|
* Hide read_registry scope when registry is disabled on instanceRobin Bobbitt2017-08-211-0/+4
|
* Enable the Layout/SpaceBeforeBlockBraces coprc/enable-the-Layout/SpaceBeforeBlockBraces-copRémy Coutable2017-08-091-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Backport to CE for:2902-standalone-ee-dir-ceLin Jen-Shin2017-08-041-8/+10
| | | | https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2483
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-1/+1
|
* Fix the /projects/:id/repository/branches endpoint to handle dots in the ↵Rémy Coutable2017-07-272-43/+8
| | | | | | branch name when the project full patch contains a `/` Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add group milestones API endpointissue_34622Felipe Artur2017-07-211-0/+383
|
* Fix remaining spec failures for !12300.Timothy Andrew2017-06-281-1/+0
| | | | | | | | | | | | | | 1. Get the spec for `lib/gitlab/auth.rb` passing. - Make the `request` argument to `AccessTokenValidationService` optional - `auth.rb` doesn't need to pass in a request. - Pass in scopes in the format `[{ name: 'api' }]` rather than `['api']`, which is what `AccessTokenValidationService` now expects. 2. Get the spec for `API::V3::Users` passing 2. Get the spec for `AccessTokenValidationService` passing
* Test OAuth token scope verification in the `API::Users` endpointTimothy Andrew2017-06-281-10/+57
|
* Test `/users` endpoints for the `read_user` scope.Timothy Andrew2017-06-281-0/+33
| | | | | | - Test `GET` endpoints to check that the scope is allowed. - Test `POST` endpoints to check that the scope is disallowed. - Test both `v3` and `v4` endpoints.
* Add schema matcher for non response objects + use schema to test additional ↵Pawel Chojnacki2017-06-061-3/+11
| | | | metrics compliance
* Delegate a single discussion to a new issueBob Van Landuyt2017-03-131-0/+15
| | | | | | Delegate a discussion in a merge request into a new issue. The discussion wil be marked as resolved and a system note will be added linking to the newly created issue.
* Fix time tracking endpoints for API v4Timothy Andrew2017-03-071-0/+128
| | | | | | - Use issue/merge_request IID instead of ID - Duplicate the original `TimeTrackingEndpoints` concern (+ specs) for V3, since this is a breaking change.
* API routes referencing a specific issue should use the issue `iid`Timothy Andrew2017-03-071-14/+14
| | | | | | - As opposed to the issue `id` that was previously being used. - This brings the API routes closer to the web interface's routes. - This is specific to API v4.
* Remove shared example for paginationremove-paginated-ressourceRobert Schilling2017-02-201-20/+0
|
* Add some API endpoints for time tracking.Ruben Davila2017-01-181-0/+132
| | | | | | | | | | | | | | New endpoints are: POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/time_estimate" POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/reset_time_estimate" POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/add_spent_time" POST :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/reset_spent_time" GET :project_id/(issues|merge_requests)/(:issue_id|:merge_request_id)/time_stats"
* Improve specs for Files API4269-public-files-apiRémy Coutable2016-12-201-0/+10
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Improve specs for Repositories API4269-public-repositories-apiRémy Coutable2016-12-201-0/+42
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix matcher `match_response_schema`Douglas Barbosa Alexandre2016-08-171-3/+2
|
* Projects::BoardsController#show returns a list of board listsDouglas Barbosa Alexandre2016-08-171-0/+9
|
* New AccessRequests API endpoints for Group & ProjectRémy Coutable2016-08-101-0/+11
| | | | | | | | Also, mutualize AccessRequests and Members endpoints for Group & Project. New API documentation for the AccessRequests endpoints. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add pagination headers to already paginated API resourcesadd-pagination-headers-to-apiRémy Coutable2016-01-141-0/+20