diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-01 16:38:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-01 16:38:24 +0300 |
commit | 0396082c12f518f48e136968dbf0b4e5f774641c (patch) | |
tree | 9ee22b3f2d65483c316d30397b7e065d4dec5fec /spec/requests/api | |
parent | cb7e80d1211dae947e40290a834cbe29ee36364e (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.rb | 6 |
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) |