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>2022-08-01 16:38:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-01 16:38:24 +0300
commit0396082c12f518f48e136968dbf0b4e5f774641c (patch)
tree9ee22b3f2d65483c316d30397b7e065d4dec5fec /spec/requests/api
parentcb7e80d1211dae947e40290a834cbe29ee36364e (diff)
Add latest changes from gitlab-org/gitlab@15-2-stable-ee
Diffstat (limited to 'spec/requests/api')
-rw-r--r--spec/requests/api/ci/runner/jobs_artifacts_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/requests/api/ci/runner/jobs_artifacts_spec.rb b/spec/requests/api/ci/runner/jobs_artifacts_spec.rb
index 5767fa4326e..cd8c3dd2806 100644
--- a/spec/requests/api/ci/runner/jobs_artifacts_spec.rb
+++ b/spec/requests/api/ci/runner/jobs_artifacts_spec.rb
@@ -844,7 +844,13 @@ RSpec.describe API::Ci::Runner, :clean_gitlab_redis_shared_state do
'Content-Disposition' => %q(attachment; filename="ci_build_artifacts.zip"; filename*=UTF-8''ci_build_artifacts.zip) }
end
+ before do
+ allow(Gitlab::ApplicationContext).to receive(:push).and_call_original
+ end
+
it 'downloads artifacts' do
+ expect(Gitlab::ApplicationContext).to receive(:push).with(artifact: an_instance_of(Ci::JobArtifact)).once.and_call_original
+
download_artifact
expect(response).to have_gitlab_http_status(:ok)