summaryrefslogtreecommitdiff
path: root/spec/models/project_spec.rb
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-11-13 14:27:55 +1300
committerThong Kuah <tkuah@gitlab.com>2018-11-13 15:28:44 +1300
commit1e115ffd0356932b5845e297bf766018a6792edf (patch)
tree3e99645a539943c3a2a4e1c173396867407eae88 /spec/models/project_spec.rb
parent182b357525afdc6cca687e2abaaa9b2a920afac4 (diff)
downloadgitlab-ce-53879-kube-token-nil.tar.gz
Fix deployment jobs using nil token53879-kube-token-nil
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.
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r--spec/models/project_spec.rb2
1 files changed, 1 insertions, 1 deletions
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 }