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
0df6aa44
Commit
0df6aa44
authored
Apr 09, 2021
by
Scott Hampton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add attachment_url to test case
Add a field for the attachment_url of a test case.
parent
85bd4ded
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
app/graphql/types/ci/test_case_type.rb
app/graphql/types/ci/test_case_type.rb
+3
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-0
spec/graphql/types/ci/test_case_type_spec.rb
spec/graphql/types/ci/test_case_type_spec.rb
+1
-1
No files found.
app/graphql/types/ci/test_case_type.rb
View file @
0df6aa44
...
...
@@ -24,6 +24,9 @@ module Types
field
:file
,
GraphQL
::
STRING_TYPE
,
null:
true
,
description:
'Path to the file of the test case.'
field
:attachment_url
,
GraphQL
::
STRING_TYPE
,
null:
true
,
description:
'URL of the test case attachment file.'
field
:system_output
,
GraphQL
::
STRING_TYPE
,
null:
true
,
description:
'System output of the test case.'
...
...
doc/api/graphql/reference/index.md
View file @
0df6aa44
...
...
@@ -6212,6 +6212,7 @@ Test case in pipeline test report.
| Field | Type | Description |
| ----- | ---- | ----------- |
|
`attachmentUrl`
|
[
`String`
](
#string
)
| URL of the test case attachment file. |
|
`classname`
|
[
`String`
](
#string
)
| Classname of the test case. |
|
`executionTime`
|
[
`Float`
](
#float
)
| Test case execution time in seconds. |
|
`file`
|
[
`String`
](
#string
)
| Path to the file of the test case. |
...
...
spec/graphql/types/ci/test_case_type_spec.rb
View file @
0df6aa44
...
...
@@ -7,7 +7,7 @@ RSpec.describe Types::Ci::TestCaseType do
it
'contains attributes related to a pipeline test case'
do
expected_fields
=
%w[
name status classname file
execution_time stack_T
race system_output recent_failures
name status classname file
attachment_url execution_time stack_t
race system_output recent_failures
]
expect
(
described_class
).
to
have_graphql_fields
(
*
expected_fields
)
...
...
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