Skip to content
Snippets Groups Projects
Commit 656831e1 authored by Stan Hu's avatar Stan Hu
Browse files

Remove Koding integration and documentation

This integration no longer works and does not appear to be supported.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39697
parent a5ecb5bb
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Showing
with 0 additions and 213 deletions
Loading
Loading
@@ -4338,12 +4338,6 @@ msgstr ""
msgid "June"
msgstr ""
 
msgid "Koding"
msgstr ""
msgid "Koding Dashboard"
msgstr ""
msgid "Kubernetes"
msgstr ""
 
Loading
Loading
@@ -6858,9 +6852,6 @@ msgstr ""
msgid "Set up CI/CD"
msgstr ""
 
msgid "Set up Koding"
msgstr ""
msgid "Set up a %{type} Runner manually"
msgstr ""
 
Loading
Loading
Loading
Loading
@@ -4266,12 +4266,6 @@ msgstr "Jun"
msgid "June"
msgstr "Junho"
 
msgid "Koding"
msgstr "Koding"
msgid "Koding Dashboard"
msgstr "Painel de controle do Koding"
msgid "Kubernetes"
msgstr "Kubernetes"
 
Loading
Loading
@@ -6774,9 +6768,6 @@ msgstr "Definir requisitos para um usuário entrar. Ative a autenticação obrig
msgid "Set up CI/CD"
msgstr "Configurar CI/CD"
 
msgid "Set up Koding"
msgstr "Configurar Koding"
msgid "Set up a %{type} Runner manually"
msgstr ""
 
Loading
Loading
Loading
Loading
@@ -4302,12 +4302,6 @@ msgstr ""
msgid "June"
msgstr ""
 
msgid "Koding"
msgstr ""
msgid "Koding Dashboard"
msgstr ""
msgid "Kubernetes"
msgstr ""
 
Loading
Loading
@@ -6816,9 +6810,6 @@ msgstr ""
msgid "Set up CI/CD"
msgstr ""
 
msgid "Set up Koding"
msgstr ""
msgid "Set up a %{type} Runner manually"
msgstr ""
 
Loading
Loading
Loading
Loading
@@ -4338,12 +4338,6 @@ msgstr "Июн."
msgid "June"
msgstr "Июнь"
 
msgid "Koding"
msgstr "Koding"
msgid "Koding Dashboard"
msgstr ""
msgid "Kubernetes"
msgstr "Kubernetes"
 
Loading
Loading
@@ -6858,9 +6852,6 @@ msgstr ""
msgid "Set up CI/CD"
msgstr "Настройка CI/CD"
 
msgid "Set up Koding"
msgstr "Настройка Koding"
msgid "Set up a %{type} Runner manually"
msgstr ""
 
Loading
Loading
Loading
Loading
@@ -4266,12 +4266,6 @@ msgstr ""
msgid "June"
msgstr ""
 
msgid "Koding"
msgstr ""
msgid "Koding Dashboard"
msgstr ""
msgid "Kubernetes"
msgstr ""
 
Loading
Loading
@@ -6774,9 +6768,6 @@ msgstr ""
msgid "Set up CI/CD"
msgstr ""
 
msgid "Set up Koding"
msgstr ""
msgid "Set up a %{type} Runner manually"
msgstr ""
 
Loading
Loading
Loading
Loading
@@ -4266,12 +4266,6 @@ msgstr ""
msgid "June"
msgstr ""
 
msgid "Koding"
msgstr ""
msgid "Koding Dashboard"
msgstr ""
msgid "Kubernetes"
msgstr ""
 
Loading
Loading
@@ -6774,9 +6768,6 @@ msgstr ""
msgid "Set up CI/CD"
msgstr ""
 
msgid "Set up Koding"
msgstr ""
msgid "Set up a %{type} Runner manually"
msgstr ""
 
Loading
Loading
Loading
Loading
@@ -4338,12 +4338,6 @@ msgstr "чер."
msgid "June"
msgstr "червень"
 
msgid "Koding"
msgstr "Koding"
msgid "Koding Dashboard"
msgstr "Панель керування Koding"
msgid "Kubernetes"
msgstr "Kubernetes"
 
Loading
Loading
@@ -6858,9 +6852,6 @@ msgstr "Встановіть вимоги для входу користувач
msgid "Set up CI/CD"
msgstr "Налаштування CI/CD"
 
msgid "Set up Koding"
msgstr "Налаштування Koding"
msgid "Set up a %{type} Runner manually"
msgstr ""
 
Loading
Loading
Loading
Loading
@@ -4230,12 +4230,6 @@ msgstr "六"
msgid "June"
msgstr "六月"
 
msgid "Koding"
msgstr "Koding"
msgid "Koding Dashboard"
msgstr "Koding仪表板"
msgid "Kubernetes"
msgstr "Kubernetes"
 
Loading
Loading
@@ -6732,9 +6726,6 @@ msgstr "设定用户登录的条件。启用强制双重认证。"
msgid "Set up CI/CD"
msgstr "配置 CI/CD"
 
msgid "Set up Koding"
msgstr "设置 Koding"
msgid "Set up a %{type} Runner manually"
msgstr "手动设置%{type}Runner "
 
Loading
Loading
Loading
Loading
@@ -4230,12 +4230,6 @@ msgstr ""
msgid "June"
msgstr ""
 
msgid "Koding"
msgstr ""
msgid "Koding Dashboard"
msgstr ""
msgid "Kubernetes"
msgstr ""
 
Loading
Loading
@@ -6732,9 +6726,6 @@ msgstr ""
msgid "Set up CI/CD"
msgstr ""
 
msgid "Set up Koding"
msgstr "設置 Koding"
msgid "Set up a %{type} Runner manually"
msgstr ""
 
Loading
Loading
Loading
Loading
@@ -4230,12 +4230,6 @@ msgstr "六月"
msgid "June"
msgstr "六月"
 
msgid "Koding"
msgstr "Koding"
msgid "Koding Dashboard"
msgstr "Koding 控制面板"
msgid "Kubernetes"
msgstr "Kubernetes"
 
Loading
Loading
@@ -6732,9 +6726,6 @@ msgstr "設定使用者登入的需求。啟用強制性的兩步驟驗證。"
msgid "Set up CI/CD"
msgstr "設定 CI/CD"
 
msgid "Set up Koding"
msgstr "設定 Koding"
msgid "Set up a %{type} Runner manually"
msgstr ""
 
Loading
Loading
Loading
Loading
@@ -350,41 +350,6 @@ describe 'Projects > Show > User sees setup shortcut buttons' do
end
end
end
describe '"Set up Koding" button' do
it 'no "Set up Koding" button if Koding disabled' do
stub_application_setting(koding_enabled?: false)
visit project_path(project)
page.within('.project-stats') do
expect(page).not_to have_link('Set up Koding')
end
end
it 'no "Set up Koding" button if the project already has a .koding.yml' do
stub_application_setting(koding_enabled?: true)
allow(Gitlab::CurrentSettings.current_application_settings).to receive(:koding_url).and_return('http://koding.example.com')
expect(project.repository.changelog).not_to be_nil
allow_any_instance_of(Repository).to receive(:koding_yml).and_return(project.repository.changelog)
visit project_path(project)
page.within('.project-stats') do
expect(page).not_to have_link('Set up Koding')
end
end
it '"Set up Koding" button linked to new file populated for a .koding.yml' do
stub_application_setting(koding_enabled?: true)
visit project_path(project)
page.within('.project-stats') do
expect(page).to have_link('Set up Koding', href: presenter.add_koding_stack_path)
end
end
end
end
end
end
Loading
Loading
@@ -43,20 +43,6 @@ describe "Dashboard access" do
it { is_expected.to be_allowed_for :visitor }
end
 
describe "GET /koding" do
subject { koding_path }
context 'with Koding enabled' do
before do
stub_application_setting(koding_enabled?: true)
end
it { is_expected.to be_allowed_for :admin }
it { is_expected.to be_allowed_for :user }
it { is_expected.to be_denied_for :visitor }
end
end
describe "GET /projects/new" do
it { expect(new_project_path).to be_allowed_for :admin }
it { expect(new_project_path).to be_allowed_for :user }
Loading
Loading
Loading
Loading
@@ -790,9 +790,6 @@ msgstr "Establezca una contraseña en su cuenta para actualizar o enviar a trav
msgid "Set up CI"
msgstr "Configurar CI"
 
msgid "Set up Koding"
msgstr "Configurar Koding"
msgid "Set up auto deploy"
msgstr "Configurar auto despliegue"
 
Loading
Loading
Loading
Loading
@@ -46,10 +46,6 @@ describe Gitlab::FileDetector do
expect(described_class.type_of('.gitignore')).to eq(:gitignore)
end
 
it 'returns the type of a Koding config file' do
expect(described_class.type_of('.koding.yml')).to eq(:koding)
end
it 'returns the type of a GitLab CI config file' do
expect(described_class.type_of('.gitlab-ci.yml')).to eq(:gitlab_ci)
end
Loading
Loading
Loading
Loading
@@ -1567,7 +1567,6 @@ describe Repository do
:license_blob,
:license_key,
:gitignore,
:koding_yml,
:gitlab_ci_yml,
:branch_names,
:tag_names,
Loading
Loading
@@ -1921,19 +1920,6 @@ describe Repository do
end
end
 
describe '#koding_yml', :use_clean_rails_memory_store_caching do
it 'returns and caches the output' do
expect(repository).to receive(:file_on_head)
.with(:koding)
.and_return(Gitlab::Git::Tree.new(path: '.koding.yml'))
.once
2.times do
expect(repository.koding_yml).to be_an_instance_of(Gitlab::Git::Tree)
end
end
end
describe '#readme', :use_clean_rails_memory_store_caching do
context 'with a non-existing repository' do
it 'returns nil' do
Loading
Loading
Loading
Loading
@@ -410,36 +410,5 @@ describe ProjectPresenter do
end
end
end
describe '#koding_anchor_data' do
it 'returns link to set up Koding if user can push and no koding YML exists' do
project.add_developer(user)
allow(project.repository).to receive(:koding_yml).and_return(nil)
allow(Gitlab::CurrentSettings).to receive(:koding_enabled?).and_return(true)
expect(presenter.koding_anchor_data).to have_attributes(enabled: false,
label: 'Set up Koding',
link: presenter.add_koding_stack_path)
end
it 'returns nil if user cannot push' do
expect(presenter.koding_anchor_data).to be_nil
end
it 'returns nil if koding is not enabled' do
project.add_developer(user)
allow(Gitlab::CurrentSettings).to receive(:koding_enabled?).and_return(false)
expect(presenter.koding_anchor_data).to be_nil
end
it 'returns nil if koding YML already exists' do
project.add_developer(user)
allow(project.repository).to receive(:koding_yml).and_return(double)
allow(Gitlab::CurrentSettings).to receive(:koding_enabled?).and_return(true)
expect(presenter.koding_anchor_data).to be_nil
end
end
end
end
Loading
Loading
@@ -13,8 +13,6 @@ describe API::Settings, 'Settings' do
expect(json_response['default_projects_limit']).to eq(42)
expect(json_response['password_authentication_enabled_for_web']).to be_truthy
expect(json_response['repository_storages']).to eq(['default'])
expect(json_response['koding_enabled']).to be_falsey
expect(json_response['koding_url']).to be_nil
expect(json_response['plantuml_enabled']).to be_falsey
expect(json_response['plantuml_url']).to be_nil
expect(json_response['default_project_visibility']).to be_a String
Loading
Loading
@@ -47,8 +45,6 @@ describe API::Settings, 'Settings' do
default_projects_limit: 3,
password_authentication_enabled_for_web: false,
repository_storages: ['custom'],
koding_enabled: true,
koding_url: 'http://koding.example.com',
plantuml_enabled: true,
plantuml_url: 'http://plantuml.example.com',
default_snippet_visibility: 'internal',
Loading
Loading
@@ -72,8 +68,6 @@ describe API::Settings, 'Settings' do
expect(json_response['default_projects_limit']).to eq(3)
expect(json_response['password_authentication_enabled_for_web']).to be_falsey
expect(json_response['repository_storages']).to eq(['custom'])
expect(json_response['koding_enabled']).to be_truthy
expect(json_response['koding_url']).to eq('http://koding.example.com')
expect(json_response['plantuml_enabled']).to be_truthy
expect(json_response['plantuml_url']).to eq('http://plantuml.example.com')
expect(json_response['default_snippet_visibility']).to eq('internal')
Loading
Loading
@@ -112,15 +106,6 @@ describe API::Settings, 'Settings' do
expect(json_response['performance_bar_allowed_group_id']).to be_nil
end
 
context "missing koding_url value when koding_enabled is true" do
it "returns a blank parameter error message" do
put api("/application/settings", admin), koding_enabled: true
expect(response).to have_gitlab_http_status(400)
expect(json_response['error']).to eq('koding_url is missing')
end
end
context "missing plantuml_url value when plantuml_enabled is true" do
it "returns a blank parameter error message" do
put api("/application/settings", admin), plantuml_enabled: true
Loading
Loading
Loading
Loading
@@ -140,13 +140,6 @@ describe HelpController, "routing" do
end
end
 
# koding GET /koding(.:format) koding#index
describe KodingController, "routing" do
it "to #index" do
expect(get("/koding")).to route_to('koding#index')
end
end
# profile_account GET /profile/account(.:format) profile#account
# profile_history GET /profile/history(.:format) profile#history
# profile_password PUT /profile/password(.:format) profile#password_update
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment