diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-10-16 23:03:59 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-10-22 17:54:00 +0300 |
commit | e3ca493876ab71ed29817a0af436fc563f564bbe (patch) | |
tree | bca9826ae1cc1b8140249e570626f22eb48cb960 /spec/factories | |
parent | a310a638db037d3914cf12e580c7a41209d2d06e (diff) |
Add Clusters::KubernetesNamespace model
This model will be used to persist into database Kubernetes properties,
such as namespace, service account name and service account token.
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/clusters/kubernetes_namespaces.rb | 9 | ||||
-rw-r--r-- | spec/factories/clusters/projects.rb | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/spec/factories/clusters/kubernetes_namespaces.rb b/spec/factories/clusters/kubernetes_namespaces.rb new file mode 100644 index 00000000000..6fdada75a3d --- /dev/null +++ b/spec/factories/clusters/kubernetes_namespaces.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :cluster_kubernetes_namespace, class: Clusters::KubernetesNamespace do + cluster + project + cluster_project + end +end diff --git a/spec/factories/clusters/projects.rb b/spec/factories/clusters/projects.rb new file mode 100644 index 00000000000..6cda77c6f85 --- /dev/null +++ b/spec/factories/clusters/projects.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :cluster_project, class: Clusters::Project do + cluster + project + end +end |