gitlab-org--gitlab-foss/spec/requests/api
Joshua Welsh ce4760bbd5
Fixes various errors when adding deploy keys caused by not exiting the control flow.
When adding a deploy key that already exists in the project the existing key would not be returned, resulting in an attempt to create a new one, which in turn caused a 500 error due to an ActiveRecord exception.

When adding a deploy key that exists within another project the key would be joined to the project, but would also attempt to create a new one, which resulted in a 400 error due to the key already existing.

Fixes #22741
Fixes #21754

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-26 12:54:47 +02:00
..
access_requests_spec.rb Invert method's naming 2016-10-03 16:57:48 +02:00
api_helpers_spec.rb API: disable rails session auth for non-GET/HEAD requests 2016-09-23 12:21:47 +01:00
award_emoji_spec.rb Fix tests for Snippets toggling awards 2016-09-19 19:53:09 +03:00
boards_spec.rb Add support to group labels on issues board API 2016-10-19 14:58:26 -02:00
branches_spec.rb Fix branch protection API. 2016-10-24 11:33:38 +05:30
broadcast_messages_spec.rb
builds_spec.rb expose pipeline data in builds API 2016-09-28 23:58:16 -03:00
commit_statuses_spec.rb Grapify the commit status API 2016-10-19 12:46:27 +02:00
commits_spec.rb Added path parameter to Commits API 2016-10-24 16:43:52 +02:00
deploy_keys_spec.rb Fixes various errors when adding deploy keys caused by not exiting the control flow. 2016-10-26 12:54:47 +02:00
deployments_spec.rb
doorkeeper_access_spec.rb
environments_spec.rb
files_spec.rb Add optional 'author' param when making commits 2016-09-19 10:00:26 -07:00
fork_spec.rb Enforce the fork_project permission in Projects::CreateService 2016-09-27 13:17:56 +01:00
groups_spec.rb fix group links 404 2016-10-05 09:57:54 +01:00
internal_spec.rb Handle LFS token creation and retrieval in the same method, and in the same Redis connection. 2016-09-28 12:13:48 -05:00
issues_spec.rb Add a be_like_time matcher and use it in specs 2016-10-17 14:44:20 +01:00
keys_spec.rb
labels_spec.rb Grapify the labels API 2016-10-24 16:52:34 +02:00
lint_spec.rb
members_spec.rb Fix project member access levels 2016-10-21 12:57:53 +03:00
merge_request_diffs_spec.rb
merge_requests_spec.rb Allow Member.add_user to handle access requesters 2016-09-28 09:43:00 +02:00
milestones_spec.rb Allowing ">" to be used for Milestone models's title and storing the value in db as unescaped. 2016-09-29 19:28:38 -07:00
namespaces_spec.rb
notes_spec.rb Fix authored vote from notes 2016-10-24 15:24:56 +02:00
notification_settings_spec.rb
oauth_tokens_spec.rb
pipelines_spec.rb
project_hooks_spec.rb Replace undefined Grape routing code from 400 to 404 2016-10-10 16:32:32 +03:00
project_snippets_spec.rb
projects_spec.rb Merge branch 'speed-up-api-projects-spec' into 'master' 2016-10-12 10:23:39 +00:00
repositories_spec.rb refactors tests because of gitlab-test repository changes 2016-10-11 16:33:06 +01:00
runners_spec.rb
services_spec.rb
session_spec.rb
settings_spec.rb Expose the Koding application settings in the API 2016-09-29 09:12:52 -07:00
sidekiq_metrics_spec.rb
system_hooks_spec.rb API: Fix Sytem hooks delete behavior 2016-10-14 14:16:27 +02:00
tags_spec.rb
templates_spec.rb Create a new /templates API namespace 2016-10-12 11:09:41 +02:00
todos_spec.rb
triggers_spec.rb
users_spec.rb Make events order spec deterministic, create only 3 record instead of 5, explicitely check for events order 2016-10-24 22:56:28 +03:00
variables_spec.rb
version_spec.rb API: Version information 2016-10-12 16:47:35 +02:00