2018-09-03 12:04:40 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-07-11 13:00:36 -04:00
|
|
|
Encoding.default_external = 'UTF-8'
|
|
|
|
|
2021-12-20 16:10:56 -05:00
|
|
|
require_relative '../lib/gitlab_edition'
|
2019-10-10 14:06:00 -04:00
|
|
|
require_relative '../lib/gitlab/utils'
|
2019-08-01 08:41:37 -04:00
|
|
|
require_relative '../config/initializers/0_inject_enterprise_edition_module'
|
|
|
|
|
2021-08-09 05:22:41 -04:00
|
|
|
require_relative 'lib/gitlab'
|
|
|
|
|
2021-09-03 08:09:03 -04:00
|
|
|
require_relative '../config/bundler_setup'
|
2021-08-25 11:11:14 -04:00
|
|
|
Bundler.require(:default)
|
2021-05-18 11:10:46 -04:00
|
|
|
|
2022-02-24 19:17:32 -05:00
|
|
|
require 'securerandom'
|
|
|
|
require 'pathname'
|
|
|
|
require 'active_support/core_ext/hash'
|
|
|
|
require 'active_support/core_ext/object/blank'
|
|
|
|
require 'rainbow/refinement'
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
module QA
|
2021-08-25 11:11:14 -04:00
|
|
|
root = "#{__dir__}/qa"
|
|
|
|
|
|
|
|
loader = Zeitwerk::Loader.new
|
|
|
|
loader.push_dir(root, namespace: QA)
|
|
|
|
|
|
|
|
loader.ignore("#{root}/specs/features")
|
2022-04-29 20:09:38 -04:00
|
|
|
loader.ignore("#{root}/specs/spec_helper.rb")
|
2021-08-25 11:11:14 -04:00
|
|
|
|
|
|
|
loader.inflector.inflect(
|
|
|
|
"ce" => "CE",
|
|
|
|
"ee" => "EE",
|
|
|
|
"api" => "API",
|
|
|
|
"ssh" => "SSH",
|
|
|
|
"ssh_key" => "SSHKey",
|
|
|
|
"ssh_keys" => "SSHKeys",
|
|
|
|
"ecdsa" => "ECDSA",
|
|
|
|
"ed25519" => "ED25519",
|
|
|
|
"rsa" => "RSA",
|
|
|
|
"ldap" => "LDAP",
|
|
|
|
"ldap_tls" => "LDAPTLS",
|
|
|
|
"ldap_no_tls" => "LDAPNoTLS",
|
|
|
|
"ldap_no_server" => "LDAPNoServer",
|
|
|
|
"rspec" => "RSpec",
|
|
|
|
"web_ide" => "WebIDE",
|
|
|
|
"ci_cd" => "CiCd",
|
2021-09-07 11:11:06 -04:00
|
|
|
"project_imported_from_url" => "ProjectImportedFromURL",
|
2021-08-25 11:11:14 -04:00
|
|
|
"repo_by_url" => "RepoByURL",
|
|
|
|
"oauth" => "OAuth",
|
|
|
|
"saml_sso_sign_in" => "SamlSSOSignIn",
|
|
|
|
"saml_sso_sign_up" => "SamlSSOSignUp",
|
|
|
|
"group_saml" => "GroupSAML",
|
|
|
|
"instance_saml" => "InstanceSAML",
|
|
|
|
"saml_sso" => "SamlSSO",
|
|
|
|
"ldap_sync" => "LDAPSync",
|
|
|
|
"ip_address" => "IPAddress",
|
|
|
|
"gpg" => "GPG",
|
|
|
|
"user_gpg" => "UserGPG",
|
|
|
|
"smtp" => "SMTP",
|
|
|
|
"otp" => "OTP",
|
2021-11-03 20:12:36 -04:00
|
|
|
"jira_api" => "JiraAPI",
|
2022-02-01 16:12:02 -05:00
|
|
|
"registry_tls" => "RegistryTLS",
|
2022-02-04 07:17:40 -05:00
|
|
|
"jetbrains" => "JetBrains",
|
2022-03-01 16:16:08 -05:00
|
|
|
"vscode" => "VSCode",
|
|
|
|
"registry_with_cdn" => "RegistryWithCDN"
|
2021-08-25 11:11:14 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
loader.setup
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|