Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2464a45c
Commit
2464a45c
authored
Sep 14, 2020
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for section options
parent
ed13174f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
spec/lib/gitlab/ci/ansi2json_spec.rb
spec/lib/gitlab/ci/ansi2json_spec.rb
+26
-0
No files found.
spec/lib/gitlab/ci/ansi2json_spec.rb
View file @
2464a45c
...
@@ -329,6 +329,32 @@ RSpec.describe Gitlab::Ci::Ansi2json do
...
@@ -329,6 +329,32 @@ RSpec.describe Gitlab::Ci::Ansi2json do
])
])
end
end
end
end
context
'with section options'
do
let
(
:option_section_start
)
{
"section_start:
#{
section_start_time
.
to_i
}
:
#{
section_name
}
[collapsed=true,unused_option=123]
\r\033
[0K"
}
it
'provides section options when set'
do
trace
=
"
#{
option_section_start
}
hello
#{
section_end
}
"
expect
(
convert_json
(
trace
)).
to
eq
([
{
offset:
0
,
content:
[{
text:
"hello"
}],
section:
'prepare-script'
,
section_header:
true
,
section_options:
{
'collapsed'
=>
'true'
,
'unused_option'
=>
'123'
}
},
{
offset:
83
,
content:
[],
section:
'prepare-script'
,
section_duration:
'01:03'
}
])
end
end
end
end
describe
'incremental updates'
do
describe
'incremental updates'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment