2018-11-20 20:47:30 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-03-09 13:42:32 +05:30
|
|
|
$: << File.expand_path(__dir__)
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
Encoding.default_external = 'UTF-8'
|
|
|
|
|
2019-10-12 21:52:04 +05:30
|
|
|
require_relative '../lib/gitlab'
|
2019-12-21 20:55:43 +05:30
|
|
|
require_relative '../lib/gitlab/utils'
|
2019-10-12 21:52:04 +05:30
|
|
|
require_relative '../config/initializers/0_inject_enterprise_edition_module'
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
module QA
|
2019-12-26 22:10:19 +05:30
|
|
|
##
|
|
|
|
# Helper classes to represent frequently used sequences of actions
|
|
|
|
# (e.g., login)
|
|
|
|
#
|
|
|
|
module Flow
|
|
|
|
autoload :Login, 'qa/flow/login'
|
2020-01-01 13:55:28 +05:30
|
|
|
autoload :Project, 'qa/flow/project'
|
2020-03-09 13:42:32 +05:30
|
|
|
autoload :Saml, 'qa/flow/saml'
|
|
|
|
autoload :User, 'qa/flow/user'
|
2019-12-26 22:10:19 +05:30
|
|
|
end
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
##
|
|
|
|
# GitLab QA runtime classes, mostly singletons.
|
|
|
|
#
|
|
|
|
module Runtime
|
|
|
|
autoload :Release, 'qa/runtime/release'
|
|
|
|
autoload :User, 'qa/runtime/user'
|
|
|
|
autoload :Namespace, 'qa/runtime/namespace'
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :Scenario, 'qa/runtime/scenario'
|
|
|
|
autoload :Browser, 'qa/runtime/browser'
|
|
|
|
autoload :Env, 'qa/runtime/env'
|
|
|
|
autoload :Address, 'qa/runtime/address'
|
2018-12-13 13:39:08 +05:30
|
|
|
autoload :Path, 'qa/runtime/path'
|
2019-07-07 11:18:12 +05:30
|
|
|
autoload :Feature, 'qa/runtime/feature'
|
2018-12-13 13:39:08 +05:30
|
|
|
autoload :Fixtures, 'qa/runtime/fixtures'
|
|
|
|
autoload :Logger, 'qa/runtime/logger'
|
2019-12-21 20:55:43 +05:30
|
|
|
autoload :GPG, 'qa/runtime/gpg'
|
2020-01-01 13:55:28 +05:30
|
|
|
autoload :MailHog, 'qa/runtime/mail_hog'
|
|
|
|
autoload :IPAddress, 'qa/runtime/ip_address'
|
|
|
|
autoload :Search, 'qa/runtime/search'
|
2020-03-09 13:42:32 +05:30
|
|
|
autoload :ApplicationSettings, 'qa/runtime/application_settings'
|
2018-11-08 19:23:39 +05:30
|
|
|
|
|
|
|
module API
|
|
|
|
autoload :Client, 'qa/runtime/api/client'
|
|
|
|
autoload :Request, 'qa/runtime/api/request'
|
|
|
|
end
|
2018-10-15 14:42:47 +05:30
|
|
|
|
|
|
|
module Key
|
|
|
|
autoload :Base, 'qa/runtime/key/base'
|
|
|
|
autoload :RSA, 'qa/runtime/key/rsa'
|
|
|
|
autoload :ECDSA, 'qa/runtime/key/ecdsa'
|
|
|
|
autoload :ED25519, 'qa/runtime/key/ed25519'
|
|
|
|
end
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# GitLab QA fabrication mechanisms
|
|
|
|
#
|
2018-12-13 13:39:08 +05:30
|
|
|
module Resource
|
|
|
|
autoload :ApiFabricator, 'qa/resource/api_fabricator'
|
|
|
|
autoload :Base, 'qa/resource/base'
|
|
|
|
|
|
|
|
autoload :Sandbox, 'qa/resource/sandbox'
|
|
|
|
autoload :Group, 'qa/resource/group'
|
|
|
|
autoload :Issue, 'qa/resource/issue'
|
|
|
|
autoload :Project, 'qa/resource/project'
|
|
|
|
autoload :Label, 'qa/resource/label'
|
|
|
|
autoload :MergeRequest, 'qa/resource/merge_request'
|
|
|
|
autoload :ProjectImportedFromGithub, 'qa/resource/project_imported_from_github'
|
|
|
|
autoload :MergeRequestFromFork, 'qa/resource/merge_request_from_fork'
|
|
|
|
autoload :DeployKey, 'qa/resource/deploy_key'
|
|
|
|
autoload :DeployToken, 'qa/resource/deploy_token'
|
2019-12-04 20:38:33 +05:30
|
|
|
autoload :ProtectedBranch, 'qa/resource/protected_branch'
|
2018-12-13 13:39:08 +05:30
|
|
|
autoload :CiVariable, 'qa/resource/ci_variable'
|
|
|
|
autoload :Runner, 'qa/resource/runner'
|
|
|
|
autoload :PersonalAccessToken, 'qa/resource/personal_access_token'
|
|
|
|
autoload :KubernetesCluster, 'qa/resource/kubernetes_cluster'
|
|
|
|
autoload :User, 'qa/resource/user'
|
|
|
|
autoload :ProjectMilestone, 'qa/resource/project_milestone'
|
2019-12-04 20:38:33 +05:30
|
|
|
autoload :Members, 'qa/resource/members'
|
2018-12-13 13:39:08 +05:30
|
|
|
autoload :Wiki, 'qa/resource/wiki'
|
|
|
|
autoload :File, 'qa/resource/file'
|
|
|
|
autoload :Fork, 'qa/resource/fork'
|
|
|
|
autoload :SSHKey, 'qa/resource/ssh_key'
|
2019-07-07 11:18:12 +05:30
|
|
|
autoload :Snippet, 'qa/resource/snippet'
|
2019-12-21 20:55:43 +05:30
|
|
|
autoload :Tag, 'qa/resource/tag'
|
2019-12-04 20:38:33 +05:30
|
|
|
autoload :ProjectMember, 'qa/resource/project_member'
|
2019-12-21 20:55:43 +05:30
|
|
|
autoload :UserGPG, 'qa/resource/user_gpg'
|
2019-07-07 11:18:12 +05:30
|
|
|
|
|
|
|
module Events
|
|
|
|
autoload :Base, 'qa/resource/events/base'
|
|
|
|
autoload :Project, 'qa/resource/events/project'
|
|
|
|
end
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
module Repository
|
2019-12-04 20:38:33 +05:30
|
|
|
autoload :Commit, 'qa/resource/repository/commit'
|
2018-12-13 13:39:08 +05:30
|
|
|
autoload :Push, 'qa/resource/repository/push'
|
|
|
|
autoload :ProjectPush, 'qa/resource/repository/project_push'
|
|
|
|
autoload :WikiPush, 'qa/resource/repository/wiki_push'
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
module Settings
|
2018-12-13 13:39:08 +05:30
|
|
|
autoload :HashedStorage, 'qa/resource/settings/hashed_storage'
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# GitLab QA Scenarios
|
|
|
|
#
|
|
|
|
module Scenario
|
|
|
|
##
|
|
|
|
# Support files
|
|
|
|
#
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :Bootable, 'qa/scenario/bootable'
|
2017-08-17 22:00:37 +05:30
|
|
|
autoload :Actable, 'qa/scenario/actable'
|
|
|
|
autoload :Template, 'qa/scenario/template'
|
2019-07-07 11:18:12 +05:30
|
|
|
autoload :SharedAttributes, 'qa/scenario/shared_attributes'
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
##
|
|
|
|
# Test scenario entrypoints.
|
|
|
|
#
|
|
|
|
module Test
|
|
|
|
autoload :Instance, 'qa/scenario/test/instance'
|
2018-11-20 20:47:30 +05:30
|
|
|
module Instance
|
|
|
|
autoload :All, 'qa/scenario/test/instance/all'
|
|
|
|
autoload :Smoke, 'qa/scenario/test/instance/smoke'
|
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
module Integration
|
2018-11-08 19:23:39 +05:30
|
|
|
autoload :Github, 'qa/scenario/test/integration/github'
|
2018-12-13 13:39:08 +05:30
|
|
|
autoload :LDAPNoTLS, 'qa/scenario/test/integration/ldap_no_tls'
|
2019-12-21 20:55:43 +05:30
|
|
|
autoload :LDAPNoServer, 'qa/scenario/test/integration/ldap_no_server'
|
2018-12-13 13:39:08 +05:30
|
|
|
autoload :LDAPTLS, 'qa/scenario/test/integration/ldap_tls'
|
|
|
|
autoload :InstanceSAML, 'qa/scenario/test/integration/instance_saml'
|
2019-03-02 22:35:43 +05:30
|
|
|
autoload :OAuth, 'qa/scenario/test/integration/oauth'
|
2018-11-08 19:23:39 +05:30
|
|
|
autoload :Kubernetes, 'qa/scenario/test/integration/kubernetes'
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :Mattermost, 'qa/scenario/test/integration/mattermost'
|
2018-11-20 20:47:30 +05:30
|
|
|
autoload :ObjectStorage, 'qa/scenario/test/integration/object_storage'
|
2020-01-01 13:55:28 +05:30
|
|
|
autoload :SMTP, 'qa/scenario/test/integration/smtp'
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
module Sanity
|
2018-11-20 20:47:30 +05:30
|
|
|
autoload :Framework, 'qa/scenario/test/sanity/framework'
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :Selectors, 'qa/scenario/test/sanity/selectors'
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# Classes describing structure of GitLab, pages, menus etc.
|
|
|
|
#
|
|
|
|
# Needed to execute click-driven-only black-box tests.
|
|
|
|
#
|
|
|
|
module Page
|
|
|
|
autoload :Base, 'qa/page/base'
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :View, 'qa/page/view'
|
|
|
|
autoload :Element, 'qa/page/element'
|
|
|
|
autoload :Validator, 'qa/page/validator'
|
2019-09-04 21:01:54 +05:30
|
|
|
autoload :Validatable, 'qa/page/validatable'
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2020-03-09 13:42:32 +05:30
|
|
|
module SubMenus
|
|
|
|
autoload :Common, 'qa/page/sub_menus/common'
|
|
|
|
end
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
module Main
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :Login, 'qa/page/main/login'
|
2018-12-05 23:21:45 +05:30
|
|
|
autoload :Menu, 'qa/page/main/menu'
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :OAuth, 'qa/page/main/oauth'
|
2018-11-18 11:00:15 +05:30
|
|
|
autoload :SignUp, 'qa/page/main/sign_up'
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
|
2018-05-09 12:01:36 +05:30
|
|
|
module Settings
|
|
|
|
autoload :Common, 'qa/page/settings/common'
|
|
|
|
end
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
module Dashboard
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :Projects, 'qa/page/dashboard/projects'
|
2017-09-10 17:25:29 +05:30
|
|
|
autoload :Groups, 'qa/page/dashboard/groups'
|
2019-12-26 22:10:19 +05:30
|
|
|
autoload :Welcome, 'qa/page/dashboard/welcome'
|
2019-07-07 11:18:12 +05:30
|
|
|
|
|
|
|
module Snippet
|
|
|
|
autoload :New, 'qa/page/dashboard/snippet/new'
|
|
|
|
autoload :Index, 'qa/page/dashboard/snippet/index'
|
|
|
|
autoload :Show, 'qa/page/dashboard/snippet/show'
|
|
|
|
end
|
2017-09-10 17:25:29 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
module Group
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :New, 'qa/page/group/new'
|
2017-09-10 17:25:29 +05:30
|
|
|
autoload :Show, 'qa/page/group/show'
|
2019-12-04 20:38:33 +05:30
|
|
|
autoload :Menu, 'qa/page/group/menu'
|
|
|
|
|
|
|
|
module SubMenus
|
|
|
|
autoload :Common, 'qa/page/group/sub_menus/common'
|
|
|
|
autoload :Members, 'qa/page/group/sub_menus/members'
|
|
|
|
end
|
|
|
|
|
|
|
|
module Settings
|
|
|
|
autoload :General, 'qa/page/group/settings/general'
|
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
|
2018-11-18 11:00:15 +05:30
|
|
|
module File
|
|
|
|
autoload :Form, 'qa/page/file/form'
|
|
|
|
autoload :Show, 'qa/page/file/show'
|
2019-09-30 21:07:59 +05:30
|
|
|
autoload :Edit, 'qa/page/file/edit'
|
2018-11-18 11:00:15 +05:30
|
|
|
|
|
|
|
module Shared
|
|
|
|
autoload :CommitMessage, 'qa/page/file/shared/commit_message'
|
2019-09-30 21:07:59 +05:30
|
|
|
autoload :CommitButton, 'qa/page/file/shared/commit_button'
|
|
|
|
autoload :Editor, 'qa/page/file/shared/editor'
|
2018-11-18 11:00:15 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
module Project
|
|
|
|
autoload :New, 'qa/page/project/new'
|
|
|
|
autoload :Show, 'qa/page/project/show'
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :Activity, 'qa/page/project/activity'
|
2018-12-05 23:21:45 +05:30
|
|
|
autoload :Menu, 'qa/page/project/menu'
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2019-03-02 22:35:43 +05:30
|
|
|
module Branches
|
|
|
|
autoload :Show, 'qa/page/project/branches/show'
|
|
|
|
end
|
|
|
|
|
2019-02-15 15:39:39 +05:30
|
|
|
module Commit
|
|
|
|
autoload :Show, 'qa/page/project/commit/show'
|
|
|
|
end
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
module Import
|
|
|
|
autoload :Github, 'qa/page/project/import/github'
|
|
|
|
end
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
module Pipeline
|
|
|
|
autoload :Index, 'qa/page/project/pipeline/index'
|
|
|
|
autoload :Show, 'qa/page/project/pipeline/show'
|
|
|
|
end
|
|
|
|
|
2018-03-27 19:54:05 +05:30
|
|
|
module Job
|
|
|
|
autoload :Show, 'qa/page/project/job/show'
|
|
|
|
end
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
module Settings
|
|
|
|
autoload :Common, 'qa/page/project/settings/common'
|
|
|
|
autoload :Advanced, 'qa/page/project/settings/advanced'
|
|
|
|
autoload :Main, 'qa/page/project/settings/main'
|
|
|
|
autoload :Repository, 'qa/page/project/settings/repository'
|
|
|
|
autoload :CICD, 'qa/page/project/settings/ci_cd'
|
2019-12-04 20:38:33 +05:30
|
|
|
autoload :AutoDevops, 'qa/page/project/settings/auto_devops'
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :DeployKeys, 'qa/page/project/settings/deploy_keys'
|
2018-12-13 13:39:08 +05:30
|
|
|
autoload :DeployTokens, 'qa/page/project/settings/deploy_tokens'
|
2018-10-15 14:42:47 +05:30
|
|
|
autoload :ProtectedBranches, 'qa/page/project/settings/protected_branches'
|
2018-12-13 13:39:08 +05:30
|
|
|
autoload :CiVariables, 'qa/page/project/settings/ci_variables'
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :Runners, 'qa/page/project/settings/runners'
|
2018-03-27 19:54:05 +05:30
|
|
|
autoload :MergeRequest, 'qa/page/project/settings/merge_request'
|
2018-12-13 13:39:08 +05:30
|
|
|
autoload :Members, 'qa/page/project/settings/members'
|
2019-02-15 15:39:39 +05:30
|
|
|
autoload :MirroringRepositories, 'qa/page/project/settings/mirroring_repositories'
|
2019-12-04 20:38:33 +05:30
|
|
|
autoload :VisibilityFeaturesPermissions, 'qa/page/project/settings/visibility_features_permissions'
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
|
2019-03-02 22:35:43 +05:30
|
|
|
module SubMenus
|
|
|
|
autoload :CiCd, 'qa/page/project/sub_menus/ci_cd'
|
|
|
|
autoload :Common, 'qa/page/project/sub_menus/common'
|
|
|
|
autoload :Issues, 'qa/page/project/sub_menus/issues'
|
|
|
|
autoload :Operations, 'qa/page/project/sub_menus/operations'
|
|
|
|
autoload :Repository, 'qa/page/project/sub_menus/repository'
|
|
|
|
autoload :Settings, 'qa/page/project/sub_menus/settings'
|
2019-09-30 21:07:59 +05:30
|
|
|
autoload :Project, 'qa/page/project/sub_menus/project'
|
2019-03-02 22:35:43 +05:30
|
|
|
end
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
module Issue
|
|
|
|
autoload :New, 'qa/page/project/issue/new'
|
|
|
|
autoload :Show, 'qa/page/project/issue/show'
|
|
|
|
autoload :Index, 'qa/page/project/issue/index'
|
|
|
|
end
|
2018-11-08 19:23:39 +05:30
|
|
|
|
2018-11-18 11:00:15 +05:30
|
|
|
module Fork
|
|
|
|
autoload :New, 'qa/page/project/fork/new'
|
|
|
|
end
|
|
|
|
|
|
|
|
module Milestone
|
|
|
|
autoload :New, 'qa/page/project/milestone/new'
|
|
|
|
autoload :Index, 'qa/page/project/milestone/index'
|
|
|
|
end
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
module Operations
|
2018-12-13 13:39:08 +05:30
|
|
|
module Environments
|
|
|
|
autoload :Index, 'qa/page/project/operations/environments/index'
|
|
|
|
autoload :Show, 'qa/page/project/operations/environments/show'
|
|
|
|
end
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
module Kubernetes
|
|
|
|
autoload :Index, 'qa/page/project/operations/kubernetes/index'
|
|
|
|
autoload :Add, 'qa/page/project/operations/kubernetes/add'
|
|
|
|
autoload :AddExisting, 'qa/page/project/operations/kubernetes/add_existing'
|
|
|
|
autoload :Show, 'qa/page/project/operations/kubernetes/show'
|
|
|
|
end
|
2020-03-09 13:42:32 +05:30
|
|
|
|
|
|
|
autoload :Metrics, 'qa/page/project/operations/metrics'
|
2018-11-08 19:23:39 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
module Wiki
|
|
|
|
autoload :Edit, 'qa/page/project/wiki/edit'
|
|
|
|
autoload :New, 'qa/page/project/wiki/new'
|
|
|
|
autoload :Show, 'qa/page/project/wiki/show'
|
2019-12-04 20:38:33 +05:30
|
|
|
autoload :GitAccess, 'qa/page/project/wiki/git_access'
|
2018-11-08 19:23:39 +05:30
|
|
|
end
|
2018-12-13 13:39:08 +05:30
|
|
|
|
|
|
|
module WebIDE
|
|
|
|
autoload :Edit, 'qa/page/project/web_ide/edit'
|
|
|
|
end
|
2018-11-08 19:23:39 +05:30
|
|
|
end
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
module Profile
|
2018-12-05 23:21:45 +05:30
|
|
|
autoload :Menu, 'qa/page/profile/menu'
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :PersonalAccessTokens, 'qa/page/profile/personal_access_tokens'
|
2018-12-05 23:21:45 +05:30
|
|
|
autoload :SSHKeys, 'qa/page/profile/ssh_keys'
|
2019-12-21 20:55:43 +05:30
|
|
|
autoload :Emails, 'qa/page/profile/emails'
|
|
|
|
autoload :Password, 'qa/page/profile/password'
|
2019-12-04 20:38:33 +05:30
|
|
|
autoload :TwoFactorAuth, 'qa/page/profile/two_factor_auth'
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
module Issuable
|
|
|
|
autoload :Sidebar, 'qa/page/issuable/sidebar'
|
|
|
|
end
|
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
module Alert
|
|
|
|
autoload :AutoDevopsAlert, 'qa/page/alert/auto_devops_alert'
|
|
|
|
end
|
|
|
|
|
2018-11-18 11:00:15 +05:30
|
|
|
module Layout
|
|
|
|
autoload :Banner, 'qa/page/layout/banner'
|
2019-07-31 22:56:46 +05:30
|
|
|
autoload :PerformanceBar, 'qa/page/layout/performance_bar'
|
2018-11-18 11:00:15 +05:30
|
|
|
end
|
|
|
|
|
2018-12-13 13:39:08 +05:30
|
|
|
module Label
|
|
|
|
autoload :New, 'qa/page/label/new'
|
|
|
|
autoload :Index, 'qa/page/label/index'
|
|
|
|
end
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
module MergeRequest
|
|
|
|
autoload :New, 'qa/page/merge_request/new'
|
2018-03-27 19:54:05 +05:30
|
|
|
autoload :Show, 'qa/page/merge_request/show'
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
module Admin
|
2018-12-05 23:21:45 +05:30
|
|
|
autoload :Menu, 'qa/page/admin/menu'
|
2020-01-01 13:55:28 +05:30
|
|
|
autoload :NewSession, 'qa/page/admin/new_session'
|
2018-12-05 23:21:45 +05:30
|
|
|
|
2018-05-09 12:01:36 +05:30
|
|
|
module Settings
|
2018-12-05 23:21:45 +05:30
|
|
|
autoload :Repository, 'qa/page/admin/settings/repository'
|
2019-03-02 22:35:43 +05:30
|
|
|
autoload :General, 'qa/page/admin/settings/general'
|
2019-07-31 22:56:46 +05:30
|
|
|
autoload :MetricsAndProfiling, 'qa/page/admin/settings/metrics_and_profiling'
|
2019-12-04 20:38:33 +05:30
|
|
|
autoload :Network, 'qa/page/admin/settings/network'
|
2018-12-05 23:21:45 +05:30
|
|
|
|
|
|
|
module Component
|
2019-12-04 20:38:33 +05:30
|
|
|
autoload :IpLimits, 'qa/page/admin/settings/component/ip_limits'
|
2019-12-26 22:10:19 +05:30
|
|
|
autoload :OutboundRequests, 'qa/page/admin/settings/component/outbound_requests'
|
2018-12-05 23:21:45 +05:30
|
|
|
autoload :RepositoryStorage, 'qa/page/admin/settings/component/repository_storage'
|
2019-03-02 22:35:43 +05:30
|
|
|
autoload :AccountAndLimit, 'qa/page/admin/settings/component/account_and_limit'
|
2019-07-31 22:56:46 +05:30
|
|
|
autoload :PerformanceBar, 'qa/page/admin/settings/component/performance_bar'
|
2018-12-05 23:21:45 +05:30
|
|
|
end
|
2018-05-09 12:01:36 +05:30
|
|
|
end
|
2019-12-21 20:55:43 +05:30
|
|
|
|
|
|
|
module Overview
|
|
|
|
module Users
|
|
|
|
autoload :Index, 'qa/page/admin/overview/users/index'
|
|
|
|
autoload :Show, 'qa/page/admin/overview/users/show'
|
|
|
|
end
|
|
|
|
end
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
module Mattermost
|
|
|
|
autoload :Main, 'qa/page/mattermost/main'
|
|
|
|
autoload :Login, 'qa/page/mattermost/login'
|
|
|
|
end
|
|
|
|
|
2019-10-12 21:52:04 +05:30
|
|
|
module Search
|
|
|
|
autoload :Results, 'qa/page/search/results'
|
|
|
|
end
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
##
|
|
|
|
# Classes describing components that are used by several pages.
|
|
|
|
#
|
|
|
|
module Component
|
2019-12-21 20:55:43 +05:30
|
|
|
autoload :CiBadgeLink, 'qa/page/component/ci_badge_link'
|
2018-11-20 20:47:30 +05:30
|
|
|
autoload :ClonePanel, 'qa/page/component/clone_panel'
|
2019-03-02 22:35:43 +05:30
|
|
|
autoload :LazyLoader, 'qa/page/component/lazy_loader'
|
2019-02-15 15:39:39 +05:30
|
|
|
autoload :LegacyClonePanel, 'qa/page/component/legacy_clone_panel'
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :Dropzone, 'qa/page/component/dropzone'
|
2018-11-20 20:47:30 +05:30
|
|
|
autoload :GroupsFilter, 'qa/page/component/groups_filter'
|
2018-11-08 19:23:39 +05:30
|
|
|
autoload :Select2, 'qa/page/component/select2'
|
2018-12-13 13:39:08 +05:30
|
|
|
autoload :DropdownFilter, 'qa/page/component/dropdown_filter'
|
|
|
|
autoload :UsersSelect, 'qa/page/component/users_select'
|
2019-02-15 15:39:39 +05:30
|
|
|
autoload :Note, 'qa/page/component/note'
|
2019-09-30 21:07:59 +05:30
|
|
|
autoload :ConfirmModal, 'qa/page/component/confirm_modal'
|
2018-12-13 13:39:08 +05:30
|
|
|
|
2018-12-05 23:21:45 +05:30
|
|
|
module Issuable
|
|
|
|
autoload :Common, 'qa/page/component/issuable/common'
|
|
|
|
end
|
2019-12-04 20:38:33 +05:30
|
|
|
|
|
|
|
module WebIDE
|
|
|
|
autoload :Alert, 'qa/page/component/web_ide/alert'
|
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# Classes describing operations on Git repositories.
|
|
|
|
#
|
|
|
|
module Git
|
|
|
|
autoload :Repository, 'qa/git/repository'
|
2018-03-27 19:54:05 +05:30
|
|
|
autoload :Location, 'qa/git/location'
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
##
|
|
|
|
# Classes describing services being part of GitLab and how we can interact
|
|
|
|
# with these services, like through the shell.
|
|
|
|
#
|
|
|
|
module Service
|
|
|
|
autoload :Shellout, 'qa/service/shellout'
|
2018-11-08 19:23:39 +05:30
|
|
|
autoload :KubernetesCluster, 'qa/service/kubernetes_cluster'
|
2018-03-17 18:26:18 +05:30
|
|
|
autoload :Omnibus, 'qa/service/omnibus'
|
2019-12-04 20:38:33 +05:30
|
|
|
|
|
|
|
module ClusterProvider
|
|
|
|
autoload :Base, 'qa/service/cluster_provider/base'
|
|
|
|
autoload :Gcloud, 'qa/service/cluster_provider/gcloud'
|
|
|
|
autoload :Minikube, 'qa/service/cluster_provider/minikube'
|
|
|
|
autoload :K3d, 'qa/service/cluster_provider/k3d'
|
|
|
|
end
|
2019-12-21 20:55:43 +05:30
|
|
|
|
|
|
|
module DockerRun
|
|
|
|
autoload :Base, 'qa/service/docker_run/base'
|
2019-12-26 22:10:19 +05:30
|
|
|
autoload :Jenkins, 'qa/service/docker_run/jenkins'
|
2019-12-21 20:55:43 +05:30
|
|
|
autoload :LDAP, 'qa/service/docker_run/ldap'
|
2019-12-26 22:10:19 +05:30
|
|
|
autoload :Maven, 'qa/service/docker_run/maven'
|
2019-12-21 20:55:43 +05:30
|
|
|
autoload :NodeJs, 'qa/service/docker_run/node_js'
|
|
|
|
autoload :GitlabRunner, 'qa/service/docker_run/gitlab_runner'
|
2020-01-01 13:55:28 +05:30
|
|
|
autoload :MailHog, 'qa/service/docker_run/mail_hog'
|
2020-03-09 13:42:32 +05:30
|
|
|
autoload :SamlIdp, 'qa/service/docker_run/saml_idp'
|
2019-12-21 20:55:43 +05:30
|
|
|
end
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
##
|
|
|
|
# Classes that make it possible to execute features tests.
|
|
|
|
#
|
|
|
|
module Specs
|
|
|
|
autoload :Config, 'qa/specs/config'
|
|
|
|
autoload :Runner, 'qa/specs/runner'
|
2019-09-30 21:07:59 +05:30
|
|
|
autoload :ParallelRunner, 'qa/specs/parallel_runner'
|
2019-12-26 22:10:19 +05:30
|
|
|
autoload :LoopRunner, 'qa/specs/loop_runner'
|
2019-07-07 11:18:12 +05:30
|
|
|
|
|
|
|
module Helpers
|
|
|
|
autoload :Quarantine, 'qa/specs/helpers/quarantine'
|
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
2018-12-13 13:39:08 +05:30
|
|
|
|
|
|
|
##
|
|
|
|
# Classes that describe the structure of vendor/third party application pages
|
|
|
|
#
|
|
|
|
module Vendor
|
|
|
|
module SAMLIdp
|
|
|
|
module Page
|
|
|
|
autoload :Base, 'qa/vendor/saml_idp/page/base'
|
|
|
|
autoload :Login, 'qa/vendor/saml_idp/page/login'
|
|
|
|
end
|
|
|
|
end
|
2019-03-02 22:35:43 +05:30
|
|
|
|
2019-12-26 22:10:19 +05:30
|
|
|
module Jenkins
|
|
|
|
module Page
|
|
|
|
autoload :Base, 'qa/vendor/jenkins/page/base'
|
|
|
|
autoload :Login, 'qa/vendor/jenkins/page/login'
|
|
|
|
autoload :Configure, 'qa/vendor/jenkins/page/configure'
|
|
|
|
autoload :NewCredentials, 'qa/vendor/jenkins/page/new_credentials'
|
|
|
|
autoload :NewJob, 'qa/vendor/jenkins/page/new_job'
|
2020-03-09 13:42:32 +05:30
|
|
|
autoload :Job, 'qa/vendor/jenkins/page/job'
|
2019-12-26 22:10:19 +05:30
|
|
|
autoload :ConfigureJob, 'qa/vendor/jenkins/page/configure_job'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-02 22:35:43 +05:30
|
|
|
module Github
|
|
|
|
module Page
|
|
|
|
autoload :Base, 'qa/vendor/github/page/base'
|
|
|
|
autoload :Login, 'qa/vendor/github/page/login'
|
|
|
|
end
|
|
|
|
end
|
2019-12-21 20:55:43 +05:30
|
|
|
|
|
|
|
module OnePassword
|
|
|
|
autoload :CLI, 'qa/vendor/one_password/cli'
|
|
|
|
end
|
2018-12-13 13:39:08 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
# Classes that provide support to other parts of the framework.
|
|
|
|
#
|
|
|
|
module Support
|
|
|
|
module Page
|
|
|
|
autoload :Logging, 'qa/support/page/logging'
|
|
|
|
end
|
2019-02-15 15:39:39 +05:30
|
|
|
autoload :Api, 'qa/support/api'
|
2019-12-21 20:55:43 +05:30
|
|
|
autoload :Dates, 'qa/support/dates'
|
2020-03-09 13:42:32 +05:30
|
|
|
autoload :Repeater, 'qa/support/repeater'
|
2019-07-07 11:18:12 +05:30
|
|
|
autoload :Retrier, 'qa/support/retrier'
|
2020-03-09 13:42:32 +05:30
|
|
|
autoload :Waiter, 'qa/support/waiter'
|
|
|
|
autoload :WaitForRequests, 'qa/support/wait_for_requests'
|
2018-12-13 13:39:08 +05:30
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
QA::Runtime::Release.extend_autoloads!
|