Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/requests/api/graphql/project/pipeline_spec.rb')
-rw-r--r--spec/requests/api/graphql/project/pipeline_spec.rb17
1 files changed, 13 insertions, 4 deletions
diff --git a/spec/requests/api/graphql/project/pipeline_spec.rb b/spec/requests/api/graphql/project/pipeline_spec.rb
index abfdf07c288..fb1489372fc 100644
--- a/spec/requests/api/graphql/project/pipeline_spec.rb
+++ b/spec/requests/api/graphql/project/pipeline_spec.rb
@@ -15,7 +15,7 @@ RSpec.describe 'getting pipeline information nested in a project', feature_categ
let(:path) { %i[project pipeline] }
let(:pipeline_graphql_data) { graphql_data_at(*path) }
let(:depth) { 3 }
- let(:excluded) { %w[job project] } # Project is very expensive, due to the number of fields
+ let(:excluded) { %w[job project jobs] } # Project is very expensive, due to the number of fields
let(:fields) { all_graphql_fields_for('Pipeline', excluded: excluded, max_depth: depth) }
let(:query) do
@@ -82,7 +82,11 @@ RSpec.describe 'getting pipeline information nested in a project', feature_categ
context 'when enough data is requested' do
let(:fields) do
query_graphql_field(:jobs, nil,
- query_graphql_field(:nodes, {}, all_graphql_fields_for('CiJob', max_depth: 3)))
+ query_graphql_field(
+ :nodes, {},
+ all_graphql_fields_for('CiJob', excluded: %w[aiFailureAnalysis], max_depth: 3)
+ )
+ )
end
it 'contains jobs' do
@@ -116,7 +120,12 @@ RSpec.describe 'getting pipeline information nested in a project', feature_categ
let(:fields) do
query_graphql_field(:jobs, { retried: retried_argument },
- query_graphql_field(:nodes, {}, all_graphql_fields_for('CiJob', max_depth: 3)))
+ query_graphql_field(
+ :nodes,
+ {},
+ all_graphql_fields_for('CiJob', excluded: %w[aiFailureAnalysis], max_depth: 3)
+ )
+ )
end
context 'when we filter out retried jobs' do
@@ -177,7 +186,7 @@ RSpec.describe 'getting pipeline information nested in a project', feature_categ
pipeline(iid: $pipelineIID) {
jobs(statuses: [$status]) {
nodes {
- #{all_graphql_fields_for('CiJob', max_depth: 1)}
+ #{all_graphql_fields_for('CiJob', excluded: %w[aiFailureAnalysis], max_depth: 3)}
}
}
}