Commit ed1fb873 authored by Valery Sizov's avatar Valery Sizov

[CE->EE][ci skip] Resolve conflicts

parent 3365e3eb
...@@ -291,7 +291,6 @@ describe API::Groups do ...@@ -291,7 +291,6 @@ describe API::Groups do
put api('/groups/1328', user1), name: new_group_name put api('/groups/1328', user1), name: new_group_name
expect(response).to have_gitlab_http_status(404) expect(response).to have_gitlab_http_status(404)
<<<<<<< HEAD
end end
# EE # EE
...@@ -311,8 +310,6 @@ describe API::Groups do ...@@ -311,8 +310,6 @@ describe API::Groups do
end.not_to change { group1.shared_runners_minutes_limit } end.not_to change { group1.shared_runners_minutes_limit }
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
end end
...@@ -551,7 +548,6 @@ describe API::Groups do ...@@ -551,7 +548,6 @@ describe API::Groups do
post api("/groups", user3), { name: 'test' } post api("/groups", user3), { name: 'test' }
expect(response).to have_gitlab_http_status(400) expect(response).to have_gitlab_http_status(400)
<<<<<<< HEAD
end end
it "creates an ldap_group_link if ldap_cn and ldap_access are supplied" do it "creates an ldap_group_link if ldap_cn and ldap_access are supplied" do
...@@ -588,8 +584,6 @@ describe API::Groups do ...@@ -588,8 +584,6 @@ describe API::Groups do
expect(json_response['shared_runners_minutes_limit']).to eq(133) expect(json_response['shared_runners_minutes_limit']).to eq(133)
end end
end end
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
end end
end end
......
...@@ -317,15 +317,14 @@ describe API::Jobs do ...@@ -317,15 +317,14 @@ describe API::Jobs do
end end
end end
<<<<<<< HEAD
it 'does not return job artifacts if not uploaded' do it 'does not return job artifacts if not uploaded' do
expect(response).to have_gitlab_http_status(404) expect(response).to have_gitlab_http_status(404)
======= end
it 'returns specific job artifacts' do it 'returns specific job artifacts' do
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
expect(response.headers).to include(download_headers) expect(response.headers).to include(download_headers)
expect(response.body).to match_file(job.artifacts_file.file.file) expect(response.body).to match_file(job.artifacts_file.file.file)
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
end end
end end
...@@ -352,7 +351,6 @@ describe API::Jobs do ...@@ -352,7 +351,6 @@ describe API::Jobs do
end end
end end
<<<<<<< HEAD
context 'feature is disabled for EES' do context 'feature is disabled for EES' do
let(:api_user) { user } let(:api_user) { user }
let(:cross_project_pipeline_enabled) { false } let(:cross_project_pipeline_enabled) { false }
...@@ -361,10 +359,10 @@ describe API::Jobs do ...@@ -361,10 +359,10 @@ describe API::Jobs do
expect(response).to have_gitlab_http_status(404) expect(response).to have_gitlab_http_status(404)
end end
end end
======= end
it 'does not return job artifacts if not uploaded' do it 'does not return job artifacts if not uploaded' do
expect(response).to have_gitlab_http_status(404) expect(response).to have_gitlab_http_status(404)
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
end end
...@@ -441,7 +439,6 @@ describe API::Jobs do ...@@ -441,7 +439,6 @@ describe API::Jobs do
it { expect(response.headers).to include(download_headers) } it { expect(response.headers).to include(download_headers) }
end end
<<<<<<< HEAD
context 'when artifacts are stored remotely' do context 'when artifacts are stored remotely' do
let(:job) { create(:ci_build, :artifacts, :remote_store, pipeline: pipeline, user: api_user) } let(:job) { create(:ci_build, :artifacts, :remote_store, pipeline: pipeline, user: api_user) }
...@@ -449,10 +446,9 @@ describe API::Jobs do ...@@ -449,10 +446,9 @@ describe API::Jobs do
expect(response).to have_gitlab_http_status(302) expect(response).to have_gitlab_http_status(302)
end end
end end
=======
it { expect(response).to have_gitlab_http_status(200) } it { expect(response).to have_gitlab_http_status(200) }
it { expect(response.headers).to include(download_headers) } it { expect(response.headers).to include(download_headers) }
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
context 'with regular branch' do context 'with regular branch' do
......
...@@ -1357,7 +1357,6 @@ describe API::Projects do ...@@ -1357,7 +1357,6 @@ describe API::Projects do
delete api("/projects/#{project.id}/share/#{group.id}", user) delete api("/projects/#{project.id}/share/#{group.id}", user)
expect(response).to have_gitlab_http_status(204) expect(response).to have_gitlab_http_status(204)
<<<<<<< HEAD
expect(project.project_group_links).to be_empty expect(project.project_group_links).to be_empty
end end
...@@ -1365,8 +1364,6 @@ describe API::Projects do ...@@ -1365,8 +1364,6 @@ describe API::Projects do
delete api("/projects/#{project.id}/share/#{group.id}", user) delete api("/projects/#{project.id}/share/#{group.id}", user)
expect(response).to have_gitlab_http_status(204) expect(response).to have_gitlab_http_status(204)
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
expect(project.project_group_links).to be_empty expect(project.project_group_links).to be_empty
end end
......
...@@ -1169,7 +1169,6 @@ describe API::Runner do ...@@ -1169,7 +1169,6 @@ describe API::Runner do
let(:job) { create(:ci_build, :artifacts) } let(:job) { create(:ci_build, :artifacts) }
context 'when using job token' do context 'when using job token' do
<<<<<<< HEAD
context 'when artifacts are stored locally' do context 'when artifacts are stored locally' do
let(:download_headers) do let(:download_headers) do
{ 'Content-Transfer-Encoding' => 'binary', { 'Content-Transfer-Encoding' => 'binary',
...@@ -1188,11 +1187,11 @@ describe API::Runner do ...@@ -1188,11 +1187,11 @@ describe API::Runner do
it 'download artifacts' do it 'download artifacts' do
expect(response).to have_gitlab_http_status(302) expect(response).to have_gitlab_http_status(302)
end end
======= end
it 'download artifacts' do it 'download artifacts' do
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
expect(response.headers).to include download_headers expect(response.headers).to include download_headers
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
end end
......
...@@ -7,10 +7,7 @@ describe API::Settings, 'Settings' do ...@@ -7,10 +7,7 @@ describe API::Settings, 'Settings' do
describe "GET /application/settings" do describe "GET /application/settings" do
it "returns application settings" do it "returns application settings" do
get api("/application/settings", admin) get api("/application/settings", admin)
<<<<<<< HEAD
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
expect(json_response).to be_an Hash expect(json_response).to be_an Hash
expect(json_response['default_projects_limit']).to eq(42) expect(json_response['default_projects_limit']).to eq(42)
......
...@@ -126,7 +126,6 @@ describe API::Triggers do ...@@ -126,7 +126,6 @@ describe API::Triggers do
end.to change(project.builds, :count).by(4) end.to change(project.builds, :count).by(4)
expect(response).to have_gitlab_http_status(201) expect(response).to have_gitlab_http_status(201)
<<<<<<< HEAD
end end
end end
end end
...@@ -217,8 +216,6 @@ describe API::Triggers do ...@@ -217,8 +216,6 @@ describe API::Triggers do
expect(Ci::Pipeline.last.variables.map { |v| { v.key => v.value } }.last).to eq(params[:variables]) expect(Ci::Pipeline.last.variables.map { |v| { v.key => v.value } }.last).to eq(params[:variables])
end end
end end
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
end end
end end
......
...@@ -595,7 +595,6 @@ describe API::Users do ...@@ -595,7 +595,6 @@ describe API::Users do
end.not_to change { user.reload.attributes } end.not_to change { user.reload.attributes }
expect(response).to have_gitlab_http_status(403) expect(response).to have_gitlab_http_status(403)
<<<<<<< HEAD
end end
it "cannot update their own shared_runners_minutes_limit" do it "cannot update their own shared_runners_minutes_limit" do
...@@ -604,8 +603,6 @@ describe API::Users do ...@@ -604,8 +603,6 @@ describe API::Users do
end.not_to change { user.reload.shared_runners_minutes_limit } end.not_to change { user.reload.shared_runners_minutes_limit }
expect(response).to have_gitlab_http_status(403) expect(response).to have_gitlab_http_status(403)
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
end end
......
...@@ -214,18 +214,17 @@ describe API::V3::Builds do ...@@ -214,18 +214,17 @@ describe API::V3::Builds do
end end
end end
<<<<<<< HEAD
context 'when artifacts are stored remotely' do context 'when artifacts are stored remotely' do
let(:build) { create(:ci_build, :artifacts, :remote_store, pipeline: pipeline) } let(:build) { create(:ci_build, :artifacts, :remote_store, pipeline: pipeline) }
it 'returns location redirect' do it 'returns location redirect' do
expect(response).to have_gitlab_http_status(302) expect(response).to have_gitlab_http_status(302)
======= end
it 'returns specific job artifacts' do it 'returns specific job artifacts' do
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
expect(response.headers).to include(download_headers) expect(response.headers).to include(download_headers)
expect(response.body).to match_file(build.artifacts_file.file.file) expect(response.body).to match_file(build.artifacts_file.file.file)
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
end end
...@@ -315,7 +314,6 @@ describe API::V3::Builds do ...@@ -315,7 +314,6 @@ describe API::V3::Builds do
it { expect(response.headers).to include(download_headers) } it { expect(response.headers).to include(download_headers) }
end end
<<<<<<< HEAD
context 'when artifacts are stored remotely' do context 'when artifacts are stored remotely' do
let(:build) { create(:ci_build, :artifacts, :remote_store, pipeline: pipeline) } let(:build) { create(:ci_build, :artifacts, :remote_store, pipeline: pipeline) }
...@@ -323,10 +321,9 @@ describe API::V3::Builds do ...@@ -323,10 +321,9 @@ describe API::V3::Builds do
expect(response).to have_gitlab_http_status(302) expect(response).to have_gitlab_http_status(302)
end end
end end
=======
it { expect(response).to have_gitlab_http_status(200) } it { expect(response).to have_gitlab_http_status(200) }
it { expect(response.headers).to include(download_headers) } it { expect(response.headers).to include(download_headers) }
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
context 'with regular branch' do context 'with regular branch' do
......
...@@ -33,7 +33,6 @@ describe API::V3::Groups do ...@@ -33,7 +33,6 @@ describe API::V3::Groups do
get v3_api("/groups", user1) get v3_api("/groups", user1)
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
<<<<<<< HEAD
expect(json_response).to be_an Array expect(json_response).to be_an Array
expect(json_response.length).to eq(1) expect(json_response.length).to eq(1)
expect(json_response) expect(json_response)
...@@ -165,8 +164,6 @@ describe API::V3::Groups do ...@@ -165,8 +164,6 @@ describe API::V3::Groups do
get v3_api("/groups", user1) get v3_api("/groups", user1)
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
expect(json_response).to be_an Array expect(json_response).to be_an Array
expect(json_response.length).to eq(1) expect(json_response.length).to eq(1)
expect(json_response) expect(json_response)
...@@ -415,7 +412,6 @@ describe API::V3::Groups do ...@@ -415,7 +412,6 @@ describe API::V3::Groups do
put v3_api("/groups/#{group2.id}", user1), name: new_group_name put v3_api("/groups/#{group2.id}", user1), name: new_group_name
expect(response).to have_gitlab_http_status(404) expect(response).to have_gitlab_http_status(404)
<<<<<<< HEAD
end end
end end
...@@ -427,8 +423,6 @@ describe API::V3::Groups do ...@@ -427,8 +423,6 @@ describe API::V3::Groups do
expect(response.status).to eq(200) expect(response.status).to eq(200)
expect(group2.reload.name).to eq('Renamed') expect(group2.reload.name).to eq('Renamed')
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
end end
end end
...@@ -600,14 +594,12 @@ describe API::V3::Groups do ...@@ -600,14 +594,12 @@ describe API::V3::Groups do
post v3_api("/groups", user3), { name: 'test' } post v3_api("/groups", user3), { name: 'test' }
expect(response).to have_gitlab_http_status(400) expect(response).to have_gitlab_http_status(400)
<<<<<<< HEAD
end end
it "creates an ldap_group_link if ldap_cn and ldap_access are supplied" do it "creates an ldap_group_link if ldap_cn and ldap_access are supplied" do
group_attributes = attributes_for(:group, ldap_cn: 'ldap-group', ldap_access: Gitlab::Access::DEVELOPER) group_attributes = attributes_for(:group, ldap_cn: 'ldap-group', ldap_access: Gitlab::Access::DEVELOPER)
expect { post v3_api("/groups", admin), group_attributes }.to change { LdapGroupLink.count }.by(1) expect { post v3_api("/groups", admin), group_attributes }.to change { LdapGroupLink.count }.by(1)
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
end end
end end
......
...@@ -540,7 +540,6 @@ describe API::MergeRequests do ...@@ -540,7 +540,6 @@ describe API::MergeRequests do
put v3_api("/projects/#{project.id}/merge_requests/#{merge_request.id}/merge", user), sha: merge_request.diff_head_sha put v3_api("/projects/#{project.id}/merge_requests/#{merge_request.id}/merge", user), sha: merge_request.diff_head_sha
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
<<<<<<< HEAD
end end
it "updates the MR's squash attribute" do it "updates the MR's squash attribute" do
...@@ -549,8 +548,6 @@ describe API::MergeRequests do ...@@ -549,8 +548,6 @@ describe API::MergeRequests do
end.to change { merge_request.reload.squash } end.to change { merge_request.reload.squash }
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
it "enables merge when pipeline succeeds if the pipeline is active" do it "enables merge when pipeline succeeds if the pipeline is active" do
...@@ -793,7 +790,6 @@ describe API::MergeRequests do ...@@ -793,7 +790,6 @@ describe API::MergeRequests do
delete v3_api("/projects/#{project.id}/merge_requests/#{merge_request.id}/subscription", guest) delete v3_api("/projects/#{project.id}/merge_requests/#{merge_request.id}/subscription", guest)
expect(response).to have_gitlab_http_status(403) expect(response).to have_gitlab_http_status(403)
<<<<<<< HEAD
end end
end end
...@@ -872,8 +868,6 @@ describe API::MergeRequests do ...@@ -872,8 +868,6 @@ describe API::MergeRequests do
expect(json_response['user_has_approved']).to be false expect(json_response['user_has_approved']).to be false
expect(json_response['user_can_approve']).to be true expect(json_response['user_can_approve']).to be true
end end
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
end end
......
...@@ -7,10 +7,7 @@ describe API::V3::Settings, 'Settings' do ...@@ -7,10 +7,7 @@ describe API::V3::Settings, 'Settings' do
describe "GET /application/settings" do describe "GET /application/settings" do
it "returns application settings" do it "returns application settings" do
get v3_api("/application/settings", admin) get v3_api("/application/settings", admin)
<<<<<<< HEAD
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
expect(json_response).to be_an Hash expect(json_response).to be_an Hash
expect(json_response['default_projects_limit']).to eq(42) expect(json_response['default_projects_limit']).to eq(42)
...@@ -34,10 +31,7 @@ describe API::V3::Settings, 'Settings' do ...@@ -34,10 +31,7 @@ describe API::V3::Settings, 'Settings' do
put v3_api("/application/settings", admin), put v3_api("/application/settings", admin),
default_projects_limit: 3, password_authentication_enabled: false, repository_storage: 'custom', koding_enabled: true, koding_url: 'http://koding.example.com', default_projects_limit: 3, password_authentication_enabled: false, repository_storage: 'custom', koding_enabled: true, koding_url: 'http://koding.example.com',
plantuml_enabled: true, plantuml_url: 'http://plantuml.example.com' plantuml_enabled: true, plantuml_url: 'http://plantuml.example.com'
<<<<<<< HEAD
=======
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
expect(json_response['default_projects_limit']).to eq(3) expect(json_response['default_projects_limit']).to eq(3)
expect(json_response['password_authentication_enabled']).to be_falsey expect(json_response['password_authentication_enabled']).to be_falsey
......
...@@ -229,11 +229,7 @@ shared_examples_for 'group and project milestones' do |route_definition| ...@@ -229,11 +229,7 @@ shared_examples_for 'group and project milestones' do |route_definition|
get api(issues_route, user) get api(issues_route, user)
expect(response).to have_gitlab_http_status(200) expect(response).to have_gitlab_http_status(200)
<<<<<<< HEAD
expect(response).to match_response_schema('public_api/v4/issues', dir: 'ee') expect(response).to match_response_schema('public_api/v4/issues', dir: 'ee')
=======
expect(response).to match_response_schema('public_api/v4/issues')
>>>>>>> 82446a2bd009e7d7481c35a142063a3973be77ce
end end
it 'returns a 401 error if user not authenticated' do it 'returns a 401 error if user not authenticated' do
......
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