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
b38454bd
Commit
b38454bd
authored
Jul 08, 2020
by
John Hope
Committed by
Bob Van Landuyt
Jul 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an enum type for the FAILED test report state
parent
0e908820
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
0 deletions
+17
-0
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+1
-0
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+6
-0
ee/app/graphql/types/requirements_management/test_report_state_enum.rb
...l/types/requirements_management/test_report_state_enum.rb
+1
-0
ee/spec/graphql/types/requirements_management/test_report_state_enum_spec.rb
...es/requirements_management/test_report_state_enum_spec.rb
+9
-0
No files found.
doc/api/graphql/reference/gitlab_schema.graphql
View file @
b38454bd
...
@@ -12884,6 +12884,7 @@ type TestReportEdge {
...
@@ -12884,6 +12884,7 @@ type TestReportEdge {
State of a test report
State of a test report
"""
"""
enum
TestReportState
{
enum
TestReportState
{
FAILED
PASSED
PASSED
}
}
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
b38454bd
...
@@ -38002,6 +38002,12 @@
...
@@ -38002,6 +38002,12 @@
"description": null,
"description": null,
"isDeprecated": false,
"isDeprecated": false,
"deprecationReason": null
"deprecationReason": null
},
{
"name": "FAILED",
"description": null,
"isDeprecated": false,
"deprecationReason": null
}
}
],
],
"possibleTypes": null
"possibleTypes": null
ee/app/graphql/types/requirements_management/test_report_state_enum.rb
View file @
b38454bd
...
@@ -7,6 +7,7 @@ module Types
...
@@ -7,6 +7,7 @@ module Types
description
'State of a test report'
description
'State of a test report'
value
'PASSED'
,
value:
'passed'
value
'PASSED'
,
value:
'passed'
value
'FAILED'
,
value:
'failed'
end
end
end
end
end
end
ee/spec/graphql/types/requirements_management/test_report_state_enum_spec.rb
0 → 100644
View file @
b38454bd
# frozen_string_literal: true
require
'spec_helper'
RSpec
.
describe
GitlabSchema
.
types
[
'TestReportState'
]
do
it
'exposes all the possible test report states'
do
expect
(
described_class
.
values
.
keys
).
to
contain_exactly
(
*
%w[PASSED FAILED]
)
end
end
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