Port helm application status spec factory to CE

This commit is contained in:
Thong Kuah 2018-09-27 18:15:39 +12:00
parent e6fd3f1986
commit f03eb23326
1 changed files with 13 additions and 0 deletions

View File

@ -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