diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-09-27 09:15:39 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-09-27 09:15:39 +0300 |
commit | f03eb2332682c9419103df905045bf33f04a5158 (patch) | |
tree | 258437640a473e58b41271e6d9bad89ae8ef2f69 /spec/factories | |
parent | e6fd3f1986b4588bfa94d57dbf2b3b1bd5948b8a (diff) |
Port helm application status spec factory to CE
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/clusters/applications/helm.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/factories/clusters/applications/helm.rb b/spec/factories/clusters/applications/helm.rb index c13b0249d94..5756486df27 100644 --- a/spec/factories/clusters/applications/helm.rb +++ b/spec/factories/clusters/applications/helm.rb @@ -22,11 +22,24 @@ FactoryBot.define do status 3 end + trait :updating do + status 4 + end + + trait :updated do + status 5 + end + trait :errored do status(-1) status_reason 'something went wrong' end + trait :update_errored do + status(6) + status_reason 'something went wrong' + end + trait :timeouted do installing updated_at ClusterWaitForAppInstallationWorker::TIMEOUT.ago |