gitlab-org--gitlab-foss/spec/services/merge_requests
Bob Van Landuyt 08dbd93bd6 Validate projects in MR build service
This validates the correct abilities for both projects. Only
`read_project` isn't enough:

For the `source_project` we validate `create_merge_request_from` this
also validates that the user has developer access to the project.

For the `target_project` we validate `create_merge_reqeust_in` this
also validates that the user has access to the project's repository.

To avoid generating diffs for unrelated projects we also validate that
the projects are in the same fork network now.
2018-12-14 10:21:09 +01:00
..
conflicts
add_todo_when_build_fails_service_spec.rb
assign_issues_service_spec.rb
build_service_spec.rb Validate projects in MR build service 2018-12-14 10:21:09 +01:00
close_service_spec.rb
create_from_issue_service_spec.rb
create_service_spec.rb
delete_non_latest_diffs_service_spec.rb
ff_merge_service_spec.rb
get_urls_service_spec.rb
merge_service_spec.rb
merge_when_pipeline_succeeds_service_spec.rb
post_merge_service_spec.rb
rebase_service_spec.rb
refresh_service_spec.rb
reload_diffs_service_spec.rb
reopen_service_spec.rb
resolved_discussion_notification_service_spec.rb
squash_service_spec.rb
update_service_spec.rb