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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-02-03 21:09:25 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-03 21:09:25 +0300
commit174343966742d2f4b87ac84f9ce4ee576cb9d75e (patch)
tree265908b79177da98dcd58cac300d81090416a8ee /spec/factories/ci
parent6cbb93596d65dff377372f4b50da932dcf6dc514 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/ci')
-rw-r--r--spec/factories/ci/pipeline_artifacts.rb6
-rw-r--r--spec/factories/ci/pipelines.rb4
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/factories/ci/pipeline_artifacts.rb b/spec/factories/ci/pipeline_artifacts.rb
index ab4a16dbb90..05ff7afed7c 100644
--- a/spec/factories/ci/pipeline_artifacts.rb
+++ b/spec/factories/ci/pipeline_artifacts.rb
@@ -49,12 +49,12 @@ FactoryBot.define do
size { 1.megabyte }
end
- trait :with_codequality_report do
- file_type { :code_quality }
+ trait :with_codequality_mr_diff_report do
+ file_type { :code_quality_mr_diff }
after(:build) do |artifact, _evaluator|
artifact.file = fixture_file_upload(
- Rails.root.join('spec/fixtures/pipeline_artifacts/code_quality.json'), 'application/json')
+ Rails.root.join('spec/fixtures/pipeline_artifacts/code_quality_mr_diff.json'), 'application/json')
end
size { file.size }
diff --git a/spec/factories/ci/pipelines.rb b/spec/factories/ci/pipelines.rb
index 436d309a2ce..530bb0cd25b 100644
--- a/spec/factories/ci/pipelines.rb
+++ b/spec/factories/ci/pipelines.rb
@@ -155,9 +155,9 @@ FactoryBot.define do
end
end
- trait :with_quality_report_artifact do
+ trait :with_codequality_mr_diff_report do
after(:build) do |pipeline, evaluator|
- pipeline.pipeline_artifacts << build(:ci_pipeline_artifact, :with_codequality_report, pipeline: pipeline, project: pipeline.project)
+ pipeline.pipeline_artifacts << build(:ci_pipeline_artifact, :with_codequality_mr_diff_report, pipeline: pipeline, project: pipeline.project)
end
end