Commit c2eff648 authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflicts

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 5a7cb7f8
......@@ -17,7 +17,6 @@ describe Admin::ApplicationSettingsController do
it 'updates the default_project_visibility for string value' do
put :update, application_setting: { default_project_visibility: "20" }
<<<<<<< HEAD
expect(response).to redirect_to(admin_application_settings_path)
expect(ApplicationSetting.current.default_project_visibility).to eq(Gitlab::VisibilityLevel::PUBLIC)
......@@ -98,26 +97,6 @@ describe Admin::ApplicationSettingsController do
expect(body["version"]).to eq(Gitlab::VERSION)
expect(body).to include('counts')
expect(response.status).to eq(200)
=======
expect(response).to redirect_to(admin_application_settings_path)
expect(ApplicationSetting.current.default_project_visibility).to eq(Gitlab::VisibilityLevel::PUBLIC)
end
it 'update the restricted levels for string values' do
put :update, application_setting: { restricted_visibility_levels: %w[10 20] }
expect(response).to redirect_to(admin_application_settings_path)
expect(ApplicationSetting.current.restricted_visibility_levels).to eq([10, 20])
end
it 'falls back to defaults when settings are omitted' do
put :update, application_setting: {}
expect(response).to redirect_to(admin_application_settings_path)
expect(ApplicationSetting.current.default_project_visibility).to eq(Gitlab::VisibilityLevel::PRIVATE)
expect(ApplicationSetting.current.restricted_visibility_levels).to be_empty
>>>>>>> ce/master
end
end
end
......@@ -16,17 +16,6 @@ describe EnvironmentEntity do
expect(subject).to include(:id, :name, :state, :environment_path)
end
<<<<<<< HEAD
context 'with deployment service ready' do
before do
allow(environment).to receive(:deployment_service_ready?).and_return(true)
end
it 'exposes rollout_status_path' do
expected = '/' + [environment.project.full_path, 'environments', environment.id, 'status.json'].join('/')
expect(subject[:rollout_status_path]).to eq(expected)
=======
context 'metrics disabled' do
before do
allow(environment).to receive(:has_metrics?).and_return(false)
......@@ -44,7 +33,18 @@ describe EnvironmentEntity do
it 'exposes metrics path' do
expect(subject).to include(:metrics_path)
>>>>>>> ce/master
end
end
context 'with deployment service ready' do
before do
allow(environment).to receive(:deployment_service_ready?).and_return(true)
end
it 'exposes rollout_status_path' do
expected = '/' + [environment.project.full_path, 'environments', environment.id, 'status.json'].join('/')
expect(subject[:rollout_status_path]).to eq(expected)
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