summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-01-22 16:18:31 +1300
committerThong Kuah <tkuah@gitlab.com>2019-01-22 16:18:31 +1300
commit57d25423e764449faf28a2d3a32f207250c91bf5 (patch)
tree411732e02031fde13d201d56ab8a6a2c918c282c
parent2245e6333aa8dd89e751ed91e8833249bafc7900 (diff)
downloadgitlab-ce-fix_cluster_kubernetes_namespace-actual_namespace-factory.tar.gz
Require all apps to have valid clusterfix_cluster_kubernetes_namespace-actual_namespace-factory
Otherwise nothing related to Cluster#actual_namespace will successfully run
-rw-r--r--spec/factories/clusters/applications/helm.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/factories/clusters/applications/helm.rb b/spec/factories/clusters/applications/helm.rb
index fe56ac5b71d..010af55a427 100644
--- a/spec/factories/clusters/applications/helm.rb
+++ b/spec/factories/clusters/applications/helm.rb
@@ -1,6 +1,6 @@
FactoryBot.define do
factory :clusters_applications_helm, class: Clusters::Applications::Helm do
- cluster factory: %i(cluster provided_by_gcp)
+ cluster factory: %i(cluster project provided_by_gcp)
trait :not_installable do
status(-2)
@@ -46,31 +46,31 @@ FactoryBot.define do
end
factory :clusters_applications_ingress, class: Clusters::Applications::Ingress do
- cluster factory: %i(cluster with_installed_helm provided_by_gcp)
+ cluster factory: %i(cluster with_installed_helm project provided_by_gcp)
end
factory :clusters_applications_cert_managers, class: Clusters::Applications::CertManager do
email 'admin@example.com'
- cluster factory: %i(cluster with_installed_helm provided_by_gcp)
+ cluster factory: %i(cluster with_installed_helm project provided_by_gcp)
end
factory :clusters_applications_prometheus, class: Clusters::Applications::Prometheus do
- cluster factory: %i(cluster with_installed_helm provided_by_gcp)
+ cluster factory: %i(cluster with_installed_helm project provided_by_gcp)
end
factory :clusters_applications_runner, class: Clusters::Applications::Runner do
runner factory: %i(ci_runner)
- cluster factory: %i(cluster with_installed_helm provided_by_gcp)
+ cluster factory: %i(cluster with_installed_helm project provided_by_gcp)
end
factory :clusters_applications_knative, class: Clusters::Applications::Knative do
hostname 'example.com'
- cluster factory: %i(cluster with_installed_helm provided_by_gcp)
+ cluster factory: %i(cluster with_installed_helm project provided_by_gcp)
end
factory :clusters_applications_jupyter, class: Clusters::Applications::Jupyter do
oauth_application factory: :oauth_application
- cluster factory: %i(cluster with_installed_helm provided_by_gcp project)
+ cluster factory: %i(cluster with_installed_helm project provided_by_gcp)
end
end
end