summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-03 00:07:49 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-03 00:07:49 +0000
commit5d32a7a175fd1a7a6c97019a022c11434ea637dc (patch)
tree8741a075a83a139de103915278b87e66da6efb03 /spec/factories
parentd74fcc9b69746c4d9582299c370a95aafe2ac3ac (diff)
downloadgitlab-ce-5d32a7a175fd1a7a6c97019a022c11434ea637dc.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/ci/test_case.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/factories/ci/test_case.rb b/spec/factories/ci/test_case.rb
index dc0e7c762ab..bb1508c0d75 100644
--- a/spec/factories/ci/test_case.rb
+++ b/spec/factories/ci/test_case.rb
@@ -6,17 +6,18 @@ FactoryBot.define do
classname { "trace" }
file { "spec/trace_spec.rb" }
execution_time { 1.23 }
- status { "success" }
+ status { Gitlab::Ci::Reports::TestCase::STATUS_SUCCESS }
system_output { nil }
attachment { nil }
association :job, factory: :ci_build
trait :failed do
- status { "failed" }
+ status { Gitlab::Ci::Reports::TestCase::STATUS_FAILED }
+ system_output { "Failure/Error: is_expected.to eq(300) expected: 300 got: -100" }
end
trait :with_attachment do
- status { "failed" }
+ status { Gitlab::Ci::Reports::TestCase::STATUS_FAILED }
attachment { "some/path.png" }
end