summaryrefslogtreecommitdiff
path: root/spec/services/clusters/gcp
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-11-14 18:55:38 +0100
committerKamil Trzciński <ayufan@ayufan.eu>2018-11-19 14:09:39 +0100
commitc3bd3bfc6e1990f4774bcd678deef1eb202a2680 (patch)
tree89d59fa8513716b5b00a49a293752c9f7533e869 /spec/services/clusters/gcp
parent321506c7431788e23e12a196ee1b77c0af2ea5f6 (diff)
downloadgitlab-ce-c3bd3bfc6e1990f4774bcd678deef1eb202a2680.tar.gz
Improve variables supportimprove-variables-support
This ensures that variables accept only string, alongside also improves kubernetes_namespace, improving validation and default value being set.
Diffstat (limited to 'spec/services/clusters/gcp')
-rw-r--r--spec/services/clusters/gcp/kubernetes/create_or_update_namespace_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/clusters/gcp/kubernetes/create_or_update_namespace_service_spec.rb b/spec/services/clusters/gcp/kubernetes/create_or_update_namespace_service_spec.rb
index fc922218ad0..661364ac765 100644
--- a/spec/services/clusters/gcp/kubernetes/create_or_update_namespace_service_spec.rb
+++ b/spec/services/clusters/gcp/kubernetes/create_or_update_namespace_service_spec.rb
@@ -44,7 +44,7 @@ describe Clusters::Gcp::Kubernetes::CreateOrUpdateNamespaceService, '#execute' d
let(:namespace) { "#{project.path}-#{project.id}" }
let(:kubernetes_namespace) do
- build(:cluster_kubernetes_namespace,
+ create(:cluster_kubernetes_namespace,
cluster: cluster,
project: cluster_project.project,
cluster_project: cluster_project)