summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-11-07 18:54:50 +0900
committerShinya Maeda <shinya@gitlab.com>2017-11-07 18:54:50 +0900
commit36d69130a2337458a2fec94665d9369feb7a2f02 (patch)
tree60a066e9c3b1bc58eeebe063de90e26d73270149
parentd89d514e89916a08b2692ada242afc732d10fdc0 (diff)
downloadgitlab-ce-36d69130a2337458a2fec94665d9369feb7a2f02.tar.gz
Fix cluster_applications_helm factory as cluster always has been cerated
-rw-r--r--spec/factories/clusters/applications/helm.rb17
1 files changed, 6 insertions, 11 deletions
diff --git a/spec/factories/clusters/applications/helm.rb b/spec/factories/clusters/applications/helm.rb
index b63e26125d1..83595468412 100644
--- a/spec/factories/clusters/applications/helm.rb
+++ b/spec/factories/clusters/applications/helm.rb
@@ -1,30 +1,25 @@
FactoryGirl.define do
factory :cluster_applications_helm, class: Clusters::Applications::Helm do
- cluster factory: :cluster
+ cluster factory: :cluster, strategy: :provided_by_gcp
trait :installable do
- cluster
- status 0
+ status :installable
end
trait :scheduled do
- cluster
- status 1
+ status :scheduled
end
trait :installing do
- cluster
- status 2
+ status :installing
end
trait :installed do
- cluster
- status 3
+ status :installed
end
trait :errored do
- cluster
- status(-1)
+ status :errored
status_reason 'something went wrong'
end