Commit cad2a185 authored by Thong Kuah's avatar Thong Kuah

Add frozen_string_literal to all ee specs

https://gitlab.com/gitlab-org/gitlab/issues/27703
parent af734ef3
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'ee/bin/sidekiq-cluster' do describe 'ee/bin/sidekiq-cluster' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
# This module is monkey-patched in config/initializers/elastic_client_setup.rb # This module is monkey-patched in config/initializers/elastic_client_setup.rb
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'GlobalSearch', :elastic do describe 'GlobalSearch', :elastic do
......
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot # Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do FactoryBot.define do
......
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot # Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do FactoryBot.define do
......
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot # Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do FactoryBot.define do
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :audit_event, class: 'SecurityEvent', aliases: [:user_audit_event] do factory :audit_event, class: 'SecurityEvent', aliases: [:user_audit_event] do
user user
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :board_label do factory :board_label do
association :board association :board
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :ci_sources_pipeline, class: Ci::Sources::Pipeline do factory :ci_sources_pipeline, class: Ci::Sources::Pipeline do
after(:build) do |source| after(:build) do |source|
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :doorkeeper_access_grant, class: Doorkeeper::AccessGrant do factory :doorkeeper_access_grant, class: Doorkeeper::AccessGrant do
sequence(:resource_owner_id) { |n| n } sequence(:resource_owner_id) { |n| n }
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :epic_issue do factory :epic_issue do
epic epic
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :epic do factory :epic do
title { generate(:title) } title { generate(:title) }
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :geo_event_log, class: Geo::EventLog do factory :geo_event_log, class: Geo::EventLog do
trait :created_event do trait :created_event do
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :geo_event_log_state, class: Geo::EventLogState do factory :geo_event_log_state, class: Geo::EventLogState do
sequence(:event_id) sequence(:event_id)
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :geo_file_registry, class: Geo::FileRegistry do factory :geo_file_registry, class: Geo::FileRegistry do
sequence(:file_id) sequence(:file_id)
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :geo_job_artifact_registry, class: Geo::JobArtifactRegistry do factory :geo_job_artifact_registry, class: Geo::JobArtifactRegistry do
sequence(:artifact_id) sequence(:artifact_id)
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :geo_project_registry, class: Geo::ProjectRegistry do factory :geo_project_registry, class: Geo::ProjectRegistry do
project project
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :geo_node_namespace_link do factory :geo_node_namespace_link do
geo_node geo_node
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :geo_node_status do factory :geo_node_status do
geo_node geo_node
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :geo_node do factory :geo_node do
sequence(:url) do |n| sequence(:url) do |n|
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :gitlab_subscription do factory :gitlab_subscription do
namespace namespace
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :group_hook do factory :group_hook do
url { generate(:url) } url { generate(:url) }
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :issue_link do factory :issue_link do
source factory: :issue source factory: :issue
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :ldap_group_link do factory :ldap_group_link do
cn 'group1' cn 'group1'
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :ldap_key, parent: :key, class: 'LDAPKey' factory :ldap_key, parent: :key, class: 'LDAPKey'
end end
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :gitlab_license, class: "Gitlab::License" do factory :gitlab_license, class: "Gitlab::License" do
skip_create skip_create
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :user_list, parent: :list do factory :user_list, parent: :list do
list_type :assignee list_type :assignee
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :namespace_statistics do factory :namespace_statistics do
namespace factory: :namespace namespace factory: :namespace
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :operations_feature_flag, class: Operations::FeatureFlag do factory :operations_feature_flag, class: Operations::FeatureFlag do
sequence(:name) { |n| "feature_flag_#{n}" } sequence(:name) { |n| "feature_flag_#{n}" }
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :operations_feature_flags_client, class: Operations::FeatureFlagsClient do factory :operations_feature_flags_client, class: Operations::FeatureFlagsClient do
project project
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :path_lock do factory :path_lock do
project project
......
# frozen_string_literal: true
# EE-only # EE-only
FactoryBot.define do FactoryBot.define do
factory :plan do factory :plan do
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :repository_state, class: 'ProjectRepositoryState' do factory :repository_state, class: 'ProjectRepositoryState' do
project project
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :project_tracing_setting do factory :project_tracing_setting do
project project
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :prometheus_alert do factory :prometheus_alert do
project project
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :protected_branch_merge_access_level, class: ProtectedBranch::MergeAccessLevel do factory :protected_branch_merge_access_level, class: ProtectedBranch::MergeAccessLevel do
user nil user nil
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :protected_branch_push_access_level, class: ProtectedBranch::PushAccessLevel do factory :protected_branch_push_access_level, class: ProtectedBranch::PushAccessLevel do
user nil user nil
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :protected_branch_unprotect_access_level, class: ProtectedBranch::UnprotectAccessLevel do factory :protected_branch_unprotect_access_level, class: ProtectedBranch::UnprotectAccessLevel do
user nil user nil
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :protected_tag_create_access_level, class: ProtectedTag::CreateAccessLevel do factory :protected_tag_create_access_level, class: ProtectedTag::CreateAccessLevel do
user nil user nil
......
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot # Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do FactoryBot.define do
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :saml_provider do factory :saml_provider do
group group
......
# frozen_string_literal: true
FactoryBot.define do FactoryBot.define do
factory :slack_integration do factory :slack_integration do
sequence(:team_id) { |n| "T123#{n}" } sequence(:team_id) { |n| "T123#{n}" }
......
# frozen_string_literal: true
require 'digest' require 'digest'
FactoryBot.define do FactoryBot.define do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Admin::AuditLogs', :js do describe 'Admin::AuditLogs', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Admin browses logs' do describe 'Admin browses logs' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Admin Dashboard' do describe 'Admin Dashboard' do
......
# frozen_string_literal: true
require "spec_helper" require "spec_helper"
describe "Admin interacts with push rules" do describe "Admin interacts with push rules" do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Reset namespace pipeline minutes' do describe 'Reset namespace pipeline minutes' do
......
# frozen_string_literal: true
require "spec_helper" require "spec_helper"
describe "Admin sends notification", :js do describe "Admin sends notification", :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe "Admin::Users" do describe "Admin::Users" do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'admin Geo Nodes', :js, :geo do describe 'admin Geo Nodes', :js, :geo do
......
# frozen_string_literal: true
require "spec_helper" require "spec_helper"
describe "Admin uploads license" do describe "Admin uploads license" do
......
# frozen_string_literal: true
require "spec_helper" require "spec_helper"
describe "Admin views license" do describe "Admin views license" do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Billing plan pages', :feature do describe 'Billing plan pages', :feature do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Issue Boards focus mode', :js do describe 'Issue Boards focus mode', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'label issues', :js do describe 'label issues', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Scoped issue boards', :js do describe 'Scoped issue boards', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Issue Boards', :js do describe 'Issue Boards', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Burndown charts' do describe 'Burndown charts' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'CI shared runner settings' do describe 'CI shared runner settings' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'CI shared runner limits' do describe 'CI shared runner limits' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Thread Comments Epic', :js do describe 'Thread Comments Epic', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Delete Epic', :js do describe 'Delete Epic', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Epic Issues', :js do describe 'Epic Issues', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Assign labels to an epic', :js do describe 'Assign labels to an epic', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'epics list', :js do describe 'epics list', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'epics list', :js do describe 'epics list', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'GFM autocomplete', :js do describe 'GFM autocomplete', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'New Epic', :js do describe 'New Epic', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Referencing Epics', :js do describe 'Referencing Epics', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Manually create a todo item from epic', :js do describe 'Manually create a todo item from epic', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Update Epic', :js do describe 'Update Epic', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'GEO Nodes', :geo do describe 'GEO Nodes', :geo do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Groups > Contribution Analytics', :js do describe 'Groups > Contribution Analytics', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Groups > Audit Events', :js do describe 'Groups > Audit Events', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Groups > Billing', :js do describe 'Groups > Billing', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'The group page' do describe 'The group page' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'group epic roadmap', :js do describe 'group epic roadmap', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Edit group settings' do describe 'Edit group settings' do
......
# frozen_string_literal: true
require "spec_helper" require "spec_helper"
describe "User adds hook" do describe "User adds hook" do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe "User tests hooks", :js do describe "User tests hooks", :js do
......
# frozen_string_literal: true
require "spec_helper" require "spec_helper"
describe "User views hooks" do describe "User views hooks" do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Edit group settings', :js do describe 'Edit group settings', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Groups > Members > Maintainer/Owner can override LDAP access levels' do describe 'Groups > Members > Maintainer/Owner can override LDAP access levels' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'SAML provider settings' do describe 'SAML provider settings' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Groups > Usage Quotas' do describe 'Groups > Usage Quotas' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Related issues', :js do describe 'Related issues', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Issues csv' do describe 'Issues csv' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Epic in issue sidebar', :js do describe 'Epic in issue sidebar', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Dropdown weight', :js do describe 'Dropdown weight', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Filter issues weight', :js do describe 'Filter issues weight', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'New/edit issue', :js do describe 'New/edit issue', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Issue Sidebar' do describe 'Issue Sidebar' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Service Desk Issue Tracker', :js do describe 'Service Desk Issue Tracker', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Issues sub nav EE' do describe 'Issues sub nav EE' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Subscriptions Content Security Policy' do describe 'Subscriptions Content Security Policy' do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Labels Hierarchy', :js do describe 'Labels Hierarchy', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Merge request > Batch comments', :js do describe 'Merge request > Batch comments', :js do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
# TODO: https://gitlab.com/gitlab-org/gitlab/issues/9430 # TODO: https://gitlab.com/gitlab-org/gitlab/issues/9430
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe 'Merge request > User merges with Push Rules', :js do describe 'Merge request > User merges with Push Rules', :js do
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment