summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-09-27 18:15:39 +1200
committerThong Kuah <tkuah@gitlab.com>2018-09-27 18:15:39 +1200
commitf03eb2332682c9419103df905045bf33f04a5158 (patch)
tree258437640a473e58b41271e6d9bad89ae8ef2f69 /spec
parente6fd3f1986b4588bfa94d57dbf2b3b1bd5948b8a (diff)
downloadgitlab-ce-f03eb2332682c9419103df905045bf33f04a5158.tar.gz
Port helm application status spec factory to CE
Diffstat (limited to 'spec')
-rw-r--r--spec/factories/clusters/applications/helm.rb13
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