Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-11-02Remove authentication using user.private_tokenDouwe Maan
2017-08-24Remove leftover API helper for removed CI APIRobert Schilling
2017-06-28Test OAuth token scope verification in the `API::Users` endpointTimothy Andrew
2017-06-28Test `/users` endpoints for the `read_user` scope.Timothy Andrew
- 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.
2017-06-28Initial attempt at refactoring API scope declarations.Timothy Andrew
- Declaring an endpoint's scopes in a `before` block has proved to be unreliable. For example, if we're accessing the `API::Users` endpoint - code in a `before` block in `API::API` wouldn't be able to see the scopes set in `API::Users` since the `API::API` `before` block runs first. - This commit moves these declarations to the class level, since they don't need to change once set.
2017-03-13Implement `json_response` as a `let` variableRémy Coutable
This is not a good idea to memoize `json_response` using an instance variable because `rspec-retry` doesn't clear instance variables on retries, only `let` variables. This will avoid issues where retries would fail on a different line that the original failure, blurrying what's the real failure. Also, automatically add api: true to specs under /spec/requests/(ci/)?api/, and include JsonHelpers in controller, request and API specs. Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-30Remain V3 endpoint unchangedOswaldo Ferreira
2016-07-20Enable Style/MultilineTernaryOperator rubocop copGrzegorz Bizon
Avoid multi-line ?: (the ternary operator). Use if/unless instead. See #17478
2015-09-14fix specs. Stage 2Valery Sizov
2015-06-10Memoize result of JSON.parse in json_responseRobert Speicher
This might see a minor speedup in test cases that call this method many times.
2013-05-14Refactor API classes. So api classes like Gitlab::Issues become API::IssuesDmitriy Zaporozhets
2012-12-01API version returns last version setNihad Abbasov
* fixed in grape v0.2.2
2012-08-25Add a simple `api` method to ApiHelpers, replacing api_prefixRobert Speicher
See docs for usage
2012-08-25Cleanup spec/support folder and spec/spec_helperRobert Speicher
Changes: * Move spec/monkeypatch to spec/support * Remove unused support/shared_examples * Move support/api to support/api_helpers to match module name * Move support/login to support/login_helpers to match module name * Move API specs to requests/api (convention over configuration) * Remove unused support/js_patch * Simplify login_as helper * Move DatabaseCleaner stuff to its own support file * Remove unnecessary configuration and requires from spec_helper