GitLab Bot
71da5de44f
Add latest changes from gitlab-org/gitlab@master
2020-08-05 15:09:59 +00:00
GitLab Bot
fcda041fc0
Add latest changes from gitlab-org/gitlab@master
2020-07-09 12:08:56 +00:00
GitLab Bot
ae1efa2e1d
Add latest changes from gitlab-org/gitlab@master
2020-07-01 15:08:45 +00:00
GitLab Bot
fa7ac2663b
Add latest changes from gitlab-org/gitlab@master
2020-06-24 06:09:01 +00:00
GitLab Bot
553a22402b
Add latest changes from gitlab-org/gitlab@master
2020-05-19 12:08:21 +00:00
GitLab Bot
48650fe1bf
Add latest changes from gitlab-org/gitlab@master
2020-05-18 12:08:08 +00:00
GitLab Bot
39a548dd06
Add latest changes from gitlab-org/gitlab@master
2020-05-04 15:09:38 +00:00
GitLab Bot
fdd0b0fd45
Add latest changes from gitlab-org/gitlab@master
2020-04-23 18:09:46 +00:00
GitLab Bot
e33f87ac0f
Add latest changes from gitlab-org/gitlab@master
2020-04-21 15:21:10 +00:00
GitLab Bot
1219a9dce9
Add latest changes from gitlab-org/gitlab@master
2020-04-01 15:07:45 +00:00
GitLab Bot
dc003cd08b
Add latest changes from gitlab-org/gitlab@master
2020-03-26 18:08:03 +00:00
GitLab Bot
2af90cef2e
Add latest changes from gitlab-org/gitlab@master
2020-03-19 09:09:27 +00:00
GitLab Bot
d3fc3be040
Add latest changes from gitlab-org/gitlab@master
2020-03-04 15:08:09 +00:00
GitLab Bot
e9c2bf2678
Add latest changes from gitlab-org/gitlab@master
2020-03-03 18:08:16 +00:00
GitLab Bot
1c8fa70f9d
Add latest changes from gitlab-org/gitlab@master
2020-02-28 18:09:07 +00:00
GitLab Bot
c77fda905a
Add latest changes from gitlab-org/gitlab@master
2020-02-27 21:09:17 +00:00
GitLab Bot
b304a72312
Add latest changes from gitlab-org/gitlab@master
2020-02-17 15:09:01 +00:00
GitLab Bot
536aa3a1f4
Add latest changes from gitlab-org/gitlab@master
2020-01-30 15:09:15 +00:00
GitLab Bot
d10a462fed
Add latest changes from gitlab-org/gitlab@master
2019-12-16 12:07:43 +00:00
GitLab Bot
abfafe3c57
Add latest changes from gitlab-org/gitlab@master
2019-10-29 00:06:10 +00:00
GitLab Bot
7bb7a8d529
Add latest changes from gitlab-org/gitlab@master
2019-09-25 03:06:21 +00:00
Grzegorz Bizon
1068ec2e92
Merge branch '66741-remove-spec-rails_helper-rb' into 'master'
...
Remove spec/rails_helper.rb
Closes #66741
See merge request gitlab-org/gitlab-ce!32380
2019-09-03 13:48:17 +00:00
Ash McKenzie
19ff9d9899
Replace rails_helper.rb with spec_helper.rb
...
rails_helper.rb's only logic was to require
spec_helper.rb.
2019-08-30 12:26:18 +10:00
Rémy Coutable
1843502ff4
Merge branch 'sh-fix-snippet-visibility-api' into 'master'
...
Fix snippets API not working with visibility level
Closes #66050
See merge request gitlab-org/gitlab-ce!32286
2019-08-29 13:57:26 +00:00
Stan Hu
fc52421b55
Standardize use of `content` parameter in snippets API
...
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
2019-08-28 22:54:07 -07:00
Stan Hu
680f437715
Fix snippets API not working with visibility level
...
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
2019-08-28 22:49:58 -07:00
blackst0ne
b44a2c801a
Update specs to rails5 format
...
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 }`
2018-12-19 10:04:31 +11:00
Robert Schilling
72b5c9af62
API: Catch empty code content for project snippets
2018-08-21 11:49:06 +02:00
Robert Speicher
c9ecf49d8c
Correct "autorize" typos
2018-06-27 15:16:18 -05:00
Nick Thomas
1a3bcc76ea
Fix the user-agent detail API endpoint for project snippets
2018-01-17 14:30:07 +00:00
Jacopo
2f40dac352
Refactor `have_http_status` into `have_gitlab_http_status` in the specs
2017-10-20 10:13:18 +02:00
Sean McGivern
f11049ab91
Merge branch 'api-delete-respect-headers' into 'master'
...
API: Respect the 'If-Unmodified-Since' for delete endpoints
See merge request !9621
2017-08-30 09:56:17 +00:00
Maxim Rydkin
fa030cbc85
replace `is_spam?` with `spam?`
2017-08-29 11:14:42 +03:00
Robert Schilling
915dd57fe2
Add tests for the unmodified header
2017-08-28 17:10:34 +02:00
Robert Speicher
72a7b30c9f
Change all `:empty_project` to `:project`
2017-08-02 17:47:31 -04:00
James Lopez
4c735e1bd4
fix spec order issue
2017-07-07 17:02:54 +02:00
James Lopez
a9e8af3386
add spec and project snippet user agent details endpoint
2017-07-07 15:54:39 +02:00
Grzegorz Bizon
0430b76441
Enable Style/DotPosition Rubocop 👮
2017-06-21 13:48:12 +00:00
Jarka Kadlecova
4464c22d6d
Support descriptions for snippets
2017-05-31 07:17:03 +02:00
Jacopo
ff76adb547
Unnecessary "include WaitForAjax" and "include ApiHelpers"
...
Removed all the unnecessary include of `WaitForAjax` and `ApiHelpers` in the specs.
Removed unnecessary usage of `api:true`
2017-04-21 22:32:02 +02:00
Toon Claes
b2c2dfe545
Expose Project's & ProjectSnippet's VisibilityLevel as String
...
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.
2017-03-02 09:33:24 +01:00
Robert Schilling
c280acb00b
Backport API to V3
2017-02-28 08:32:39 +01:00
Robert Schilling
86c58687b2
Return 204 for delete endpoints
2017-02-28 08:32:38 +01:00
Oswaldo Ferreira
2ace39f242
Spam check and reCAPTCHA improvements
2017-02-21 13:32:49 -03:00
Robert Schilling
c70dfbc686
Add a custom pagination matcher
2017-02-16 15:38:40 +01:00
Robert Schilling
5985b55769
Remove deprecated 'expires_at' from project snippets API
2017-02-07 12:16:00 +01:00
Sean McGivern
34918d94c0
Use `add_$role` helper in snippets specs
2017-02-02 14:03:08 +00:00
Sean McGivern
c63194ce6f
Check public snippets for spam
...
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.
2017-02-02 10:23:51 +00:00
Livier
eb4f15571d
Changed API spec files to describe the correct class
...
Restore changes for api spec files
Fix error in rspec Users
Delete extra space Repositories-spec
2016-11-28 10:55:27 -07:00
Robert Schilling
b7bf1f3a9d
Grapify the projects snippet API
2016-11-21 17:25:34 +01:00