Commit 763f9ee5 authored by Rémy Coutable's avatar Rémy Coutable

Move more EE-specific to ee/

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent a42996fb
...@@ -38,15 +38,11 @@ module API ...@@ -38,15 +38,11 @@ module API
mount ::API::V3::Groups mount ::API::V3::Groups
mount ::API::V3::Issues mount ::API::V3::Issues
mount ::API::V3::Labels mount ::API::V3::Labels
mount ::API::V3::LdapGroupLinks
mount ::API::V3::Members mount ::API::V3::Members
mount ::API::V3::MergeRequestDiffs mount ::API::V3::MergeRequestDiffs
mount ::API::V3::MergeRequests mount ::API::V3::MergeRequests
mount ::API::V3::Notes mount ::API::V3::Notes
mount ::API::V3::Pipelines mount ::API::V3::Pipelines
mount ::API::V3::ProjectGitHook
mount ::API::V3::ProjectPushRule
mount ::API::V3::Pipelines
mount ::API::V3::ProjectHooks mount ::API::V3::ProjectHooks
mount ::API::V3::Milestones mount ::API::V3::Milestones
mount ::API::V3::Projects mount ::API::V3::Projects
...@@ -65,10 +61,16 @@ module API ...@@ -65,10 +61,16 @@ module API
mount ::API::V3::Users mount ::API::V3::Users
mount ::API::V3::Variables mount ::API::V3::Variables
## EE-specific API V3 endpoints START
mount ::API::V3::LdapGroupLinks
mount ::API::V3::ProjectGitHook
mount ::API::V3::ProjectPushRule
mount ::API::V3::Pipelines
# Although the following endpoints are kept behind V3 namespace, they're not # Although the following endpoints are kept behind V3 namespace, they're not
# deprecated neither should be removed when V3 get removed. # deprecated neither should be removed when V3 get removed.
# They're needed as a layer to integrate with Jira Development Panel. # They're needed as a layer to integrate with Jira Development Panel.
mount ::API::V3::Github mount ::API::V3::Github
## EE-specific API V3 endpoints END
end end
before do before do
...@@ -126,25 +128,17 @@ module API ...@@ -126,25 +128,17 @@ module API
mount ::API::DeployKeys mount ::API::DeployKeys
mount ::API::Deployments mount ::API::Deployments
mount ::API::Environments mount ::API::Environments
mount ::API::EpicIssues
mount ::API::Epics
mount ::API::Events mount ::API::Events
mount ::API::Features mount ::API::Features
mount ::API::Files mount ::API::Files
mount ::API::Geo
mount ::API::GeoNodes
mount ::API::Groups mount ::API::Groups
mount ::API::GroupMilestones mount ::API::GroupMilestones
mount ::API::Internal mount ::API::Internal
mount ::API::Issues mount ::API::Issues
mount ::API::IssueLinks
mount ::API::Jobs mount ::API::Jobs
mount ::API::JobArtifacts mount ::API::JobArtifacts
mount ::API::Keys mount ::API::Keys
mount ::API::Labels mount ::API::Labels
mount ::API::Ldap
mount ::API::LdapGroupLinks
mount ::API::License
mount ::API::Lint mount ::API::Lint
mount ::API::Members mount ::API::Members
mount ::API::MergeRequestDiffs mount ::API::MergeRequestDiffs
...@@ -155,9 +149,7 @@ module API ...@@ -155,9 +149,7 @@ module API
mount ::API::PagesDomains mount ::API::PagesDomains
mount ::API::Pipelines mount ::API::Pipelines
mount ::API::PipelineSchedules mount ::API::PipelineSchedules
mount ::API::ProjectImport
mount ::API::ProjectHooks mount ::API::ProjectHooks
mount ::API::ProjectPushRule
mount ::API::Projects mount ::API::Projects
mount ::API::ProjectMilestones mount ::API::ProjectMilestones
mount ::API::ProjectSnippets mount ::API::ProjectSnippets
...@@ -182,9 +174,20 @@ module API ...@@ -182,9 +174,20 @@ module API
mount ::API::Version mount ::API::Version
mount ::API::Wikis mount ::API::Wikis
# EE-Only ## EE-specific API V4 endpoints START
mount ::API::EpicIssues
mount ::API::Epics
mount ::API::Geo
mount ::API::GeoNodes
mount ::API::GroupBoards mount ::API::GroupBoards
mount ::API::IssueLinks
mount ::API::Ldap
mount ::API::LdapGroupLinks
mount ::API::License
mount ::API::ProjectImport
mount ::API::ProjectPushRule
mount ::EE::API::Boards mount ::EE::API::Boards
## EE-specific API V4 endpoints END
route :any, '*path' do route :any, '*path' do
error!('404 Not Found', 404) error!('404 Not Found', 404)
......
require 'spec_helper'
describe Boards::UpdateService do
describe '#execute' do
let(:project) { create(:project) }
let!(:board) { create(:board, project: project, name: 'Backend') }
it "updates board's name" do
service = described_class.new(project, double, name: 'Engineering')
service.execute(board)
expect(board).to have_attributes(name: 'Engineering')
end
it 'returns true with valid params' do
service = described_class.new(project, double, name: 'Engineering')
expect(service.execute(board)).to eq true
end
it 'returns false with invalid params' do
service = described_class.new(project, double, name: nil)
expect(service.execute(board)).to eq false
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment