Commit b2b4f262 authored by Kamil Trzcinski's avatar Kamil Trzcinski

First round of tests

parent c63641ea
...@@ -50,14 +50,6 @@ class Projects::Clusters::GcpController < Projects::ApplicationController ...@@ -50,14 +50,6 @@ class Projects::Clusters::GcpController < Projects::ApplicationController
) )
end end
def update_params
params.require(:cluster).permit(
:enabled,
platform_kubernetes_attributes: [
:namespace
])
end
def authorize_google_api def authorize_google_api
unless GoogleApi::CloudPlatform::Client.new(token_in_session, nil) unless GoogleApi::CloudPlatform::Client.new(token_in_session, nil)
.validate_token(expires_at_in_session) .validate_token(expires_at_in_session)
......
...@@ -77,7 +77,7 @@ class Projects::ClustersController < Projects::ApplicationController ...@@ -77,7 +77,7 @@ class Projects::ClustersController < Projects::ApplicationController
:token, :token,
:ca_cert, :ca_cert,
:namespace :namespace
] ]
) )
end end
end end
......
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
= number_with_delimiter(@project.open_merge_requests_count) = number_with_delimiter(@project.open_merge_requests_count)
- if project_nav_tab? :pipelines - if project_nav_tab? :pipelines
= nav_link(controller: [:pipelines, :builds, :jobs, :pipeline_schedules, :environments, :artifacts, :clusters]) do = nav_link(controller: [:pipelines, :builds, :jobs, :pipeline_schedules, :environments, :artifacts, :clusters, :user, :gcp]) do
= link_to project_pipelines_path(@project), class: 'shortcuts-pipelines' do = link_to project_pipelines_path(@project), class: 'shortcuts-pipelines' do
.nav-icon-container .nav-icon-container
= sprite_icon('pipeline') = sprite_icon('pipeline')
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
CI / CD CI / CD
%ul.sidebar-sub-level-items %ul.sidebar-sub-level-items
= nav_link(controller: [:pipelines, :builds, :jobs, :pipeline_schedules, :environments, :artifacts, :clusters, :kubernetes, :gcp], html_options: { class: "fly-out-top-item" } ) do = nav_link(controller: [:pipelines, :builds, :jobs, :pipeline_schedules, :environments, :artifacts, :clusters, :user, :gcp], html_options: { class: "fly-out-top-item" } ) do
= link_to project_pipelines_path(@project) do = link_to project_pipelines_path(@project) do
%strong.fly-out-top-item-name %strong.fly-out-top-item-name
#{ _('CI / CD') } #{ _('CI / CD') }
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
Environments Environments
- if project_nav_tab? :clusters - if project_nav_tab? :clusters
= nav_link(controller: [:clusters, :kubernetes, :gcp]) do = nav_link(controller: [:clusters, :user, :gcp]) do
= link_to project_clusters_path(@project), title: 'Cluster', class: 'shortcuts-cluster' do = link_to project_clusters_path(@project), title: 'Cluster', class: 'shortcuts-cluster' do
%span %span
Cluster Cluster
......
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