diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2019-04-02 06:54:54 +0000 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2019-04-02 06:54:54 +0000 |
commit | 6473f6976124f047a56f9d004e3d0746ab493b29 (patch) | |
tree | a4d157a4a436d1a0151651b17ac4e9790b124ef7 /spec/factories/clusters | |
parent | c44b9e9e5b79c4012a0fea8743fc058a444234d0 (diff) | |
download | gitlab-ce-6473f6976124f047a56f9d004e3d0746ab493b29.tar.gz |
Add new field to Clusters table
Adds boolean field 'managed' to clusters table. This new column will be
used to distinguish those clusters that are automatically managed by
gitlab.
Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/56557
Diffstat (limited to 'spec/factories/clusters')
-rw-r--r-- | spec/factories/clusters/clusters.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/factories/clusters/clusters.rb b/spec/factories/clusters/clusters.rb index 1cc3c0e03d8..97405ec7c58 100644 --- a/spec/factories/clusters/clusters.rb +++ b/spec/factories/clusters/clusters.rb @@ -3,6 +3,7 @@ FactoryBot.define do user name 'test-cluster' cluster_type :project_type + managed true trait :instance do cluster_type { Clusters::Cluster.cluster_types[:instance_type] } @@ -63,5 +64,9 @@ FactoryBot.define do trait :with_domain do domain 'example.com' end + + trait :user_managed do + managed false + end end end |