Commit ef9473c3 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'fix-test-report-state-enum-failed' into 'master'

Add an enum type for the FAILED test report state

See merge request gitlab-org/gitlab!36224
parents 57636d29 b38454bd
...@@ -12879,6 +12879,7 @@ type TestReportEdge { ...@@ -12879,6 +12879,7 @@ type TestReportEdge {
State of a test report State of a test report
""" """
enum TestReportState { enum TestReportState {
FAILED
PASSED PASSED
} }
......
...@@ -37984,6 +37984,12 @@ ...@@ -37984,6 +37984,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
...@@ -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
# 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment