gitlab-org--gitlab-foss/spec/factories/clusters/applications/helm.rb

40 lines
870 B
Ruby
Raw Normal View History

FactoryBot.define do
factory :clusters_applications_helm, class: Clusters::Applications::Helm do
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
status 0
2017-11-03 14:20:29 -04:00
end
trait :scheduled do
status 1
2017-11-03 14:20:29 -04:00
end
trait :installing do
status 2
2017-11-03 14:20:29 -04:00
end
trait :installed do
status 3
2017-11-03 14:20:29 -04:00
end
trait :errored do
status(-1)
2017-11-03 14:20:29 -04:00
status_reason 'something went wrong'
end
trait :timeouted do
installing
updated_at ClusterWaitForAppInstallationWorker::TIMEOUT.ago
end
factory :clusters_applications_ingress, class: Clusters::Applications::Ingress
factory :clusters_applications_prometheus, class: Clusters::Applications::Prometheus
factory :clusters_applications_runner, class: Clusters::Applications::Runner
2017-11-03 14:20:29 -04:00
end
end