diff options
author | Sean McGivern <sean@gitlab.com> | 2019-06-17 20:03:41 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-06-17 20:03:41 +0300 |
commit | 2634cad695e41f4882a67a8cfa0e2579b870f1a3 (patch) | |
tree | 18dfebd24d0b63d0ad98cfb15cb105365ec01e03 /spec/factories | |
parent | 89a89b3230717920410de6fb6d6b7152ef41a03e (diff) | |
parent | d75a4ddab2cac69b7190c4a88adb8363c2950bdb (diff) |
Merge branch 'generate-spans-for-sections' into 'master'
Add collapsible sections to job log
See merge request gitlab-org/gitlab-ce!28642
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/builds.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index a473136b57b..5f7c75a3a92 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -228,6 +228,26 @@ FactoryBot.define do end end + trait :trace_with_duplicate_sections do + after(:create) do |build, evaluator| + trace = File.binread( + File.expand_path( + Rails.root.join('spec/fixtures/trace/trace_with_duplicate_sections'))) + + build.trace.set(trace) + end + end + + trait :trace_with_sections do + after(:create) do |build, evaluator| + trace = File.binread( + File.expand_path( + Rails.root.join('spec/fixtures/trace/trace_with_sections'))) + + build.trace.set(trace) + end + end + trait :unicode_trace_live do after(:create) do |build, evaluator| trace = File.binread( |