From 1e115ffd0356932b5845e297bf766018a6792edf Mon Sep 17 00:00:00 2001 From: Thong Kuah Date: Tue, 13 Nov 2018 14:27:55 +1300 Subject: Fix deployment jobs using nil token Unfortunately, it seems that the migration to clusters_kubernetes_namespace still needs to create the new restricted service accounts and then fetch the tokens. Until that is done, we cannot use it and have to fall back to the main token from clusters_platform_kubernetes. --- spec/models/project_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/models/project_spec.rb') diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 471f19f9b7c..74aa3315332 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -2414,7 +2414,7 @@ describe Project do end context 'when user configured kubernetes from CI/CD > Clusters and KubernetesNamespace migration has been executed' do - let!(:kubernetes_namespace) { create(:cluster_kubernetes_namespace) } + let!(:kubernetes_namespace) { create(:cluster_kubernetes_namespace, :with_token) } let!(:cluster) { kubernetes_namespace.cluster } let(:project) { kubernetes_namespace.project } -- cgit v1.2.1