diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-11-07 12:54:50 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-11-07 12:54:50 +0300 |
commit | 36d69130a2337458a2fec94665d9369feb7a2f02 (patch) | |
tree | 60a066e9c3b1bc58eeebe063de90e26d73270149 /spec/factories/clusters/applications/helm.rb | |
parent | d89d514e89916a08b2692ada242afc732d10fdc0 (diff) |
Fix cluster_applications_helm factory as cluster always has been cerated
Diffstat (limited to 'spec/factories/clusters/applications/helm.rb')
-rw-r--r-- | spec/factories/clusters/applications/helm.rb | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/spec/factories/clusters/applications/helm.rb b/spec/factories/clusters/applications/helm.rb index b63e26125d1..83595468412 100644 --- a/spec/factories/clusters/applications/helm.rb +++ b/spec/factories/clusters/applications/helm.rb @@ -1,30 +1,25 @@ FactoryGirl.define do factory :cluster_applications_helm, class: Clusters::Applications::Helm do - cluster factory: :cluster + cluster factory: :cluster, strategy: :provided_by_gcp trait :installable do - cluster - status 0 + status :installable end trait :scheduled do - cluster - status 1 + status :scheduled end trait :installing do - cluster - status 2 + status :installing end trait :installed do - cluster - status 3 + status :installed end trait :errored do - cluster - status(-1) + status :errored status_reason 'something went wrong' end |