diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-20 15:26:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-20 15:26:25 +0300 |
commit | a09983ae35713f5a2bbb100981116d31ce99826e (patch) | |
tree | 2ee2af7bd104d57086db360a7e6d8c9d5d43667a /spec/requests/import | |
parent | 18c5ab32b738c0b6ecb4d0df3994000482f34bd8 (diff) |
Add latest changes from gitlab-org/gitlab@13-2-stable-ee
Diffstat (limited to 'spec/requests/import')
-rw-r--r-- | spec/requests/import/gitlab_groups_controller_spec.rb | 4 | ||||
-rw-r--r-- | spec/requests/import/gitlab_projects_controller_spec.rb | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/spec/requests/import/gitlab_groups_controller_spec.rb b/spec/requests/import/gitlab_groups_controller_spec.rb index 35f2bf0c2f7..4125c5c7c7a 100644 --- a/spec/requests/import/gitlab_groups_controller_spec.rb +++ b/spec/requests/import/gitlab_groups_controller_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Import::GitlabGroupsController do +RSpec.describe Import::GitlabGroupsController do include WorkhorseHelpers let(:import_path) { "#{Dir.tmpdir}/gitlab_groups_controller_spec" } @@ -16,6 +16,8 @@ describe Import::GitlabGroupsController do expect(import_export).to receive(:storage_path).and_return(import_path) end + allow(Gitlab::ApplicationRateLimiter).to receive(:throttled?).and_return(false) + stub_uploads_object_storage(ImportExportUploader) end diff --git a/spec/requests/import/gitlab_projects_controller_spec.rb b/spec/requests/import/gitlab_projects_controller_spec.rb index f16755e9766..c1ac5a9f2c8 100644 --- a/spec/requests/import/gitlab_projects_controller_spec.rb +++ b/spec/requests/import/gitlab_projects_controller_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Import::GitlabProjectsController do +RSpec.describe Import::GitlabProjectsController do include WorkhorseHelpers let(:workhorse_token) { JWT.encode({ 'iss' => 'gitlab-workhorse' }, Gitlab::Workhorse.secret, 'HS256') } |