diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-11 21:11:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-11 21:11:13 +0300 |
commit | 2f9c0a9f2ce0063264549861f8b561b8ccc420a8 (patch) | |
tree | 8af863f05f7fbdd763a684236433847e5554269c /spec/tasks/gitlab | |
parent | 442d4a496ebad9e3f76de2f570c4804e73ddd41e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tasks/gitlab')
54 files changed, 54 insertions, 74 deletions
diff --git a/spec/tasks/gitlab/artifacts/check_rake_spec.rb b/spec/tasks/gitlab/artifacts/check_rake_spec.rb index e0303170755..c70dd76dab9 100644 --- a/spec/tasks/gitlab/artifacts/check_rake_spec.rb +++ b/spec/tasks/gitlab/artifacts/check_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:artifacts rake tasks', :silence_stdout do describe 'check' do diff --git a/spec/tasks/gitlab/artifacts/migrate_rake_spec.rb b/spec/tasks/gitlab/artifacts/migrate_rake_spec.rb index 1c8a1c6a171..3fa1b8a0a52 100644 --- a/spec/tasks/gitlab/artifacts/migrate_rake_spec.rb +++ b/spec/tasks/gitlab/artifacts/migrate_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:artifacts namespace rake task', :silence_stdout do before(:context) do diff --git a/spec/tasks/gitlab/audit_event_types/audit_event_types_rake_spec.rb b/spec/tasks/gitlab/audit_event_types/audit_event_types_rake_spec.rb index 14196ce4c5d..c9c3c83f30b 100644 --- a/spec/tasks/gitlab/audit_event_types/audit_event_types_rake_spec.rb +++ b/spec/tasks/gitlab/audit_event_types/audit_event_types_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' require_relative '../../../../lib/tasks/gitlab/audit_event_types/check_docs_task' require_relative '../../../../lib/tasks/gitlab/audit_event_types/compile_docs_task' diff --git a/spec/tasks/gitlab/audit_event_types/check_docs_task_spec.rb b/spec/tasks/gitlab/audit_event_types/check_docs_task_spec.rb index b492289e99e..41b045a3a42 100644 --- a/spec/tasks/gitlab/audit_event_types/check_docs_task_spec.rb +++ b/spec/tasks/gitlab/audit_event_types/check_docs_task_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' require_relative '../../../../lib/tasks/gitlab/audit_event_types/check_docs_task' require_relative '../../../../lib/tasks/gitlab/audit_event_types/compile_docs_task' diff --git a/spec/tasks/gitlab/audit_event_types/compile_docs_task_spec.rb b/spec/tasks/gitlab/audit_event_types/compile_docs_task_spec.rb index 0ee85b1283b..7689029de58 100644 --- a/spec/tasks/gitlab/audit_event_types/compile_docs_task_spec.rb +++ b/spec/tasks/gitlab/audit_event_types/compile_docs_task_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' require_relative '../../../../lib/tasks/gitlab/audit_event_types/compile_docs_task' RSpec.describe Tasks::Gitlab::AuditEventTypes::CompileDocsTask, feature_category: :audit_events do diff --git a/spec/tasks/gitlab/background_migrations_rake_spec.rb b/spec/tasks/gitlab/background_migrations_rake_spec.rb index 0a7ab214cc1..ba5618e2700 100644 --- a/spec/tasks/gitlab/background_migrations_rake_spec.rb +++ b/spec/tasks/gitlab/background_migrations_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:background_migrations namespace rake tasks', :suppress_gitlab_schemas_validate_connection, feature_category: :database do diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb index fda27d5827f..56560b06219 100644 --- a/spec/tasks/gitlab/backup_rake_spec.rb +++ b/spec/tasks/gitlab/backup_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:backup namespace rake tasks', :delete, feature_category: :backup_restore do let(:enable_registry) { true } diff --git a/spec/tasks/gitlab/check_rake_spec.rb b/spec/tasks/gitlab/check_rake_spec.rb index 74cc5dd6d7c..4a73ef78022 100644 --- a/spec/tasks/gitlab/check_rake_spec.rb +++ b/spec/tasks/gitlab/check_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'check.rake', :silence_stdout, feature_category: :gitaly do before do diff --git a/spec/tasks/gitlab/ci_secure_files/check_rake_spec.rb b/spec/tasks/gitlab/ci_secure_files/check_rake_spec.rb index fc9aae3597e..5875dcd9943 100644 --- a/spec/tasks/gitlab/ci_secure_files/check_rake_spec.rb +++ b/spec/tasks/gitlab/ci_secure_files/check_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:ci_secure_files', factory_default: :keep, feature_category: :mobile_devops do describe 'check' do diff --git a/spec/tasks/gitlab/ci_secure_files/migrate_rake_spec.rb b/spec/tasks/gitlab/ci_secure_files/migrate_rake_spec.rb index f3856969a6e..1a948d82cbe 100644 --- a/spec/tasks/gitlab/ci_secure_files/migrate_rake_spec.rb +++ b/spec/tasks/gitlab/ci_secure_files/migrate_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:ci_secure_files', feature_category: :mobile_devops do let!(:local_file) { create(:ci_secure_file) } diff --git a/spec/tasks/gitlab/cleanup_rake_spec.rb b/spec/tasks/gitlab/cleanup_rake_spec.rb index 1d111d266e3..2e41c4f1219 100644 --- a/spec/tasks/gitlab/cleanup_rake_spec.rb +++ b/spec/tasks/gitlab/cleanup_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:cleanup rake tasks', :silence_stdout do before do diff --git a/spec/tasks/gitlab/container_registry_rake_spec.rb b/spec/tasks/gitlab/container_registry_rake_spec.rb index d0c728bf36d..8154b152710 100644 --- a/spec/tasks/gitlab/container_registry_rake_spec.rb +++ b/spec/tasks/gitlab/container_registry_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:container_registry namespace rake tasks', :silence_stdout do let(:api_url) { 'http://registry.gitlab' } diff --git a/spec/tasks/gitlab/db/cells/bump_cell_sequences_rake_spec.rb b/spec/tasks/gitlab/db/cells/bump_cell_sequences_rake_spec.rb index a1725d6fed7..ff11e4ee8cb 100644 --- a/spec/tasks/gitlab/db/cells/bump_cell_sequences_rake_spec.rb +++ b/spec/tasks/gitlab/db/cells/bump_cell_sequences_rake_spec.rb @@ -1,14 +1,11 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:db:cells:bump_cell_sequences', :silence_stdout, :suppress_gitlab_schemas_validate_connection, feature_category: :cell, query_analyzers: false do before(:all) do Rake.application.rake_require 'tasks/gitlab/db/cells/bump_cell_sequences' - - # empty task as env is already loaded - Rake::Task.define_task :environment end let(:main_sequence_name) { 'users_id_seq' } diff --git a/spec/tasks/gitlab/db/decomposition/connection_status_rake_spec.rb b/spec/tasks/gitlab/db/decomposition/connection_status_rake_spec.rb index 352e3d944fc..2dba73886b8 100644 --- a/spec/tasks/gitlab/db/decomposition/connection_status_rake_spec.rb +++ b/spec/tasks/gitlab/db/decomposition/connection_status_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:db:decomposition:connection_status', feature_category: :cell do let(:max_connections) { 500 } diff --git a/spec/tasks/gitlab/db/decomposition/rollback/bump_ci_sequences_rake_spec.rb b/spec/tasks/gitlab/db/decomposition/rollback/bump_ci_sequences_rake_spec.rb index 3d4b977644f..41c9e837ead 100644 --- a/spec/tasks/gitlab/db/decomposition/rollback/bump_ci_sequences_rake_spec.rb +++ b/spec/tasks/gitlab/db/decomposition/rollback/bump_ci_sequences_rake_spec.rb @@ -1,14 +1,11 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:db:decomposition:rollback:bump_ci_sequences', :silence_stdout, :suppress_gitlab_schemas_validate_connection, feature_category: :cell, query_analyzers: false do before(:all) do Rake.application.rake_require 'tasks/gitlab/db/decomposition/rollback/bump_ci_sequences' - - # empty task as env is already loaded - Rake::Task.define_task :environment end let(:expected_error_message) do diff --git a/spec/tasks/gitlab/db/lock_writes_rake_spec.rb b/spec/tasks/gitlab/db/lock_writes_rake_spec.rb index 5baf13b9847..4c5e3d437ae 100644 --- a/spec/tasks/gitlab/db/lock_writes_rake_spec.rb +++ b/spec/tasks/gitlab/db/lock_writes_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:db:lock_writes', :reestablished_active_record_base, feature_category: :cell do before(:all) do @@ -8,9 +8,6 @@ RSpec.describe 'gitlab:db:lock_writes', :reestablished_active_record_base, featu Rake.application.rake_require 'tasks/seed_fu' Rake.application.rake_require 'tasks/gitlab/db/validate_config' Rake.application.rake_require 'tasks/gitlab/db/lock_writes' - - # empty task as env is already loaded - Rake::Task.define_task :environment end let(:table_locker) { instance_double(Gitlab::Database::TablesLocker) } diff --git a/spec/tasks/gitlab/db/migration_fix_15_11_rake_spec.rb b/spec/tasks/gitlab/db/migration_fix_15_11_rake_spec.rb index 9a101921b68..4ad149ef7d9 100644 --- a/spec/tasks/gitlab/db/migration_fix_15_11_rake_spec.rb +++ b/spec/tasks/gitlab/db/migration_fix_15_11_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'migration_fix_15_11', :reestablished_active_record_base, feature_category: :database do let(:db) { ApplicationRecord.connection } @@ -10,8 +10,6 @@ RSpec.describe 'migration_fix_15_11', :reestablished_active_record_base, feature before(:all) do Rake.application.rake_require 'active_record/railties/databases' Rake.application.rake_require 'tasks/gitlab/db/migration_fix_15_11' - - Rake::Task.define_task :environment end describe 'migration_fix_15_11' do diff --git a/spec/tasks/gitlab/db/truncate_legacy_tables_rake_spec.rb b/spec/tasks/gitlab/db/truncate_legacy_tables_rake_spec.rb index 518acfc5d81..940bb9baa60 100644 --- a/spec/tasks/gitlab/db/truncate_legacy_tables_rake_spec.rb +++ b/spec/tasks/gitlab/db/truncate_legacy_tables_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:db:truncate_legacy_tables', :silence_stdout, :reestablished_active_record_base, :suppress_gitlab_schemas_validate_connection, feature_category: :cell do @@ -14,9 +14,6 @@ RSpec.describe 'gitlab:db:truncate_legacy_tables', :silence_stdout, :reestablish Rake.application.rake_require 'tasks/seed_fu' Rake.application.rake_require 'tasks/gitlab/db/validate_config' Rake.application.rake_require 'tasks/gitlab/db/truncate_legacy_tables' - - # empty task as env is already loaded - Rake::Task.define_task :environment end before do diff --git a/spec/tasks/gitlab/db/validate_config_rake_spec.rb b/spec/tasks/gitlab/db/validate_config_rake_spec.rb index e58667578b2..91d4190b815 100644 --- a/spec/tasks/gitlab/db/validate_config_rake_spec.rb +++ b/spec/tasks/gitlab/db/validate_config_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:db:validate_config', :silence_stdout, :suppress_gitlab_schemas_validate_connection, feature_category: :cell do # We don't need to delete this data since it only modifies `ar_internal_metadata` @@ -11,9 +11,6 @@ RSpec.describe 'gitlab:db:validate_config', :silence_stdout, :suppress_gitlab_sc Rake.application.rake_require 'active_record/railties/databases' Rake.application.rake_require 'tasks/seed_fu' Rake.application.rake_require 'tasks/gitlab/db/validate_config' - - # empty task as env is already loaded - Rake::Task.define_task :environment end context "when validating config" do diff --git a/spec/tasks/gitlab/db_rake_spec.rb b/spec/tasks/gitlab/db_rake_spec.rb index c35c162c99a..c2e53da8d4b 100644 --- a/spec/tasks/gitlab/db_rake_spec.rb +++ b/spec/tasks/gitlab/db_rake_spec.rb @@ -1,15 +1,12 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:db namespace rake task', :silence_stdout, feature_category: :database do before(:all) do Rake.application.rake_require 'active_record/railties/databases' Rake.application.rake_require 'tasks/seed_fu' Rake.application.rake_require 'tasks/gitlab/db' - - # empty task as env is already loaded - Rake::Task.define_task :environment end before do diff --git a/spec/tasks/gitlab/dependency_proxy/migrate_rake_spec.rb b/spec/tasks/gitlab/dependency_proxy/migrate_rake_spec.rb index 0bda879bd7c..d37bf6ff939 100644 --- a/spec/tasks/gitlab/dependency_proxy/migrate_rake_spec.rb +++ b/spec/tasks/gitlab/dependency_proxy/migrate_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:dependency_proxy namespace rake task', :silence_stdout do before(:all) do diff --git a/spec/tasks/gitlab/doctor/secrets_rake_spec.rb b/spec/tasks/gitlab/doctor/secrets_rake_spec.rb index 22ecd91e1a0..91ef3c57d73 100644 --- a/spec/tasks/gitlab/doctor/secrets_rake_spec.rb +++ b/spec/tasks/gitlab/doctor/secrets_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:doctor:reset_encrypted_tokens', :silence_stdout, feature_category: :runner_fleet do let(:model_names) { 'Project,Group' } diff --git a/spec/tasks/gitlab/external_diffs_rake_spec.rb b/spec/tasks/gitlab/external_diffs_rake_spec.rb index 86242de4b90..10a1253a4a5 100644 --- a/spec/tasks/gitlab/external_diffs_rake_spec.rb +++ b/spec/tasks/gitlab/external_diffs_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:external_diffs rake tasks', :silence_stdout do before do diff --git a/spec/tasks/gitlab/feature_categories_rake_spec.rb b/spec/tasks/gitlab/feature_categories_rake_spec.rb index f495c7e8911..84558ea7fb7 100644 --- a/spec/tasks/gitlab/feature_categories_rake_spec.rb +++ b/spec/tasks/gitlab/feature_categories_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:feature_categories:index', :silence_stdout, feature_category: :scalability do before do diff --git a/spec/tasks/gitlab/git_rake_spec.rb b/spec/tasks/gitlab/git_rake_spec.rb index aab927a472e..52cfb50e9bc 100644 --- a/spec/tasks/gitlab/git_rake_spec.rb +++ b/spec/tasks/gitlab/git_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:git rake tasks', :silence_stdout do let(:base_path) { 'tmp/tests/default_storage' } diff --git a/spec/tasks/gitlab/gitaly_rake_spec.rb b/spec/tasks/gitlab/gitaly_rake_spec.rb index 5a395c8f6ef..e9de7ba5218 100644 --- a/spec/tasks/gitlab/gitaly_rake_spec.rb +++ b/spec/tasks/gitlab/gitaly_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:gitaly namespace rake task', :silence_stdout do before(:all) do diff --git a/spec/tasks/gitlab/incoming_email_rake_spec.rb b/spec/tasks/gitlab/incoming_email_rake_spec.rb index 3e1cc663ddb..f9109fdf2b8 100644 --- a/spec/tasks/gitlab/incoming_email_rake_spec.rb +++ b/spec/tasks/gitlab/incoming_email_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:incoming_email:secret rake tasks', :silence_stdout, feature_category: :build do let(:encrypted_secret_file_dir) { Pathname.new(Dir.mktmpdir) } diff --git a/spec/tasks/gitlab/ldap_rake_spec.rb b/spec/tasks/gitlab/ldap_rake_spec.rb index b18c2c88a46..877bed7cacf 100644 --- a/spec/tasks/gitlab/ldap_rake_spec.rb +++ b/spec/tasks/gitlab/ldap_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:ldap:rename_provider rake task', :silence_stdout do it 'completes without error' do diff --git a/spec/tasks/gitlab/lfs/check_rake_spec.rb b/spec/tasks/gitlab/lfs/check_rake_spec.rb index ce0076826c4..ac15b2cc253 100644 --- a/spec/tasks/gitlab/lfs/check_rake_spec.rb +++ b/spec/tasks/gitlab/lfs/check_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:lfs rake tasks', :silence_stdout do describe 'check' do diff --git a/spec/tasks/gitlab/lfs/migrate_rake_spec.rb b/spec/tasks/gitlab/lfs/migrate_rake_spec.rb index cbc39c6b093..d662fed9f5d 100644 --- a/spec/tasks/gitlab/lfs/migrate_rake_spec.rb +++ b/spec/tasks/gitlab/lfs/migrate_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:lfs namespace rake task', :silence_stdout do before(:all) do diff --git a/spec/tasks/gitlab/packages/migrate_rake_spec.rb b/spec/tasks/gitlab/packages/migrate_rake_spec.rb index cdc817cdf38..bb8a4bfdda8 100644 --- a/spec/tasks/gitlab/packages/migrate_rake_spec.rb +++ b/spec/tasks/gitlab/packages/migrate_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:packages namespace rake task', :silence_stdout do before(:all) do diff --git a/spec/tasks/gitlab/pages_rake_spec.rb b/spec/tasks/gitlab/pages_rake_spec.rb index 9e3d5c3ccf0..6e23f9823b9 100644 --- a/spec/tasks/gitlab/pages_rake_spec.rb +++ b/spec/tasks/gitlab/pages_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:pages', :silence_stdout do before(:context) do diff --git a/spec/tasks/gitlab/password_rake_spec.rb b/spec/tasks/gitlab/password_rake_spec.rb index 5107066c7fc..2b7056344d3 100644 --- a/spec/tasks/gitlab/password_rake_spec.rb +++ b/spec/tasks/gitlab/password_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:password rake tasks', :silence_stdout do let!(:user_1) { create(:user, username: 'foobar', password: User.random_password, password_automatically_set: true) } diff --git a/spec/tasks/gitlab/praefect_rake_spec.rb b/spec/tasks/gitlab/praefect_rake_spec.rb index 85e655ed72c..915179d24d9 100644 --- a/spec/tasks/gitlab/praefect_rake_spec.rb +++ b/spec/tasks/gitlab/praefect_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:praefect:replicas', :silence_stdout do before do diff --git a/spec/tasks/gitlab/refresh_project_statistics_build_artifacts_size_rake_spec.rb b/spec/tasks/gitlab/refresh_project_statistics_build_artifacts_size_rake_spec.rb index 60c0d80223e..fbb2630bd7b 100644 --- a/spec/tasks/gitlab/refresh_project_statistics_build_artifacts_size_rake_spec.rb +++ b/spec/tasks/gitlab/refresh_project_statistics_build_artifacts_size_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:refresh_project_statistics_build_artifacts_size rake task', :silence_stdout, feature_category: :build_artifacts do let(:rake_task) { 'gitlab:refresh_project_statistics_build_artifacts_size' } diff --git a/spec/tasks/gitlab/security/update_banned_ssh_keys_rake_spec.rb b/spec/tasks/gitlab/security/update_banned_ssh_keys_rake_spec.rb index 264dea815f4..c1964090dc5 100644 --- a/spec/tasks/gitlab/security/update_banned_ssh_keys_rake_spec.rb +++ b/spec/tasks/gitlab/security/update_banned_ssh_keys_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' # We need to load the constants here, or else stubbed # constants will be overwritten when `require 'git'` diff --git a/spec/tasks/gitlab/seed/group_seed_rake_spec.rb b/spec/tasks/gitlab/seed/group_seed_rake_spec.rb index 85d81103000..a69ddd85095 100644 --- a/spec/tasks/gitlab/seed/group_seed_rake_spec.rb +++ b/spec/tasks/gitlab/seed/group_seed_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:seed:group_seed rake task', :silence_stdout, feature_category: :groups_and_projects do let(:username) { 'group_seed' } diff --git a/spec/tasks/gitlab/seed/runner_fleet_rake_spec.rb b/spec/tasks/gitlab/seed/runner_fleet_rake_spec.rb index e0390d2aa09..b8503e2bc1b 100644 --- a/spec/tasks/gitlab/seed/runner_fleet_rake_spec.rb +++ b/spec/tasks/gitlab/seed/runner_fleet_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:seed:runner_fleet rake task', :silence_stdout, feature_category: :runner_fleet do let(:registration_prefix) { 'rf-' } diff --git a/spec/tasks/gitlab/service_desk_email_rake_spec.rb b/spec/tasks/gitlab/service_desk_email_rake_spec.rb index 6a1a7473f4a..af7c1918105 100644 --- a/spec/tasks/gitlab/service_desk_email_rake_spec.rb +++ b/spec/tasks/gitlab/service_desk_email_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:service_desk_email:secret rake tasks', :silence_stdout, feature_category: :build do let(:encrypted_secret_file_dir) { Pathname.new(Dir.mktmpdir) } diff --git a/spec/tasks/gitlab/setup_rake_spec.rb b/spec/tasks/gitlab/setup_rake_spec.rb index 80e997fcf88..29dc4c1d3ed 100644 --- a/spec/tasks/gitlab/setup_rake_spec.rb +++ b/spec/tasks/gitlab/setup_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:setup namespace rake tasks', :silence_stdout do before do diff --git a/spec/tasks/gitlab/shell_rake_spec.rb b/spec/tasks/gitlab/shell_rake_spec.rb index 30f512205f9..7bcf88aeea2 100644 --- a/spec/tasks/gitlab/shell_rake_spec.rb +++ b/spec/tasks/gitlab/shell_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:shell rake tasks', :silence_stdout do before do diff --git a/spec/tasks/gitlab/sidekiq_rake_spec.rb b/spec/tasks/gitlab/sidekiq_rake_spec.rb index 0e5111c90a1..2419449814e 100644 --- a/spec/tasks/gitlab/sidekiq_rake_spec.rb +++ b/spec/tasks/gitlab/sidekiq_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'sidekiq.rake', :aggregate_failures, :silence_stdout do before do diff --git a/spec/tasks/gitlab/smtp_rake_spec.rb b/spec/tasks/gitlab/smtp_rake_spec.rb index 572df8421d5..7c08ee25af6 100644 --- a/spec/tasks/gitlab/smtp_rake_spec.rb +++ b/spec/tasks/gitlab/smtp_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:smtp:secret rake tasks' do let(:smtp_secret_file) { 'tmp/tests/smtpenc/smtp_secret.yaml.enc' } diff --git a/spec/tasks/gitlab/snippets_rake_spec.rb b/spec/tasks/gitlab/snippets_rake_spec.rb index 231c2dae006..395eddab0ad 100644 --- a/spec/tasks/gitlab/snippets_rake_spec.rb +++ b/spec/tasks/gitlab/snippets_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:snippets namespace rake task', :silence_stdout do let!(:user) { create(:user) } diff --git a/spec/tasks/gitlab/storage_rake_spec.rb b/spec/tasks/gitlab/storage_rake_spec.rb index cd520673143..fd15ed630b8 100644 --- a/spec/tasks/gitlab/storage_rake_spec.rb +++ b/spec/tasks/gitlab/storage_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'rake gitlab:storage:*', :silence_stdout, feature_category: :cell do before do diff --git a/spec/tasks/gitlab/terraform/migrate_rake_spec.rb b/spec/tasks/gitlab/terraform/migrate_rake_spec.rb index 3797c01a9cb..ad6db2f345e 100644 --- a/spec/tasks/gitlab/terraform/migrate_rake_spec.rb +++ b/spec/tasks/gitlab/terraform/migrate_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:terraform_states', :silence_stdout do let!(:version) { create(:terraform_state_version) } diff --git a/spec/tasks/gitlab/update_templates_rake_spec.rb b/spec/tasks/gitlab/update_templates_rake_spec.rb index 47eeea239ea..18ef20fbc78 100644 --- a/spec/tasks/gitlab/update_templates_rake_spec.rb +++ b/spec/tasks/gitlab/update_templates_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:update_project_templates rake task', :silence_stdout, feature_category: :importers do let!(:tmpdir) { Dir.mktmpdir } diff --git a/spec/tasks/gitlab/uploads/check_rake_spec.rb b/spec/tasks/gitlab/uploads/check_rake_spec.rb index b3efe33c549..6d88917cc40 100644 --- a/spec/tasks/gitlab/uploads/check_rake_spec.rb +++ b/spec/tasks/gitlab/uploads/check_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:uploads rake tasks', :silence_stdout do describe 'check' do diff --git a/spec/tasks/gitlab/uploads/migrate_rake_spec.rb b/spec/tasks/gitlab/uploads/migrate_rake_spec.rb index 3a368a5011b..7431810d783 100644 --- a/spec/tasks/gitlab/uploads/migrate_rake_spec.rb +++ b/spec/tasks/gitlab/uploads/migrate_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:uploads:migrate and migrate_to_local rake tasks', :sidekiq_inline, :silence_stdout do before do diff --git a/spec/tasks/gitlab/usage_data_rake_spec.rb b/spec/tasks/gitlab/usage_data_rake_spec.rb index 170b1319154..e0e6de99360 100644 --- a/spec/tasks/gitlab/usage_data_rake_spec.rb +++ b/spec/tasks/gitlab/usage_data_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:usage data take tasks', :silence_stdout, :with_license, feature_category: :service_ping do include StubRequests diff --git a/spec/tasks/gitlab/user_management_rake_spec.rb b/spec/tasks/gitlab/user_management_rake_spec.rb index e8de4511c1d..afe4ca58252 100644 --- a/spec/tasks/gitlab/user_management_rake_spec.rb +++ b/spec/tasks/gitlab/user_management_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:user_management tasks', :silence_stdout, feature_category: :groups_and_projects do before do diff --git a/spec/tasks/gitlab/web_hook_rake_spec.rb b/spec/tasks/gitlab/web_hook_rake_spec.rb index 6ad65f55142..d6f341ef58b 100644 --- a/spec/tasks/gitlab/web_hook_rake_spec.rb +++ b/spec/tasks/gitlab/web_hook_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:web_hook namespace rake tasks', :silence_stdout do let!(:group) { create(:group) } diff --git a/spec/tasks/gitlab/workhorse_rake_spec.rb b/spec/tasks/gitlab/workhorse_rake_spec.rb index e87bef9f01f..2edbdd09fd0 100644 --- a/spec/tasks/gitlab/workhorse_rake_spec.rb +++ b/spec/tasks/gitlab/workhorse_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:workhorse namespace rake task', :silence_stdout, feature_category: :source_code_management do before(:all) do diff --git a/spec/tasks/gitlab/x509/update_rake_spec.rb b/spec/tasks/gitlab/x509/update_rake_spec.rb index 118b0b2b960..a5bcd0651d3 100644 --- a/spec/tasks/gitlab/x509/update_rake_spec.rb +++ b/spec/tasks/gitlab/x509/update_rake_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'rake_helper' +require 'spec_helper' RSpec.describe 'gitlab:x509 namespace rake task', :silence_stdout do before(:all) do |