diff options
Diffstat (limited to 'app/graphql/types/ci/test_report_summary_type.rb')
-rw-r--r-- | app/graphql/types/ci/test_report_summary_type.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/graphql/types/ci/test_report_summary_type.rb b/app/graphql/types/ci/test_report_summary_type.rb new file mode 100644 index 00000000000..87207c8a765 --- /dev/null +++ b/app/graphql/types/ci/test_report_summary_type.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Types + module Ci + # rubocop: disable Graphql/AuthorizeTypes + # This is presented through `PipelineType` that has its own authorization + class TestReportSummaryType < BaseObject + graphql_name 'TestReportSummary' + description 'Test report for a pipeline' + + field :total, Types::Ci::TestReportTotalType, null: false, + description: 'Total report statistics for a pipeline test report.' + + field :test_suites, Types::Ci::TestSuiteSummaryType.connection_type, null: false, + description: 'Test suites belonging to a pipeline test report.' + end + # rubocop: enable Graphql/AuthorizeTypes + end +end |