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