summaryrefslogtreecommitdiff
path: root/spec/requests/api/project_snippets_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot2020-05-201-58/+40
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-011-4/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-261-0/+24
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-191-1/+13
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-041-16/+20
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-031-3/+51
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-281-0/+38
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-271-25/+25
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-171-3/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-301-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterogolowinski-master-patch-80898GitLab Bot2019-12-161-2/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-291-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-251-3/+3
|
* Merge branch '66741-remove-spec-rails_helper-rb' into 'master'Grzegorz Bizon2019-09-031-1/+1
|\ | | | | | | | | | | | | Remove spec/rails_helper.rb Closes #66741 See merge request gitlab-org/gitlab-ce!32380
| * Replace rails_helper.rb with spec_helper.rb66741-remove-spec-rails_helper-rbAsh McKenzie2019-08-301-1/+1
| | | | | | | | | | rails_helper.rb's only logic was to require spec_helper.rb.
* | Merge branch 'sh-fix-snippet-visibility-api' into 'master'Rémy Coutable2019-08-291-1/+24
|\ \ | | | | | | | | | | | | | | | | | | Fix snippets API not working with visibility level Closes #66050 See merge request gitlab-org/gitlab-ce!32286
| * | Fix snippets API not working with visibility levelsh-fix-snippet-visibility-apiStan Hu2019-08-281-1/+24
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a restricted visibility level of `private` is set in the instance, creating a snippet with the `visibility` level would always fail. This happened because: 1. `params[:visibility]` was a string (e.g. "public") 2. `CreateSnippetService` and `UpdateSnippetService` only looked at `params[:visibility_level]`, which was `nil`. To fix this, we: 1. Make `CreateSnippetService` look at the newly-built `snippet.visibility_level`, since the right value is assigned by the `VisibilityLevel#visibility=` method. 2. Modify `UpdateSnippetService` to handle both `visibility_level` and `visibility` parameters. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66050
* | Standardize use of `content` parameter in snippets APIsh-support-content-for-snippets-apiStan Hu2019-08-281-0/+42
|/ | | | | | | | | | | | | | | | There was some confusion over whether `code` or `content` is the right parameter for snippets. Internally, the database stores `content`. However: 1. Project snippets use `code`. `code` gets remapped in `content` in `lib/api/project_snippets.rb`. 2. Personal snippets use `content`. To unify these APIs, allow an alias of `content` to work for project snippets. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66673
* Update specs to rails5 formatblackst0ne-convert-specs-rails5-styleblackst0ne2018-12-191-8/+8
| | | | | | | | | | 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 }`
* API: Catch empty code content for project snippetsRobert Schilling2018-08-211-0/+16
|
* Correct "autorize" typosRobert Speicher2018-06-271-1/+1
|
* Fix the user-agent detail API endpoint for project snippetsNick Thomas2018-01-171-3/+10
|
* Refactor `have_http_status` into `have_gitlab_http_status` in the specsJacopo2017-10-201-17/+17
|
* Merge branch 'api-delete-respect-headers' into 'master'Sean McGivern2017-08-301-3/+4
|\ | | | | | | | | API: Respect the 'If-Unmodified-Since' for delete endpoints See merge request !9621
| * Add tests for the unmodified headerRobert Schilling2017-08-281-3/+4
| |
* | replace `is_spam?` with `spam?`Maxim Rydkin2017-08-291-2/+2
|/
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-1/+1
|
* fix spec order issueJames Lopez2017-07-071-23/+22
|
* add spec and project snippet user agent details endpointJames Lopez2017-07-071-0/+21
|
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-16/+16
|
* Support descriptions for snippetsJarka Kadlecova2017-05-311-1/+27
|
* Unnecessary "include WaitForAjax" and "include ApiHelpers"Jacopo2017-04-211-3/+1
| | | | | Removed all the unnecessary include of `WaitForAjax` and `ApiHelpers` in the specs. Removed unnecessary usage of `api:true`
* Expose Project's & ProjectSnippet's VisibilityLevel as StringToon Claes2017-03-021-8/+8
| | | | | | | | | | Instead of exposing the VisibilityLevel as Integer, expose it as String `visibility` for Project and ProjectSnippet. Filter queries also accept the `visibility` as String instead of `visibility_level` as Integer. Also remove the `public` boolean.
* Backport API to V3Robert Schilling2017-02-281-1/+1
|
* Return 204 for delete endpointsRobert Schilling2017-02-281-2/+2
|
* Spam check and reCAPTCHA improvements28093-snippet-and-issue-spam-check-on-editOswaldo Ferreira2017-02-211-26/+66
|
* Add a custom pagination matcherRobert Schilling2017-02-161-1/+6
|
* Remove deprecated 'expires_at' from project snippets APIRobert Schilling2017-02-071-12/+0
|
* Use `add_$role` helper in snippets specssnippet-spamSean McGivern2017-02-021-2/+2
|
* Check public snippets for spamSean McGivern2017-02-021-1/+47
| | | | | | Apply the same spam checks to public snippets (either personal snippets that are public, or public snippets on public projects) as to issues on public projects.
* 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
* Grapify the projects snippet APIgrapify-project-snippet-apiRobert Schilling2016-11-211-14/+50
|
* api: expose web_url for project entitiesBen Boeckel2016-08-241-0/+1
| | | | | This allows web hooks to have a URL back to entities without having to generate it themselves.
* adds second batch of tests changed to active tenseactive-tense-test-coveragetiagonbotelho2016-08-091-1/+1
|
* Use HTTP matchers if possibleZ.J. van de Weg2016-06-271-6/+6
|
* Prevent private snippets in public/internal projects from being leaked via APIStan Hu2016-04-251-0/+87
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15580
* Don't remove `ProjectSnippet#expires_at` from APIrs-snippet-expires-apiRobert Speicher2016-03-091-0/+18
See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3103 This partially reverts commit 836d5930332797192094ce4a3c8083e96f7e8c53.