2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2017-12-22 12:23:43 -05:00
|
|
|
factory :clusters_applications_helm, class: Clusters::Applications::Helm do
|
2017-11-07 05:50:00 -05:00
|
|
|
cluster factory: %i(cluster provided_by_gcp)
|
2017-11-03 14:20:29 -04:00
|
|
|
|
2017-11-07 08:52:11 -05:00
|
|
|
trait :not_installable do
|
2017-11-07 09:31:49 -05:00
|
|
|
status(-2)
|
2017-11-07 08:52:11 -05:00
|
|
|
end
|
|
|
|
|
2017-11-03 14:20:29 -04:00
|
|
|
trait :installable do
|
2017-11-07 05:17:20 -05:00
|
|
|
status 0
|
2017-11-03 14:20:29 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :scheduled do
|
2017-11-07 05:17:20 -05:00
|
|
|
status 1
|
2017-11-03 14:20:29 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :installing do
|
2017-11-07 05:17:20 -05:00
|
|
|
status 2
|
2017-11-03 14:20:29 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :installed do
|
2017-11-07 05:17:20 -05:00
|
|
|
status 3
|
2017-11-03 14:20:29 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :errored do
|
2017-11-07 05:17:20 -05:00
|
|
|
status(-1)
|
2017-11-03 14:20:29 -04:00
|
|
|
status_reason 'something went wrong'
|
|
|
|
end
|
2017-11-06 04:23:15 -05:00
|
|
|
|
|
|
|
trait :timeouted do
|
|
|
|
installing
|
|
|
|
updated_at ClusterWaitForAppInstallationWorker::TIMEOUT.ago
|
|
|
|
end
|
2017-12-22 12:23:43 -05:00
|
|
|
|
|
|
|
factory :clusters_applications_ingress, class: Clusters::Applications::Ingress
|
|
|
|
factory :clusters_applications_prometheus, class: Clusters::Applications::Prometheus
|
2018-03-01 18:46:02 -05:00
|
|
|
factory :clusters_applications_runner, class: Clusters::Applications::Runner
|
2017-11-03 14:20:29 -04:00
|
|
|
end
|
|
|
|
end
|