summaryrefslogtreecommitdiff
path: root/spec/support/api
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
|
* 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