Commit b38454bd authored by John Hope's avatar John Hope Committed by Bob Van Landuyt

Add an enum type for the FAILED test report state

parent 0e908820
......@@ -12884,6 +12884,7 @@ type TestReportEdge {
State of a test report
"""
enum TestReportState {
FAILED
PASSED
}
......
......@@ -38002,6 +38002,12 @@
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "FAILED",
"description": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"possibleTypes": null
......@@ -7,6 +7,7 @@ module Types
description 'State of a test report'
value 'PASSED', value: 'passed'
value 'FAILED', value: 'failed'
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