diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-03-21 17:59:40 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-03-22 23:52:33 +0300 |
commit | ca59bfdc6657fc20a27e93f41fc9e38c41498389 (patch) | |
tree | fb1a7397b1940445dc7c41ba8133027df2812258 /spec/factories | |
parent | fbb83069deaad3db1239af66e6c9dc913f29f8f8 (diff) |
Rearrange DeploymentPlatform methods
- Change find_cluster_platform_kubernetes to ignore environment argument
- Fix broken specs
CE Port of: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5047/
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/clusters/clusters.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/clusters/clusters.rb b/spec/factories/clusters/clusters.rb index 20d5580f0c2..98566f907f9 100644 --- a/spec/factories/clusters/clusters.rb +++ b/spec/factories/clusters/clusters.rb @@ -32,5 +32,9 @@ FactoryBot.define do trait :disabled do enabled false end + + trait :production_environment do + sequence(:environment_scope) { |n| "production#{n}/*" } + end end end |