2018-09-03 12:04:40 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-01-27 16:08:47 -05:00
|
|
|
$: << File.expand_path(__dir__)
|
2017-02-20 06:45:04 -05:00
|
|
|
|
2018-07-11 13:00:36 -04:00
|
|
|
Encoding.default_external = 'UTF-8'
|
|
|
|
|
2019-08-01 08:41:37 -04:00
|
|
|
require_relative '../lib/gitlab'
|
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'
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
module QA
|
2019-11-12 01:06:32 -05:00
|
|
|
##
|
|
|
|
# Helper classes to represent frequently used sequences of actions
|
|
|
|
# (e.g., login)
|
|
|
|
#
|
|
|
|
module Flow
|
|
|
|
autoload :Login, 'qa/flow/login'
|
2019-12-03 04:09:09 -05:00
|
|
|
autoload :Project, 'qa/flow/project'
|
2020-02-06 19:09:12 -05:00
|
|
|
autoload :Saml, 'qa/flow/saml'
|
|
|
|
autoload :User, 'qa/flow/user'
|
2020-10-20 08:08:54 -04:00
|
|
|
autoload :MergeRequest, 'qa/flow/merge_request'
|
2020-11-05 16:08:51 -05:00
|
|
|
autoload :Pipeline, 'qa/flow/pipeline'
|
2020-11-26 04:09:53 -05:00
|
|
|
autoload :SignUp, 'qa/flow/sign_up'
|
2019-11-12 01:06:32 -05:00
|
|
|
end
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
##
|
|
|
|
# GitLab QA runtime classes, mostly singletons.
|
|
|
|
#
|
|
|
|
module Runtime
|
2017-03-09 06:18:55 -05:00
|
|
|
autoload :Release, 'qa/runtime/release'
|
2017-02-20 06:45:04 -05:00
|
|
|
autoload :User, 'qa/runtime/user'
|
|
|
|
autoload :Namespace, 'qa/runtime/namespace'
|
2017-10-25 00:55:42 -04:00
|
|
|
autoload :Scenario, 'qa/runtime/scenario'
|
2017-11-17 08:48:52 -05:00
|
|
|
autoload :Browser, 'qa/runtime/browser'
|
2018-01-08 07:44:32 -05:00
|
|
|
autoload :Env, 'qa/runtime/env'
|
2018-01-23 05:23:23 -05:00
|
|
|
autoload :Address, 'qa/runtime/address'
|
2018-09-26 15:15:35 -04:00
|
|
|
autoload :Path, 'qa/runtime/path'
|
2019-03-27 15:03:03 -04:00
|
|
|
autoload :Feature, 'qa/runtime/feature'
|
2018-09-26 15:15:35 -04:00
|
|
|
autoload :Fixtures, 'qa/runtime/fixtures'
|
2018-10-02 14:31:39 -04:00
|
|
|
autoload :Logger, 'qa/runtime/logger'
|
2019-09-19 05:06:27 -04:00
|
|
|
autoload :GPG, 'qa/runtime/gpg'
|
2019-12-03 04:09:09 -05:00
|
|
|
autoload :MailHog, 'qa/runtime/mail_hog'
|
2019-12-11 07:08:10 -05:00
|
|
|
autoload :IPAddress, 'qa/runtime/ip_address'
|
2019-12-13 10:08:02 -05:00
|
|
|
autoload :Search, 'qa/runtime/search'
|
2019-12-20 04:24:38 -05:00
|
|
|
autoload :ApplicationSettings, 'qa/runtime/application_settings'
|
2018-06-06 13:43:50 -04:00
|
|
|
|
|
|
|
module API
|
|
|
|
autoload :Client, 'qa/runtime/api/client'
|
2020-06-01 17:08:09 -04:00
|
|
|
autoload :RepositoryStorageMoves, 'qa/runtime/api/repository_storage_moves'
|
2018-06-06 13:43:50 -04:00
|
|
|
autoload :Request, 'qa/runtime/api/request'
|
|
|
|
end
|
2018-03-09 02:54:20 -05:00
|
|
|
|
|
|
|
module Key
|
2018-03-09 06:50:21 -05:00
|
|
|
autoload :Base, 'qa/runtime/key/base'
|
2018-03-09 02:54:20 -05:00
|
|
|
autoload :RSA, 'qa/runtime/key/rsa'
|
2018-03-09 06:50:21 -05:00
|
|
|
autoload :ECDSA, 'qa/runtime/key/ecdsa'
|
|
|
|
autoload :ED25519, 'qa/runtime/key/ed25519'
|
2018-03-09 02:54:20 -05:00
|
|
|
end
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
|
|
|
|
2017-12-13 09:21:28 -05:00
|
|
|
##
|
|
|
|
# GitLab QA fabrication mechanisms
|
|
|
|
#
|
2018-11-02 05:32:28 -04:00
|
|
|
module Resource
|
|
|
|
autoload :ApiFabricator, 'qa/resource/api_fabricator'
|
|
|
|
autoload :Base, 'qa/resource/base'
|
2017-12-13 09:21:28 -05:00
|
|
|
|
2018-11-02 05:32:28 -04:00
|
|
|
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-09-05 02:13:22 -04:00
|
|
|
autoload :ProtectedBranch, 'qa/resource/protected_branch'
|
2020-05-06 11:09:42 -04:00
|
|
|
autoload :Pipeline, 'qa/resource/pipeline'
|
2018-11-02 05:32:28 -04:00
|
|
|
autoload :CiVariable, 'qa/resource/ci_variable'
|
|
|
|
autoload :Runner, 'qa/resource/runner'
|
|
|
|
autoload :PersonalAccessToken, 'qa/resource/personal_access_token'
|
|
|
|
autoload :User, 'qa/resource/user'
|
|
|
|
autoload :ProjectMilestone, 'qa/resource/project_milestone'
|
2020-06-26 11:08:45 -04:00
|
|
|
autoload :GroupMilestone, 'qa/resource/group_milestone'
|
2019-09-16 08:06:26 -04:00
|
|
|
autoload :Members, 'qa/resource/members'
|
2018-11-02 05:32:28 -04:00
|
|
|
autoload :File, 'qa/resource/file'
|
|
|
|
autoload :Fork, 'qa/resource/fork'
|
|
|
|
autoload :SSHKey, 'qa/resource/ssh_key'
|
2019-02-19 15:23:34 -05:00
|
|
|
autoload :Snippet, 'qa/resource/snippet'
|
2019-09-19 05:06:27 -04:00
|
|
|
autoload :Tag, 'qa/resource/tag'
|
2019-09-10 19:20:23 -04:00
|
|
|
autoload :ProjectMember, 'qa/resource/project_member'
|
2020-05-25 08:08:23 -04:00
|
|
|
autoload :ProjectSnippet, 'qa/resource/project_snippet'
|
2019-09-19 05:06:27 -04:00
|
|
|
autoload :UserGPG, 'qa/resource/user_gpg'
|
2020-04-21 17:09:38 -04:00
|
|
|
autoload :Visibility, 'qa/resource/visibility'
|
2020-05-27 08:08:19 -04:00
|
|
|
autoload :ProjectSnippet, 'qa/resource/project_snippet'
|
2020-09-28 14:09:40 -04:00
|
|
|
autoload :Design, 'qa/resource/design'
|
2017-12-13 09:21:28 -05:00
|
|
|
|
2020-04-29 11:09:58 -04:00
|
|
|
module KubernetesCluster
|
|
|
|
autoload :Base, 'qa/resource/kubernetes_cluster/base'
|
|
|
|
autoload :ProjectCluster, 'qa/resource/kubernetes_cluster/project_cluster'
|
|
|
|
end
|
|
|
|
|
2019-02-11 04:04:59 -05:00
|
|
|
module Events
|
|
|
|
autoload :Base, 'qa/resource/events/base'
|
|
|
|
autoload :Project, 'qa/resource/events/project'
|
|
|
|
end
|
|
|
|
|
2017-12-13 09:21:28 -05:00
|
|
|
module Repository
|
2019-08-12 01:03:10 -04:00
|
|
|
autoload :Commit, 'qa/resource/repository/commit'
|
2018-11-02 05:32:28 -04:00
|
|
|
autoload :Push, 'qa/resource/repository/push'
|
|
|
|
autoload :ProjectPush, 'qa/resource/repository/project_push'
|
|
|
|
autoload :WikiPush, 'qa/resource/repository/wiki_push'
|
2017-12-13 09:21:28 -05:00
|
|
|
end
|
|
|
|
|
2020-06-03 02:08:34 -04:00
|
|
|
module Wiki
|
|
|
|
autoload :ProjectPage, 'qa/resource/wiki/project_page'
|
|
|
|
end
|
2017-12-13 09:21:28 -05:00
|
|
|
end
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
##
|
|
|
|
# GitLab QA Scenarios
|
|
|
|
#
|
|
|
|
module Scenario
|
|
|
|
##
|
|
|
|
# Support files
|
|
|
|
#
|
2017-11-09 06:53:57 -05:00
|
|
|
autoload :Bootable, 'qa/scenario/bootable'
|
2017-02-20 06:45:04 -05:00
|
|
|
autoload :Actable, 'qa/scenario/actable'
|
|
|
|
autoload :Template, 'qa/scenario/template'
|
2019-03-27 15:03:03 -04:00
|
|
|
autoload :SharedAttributes, 'qa/scenario/shared_attributes'
|
2017-02-20 06:45:04 -05:00
|
|
|
|
|
|
|
##
|
|
|
|
# Test scenario entrypoints.
|
|
|
|
#
|
|
|
|
module Test
|
2018-08-22 03:33:09 -04:00
|
|
|
autoload :Instance, 'qa/scenario/test/instance'
|
2018-08-20 14:13:54 -04:00
|
|
|
module Instance
|
|
|
|
autoload :All, 'qa/scenario/test/instance/all'
|
|
|
|
autoload :Smoke, 'qa/scenario/test/instance/smoke'
|
2020-06-14 17:08:25 -04:00
|
|
|
autoload :Airgapped, 'qa/scenario/test/instance/airgapped'
|
2018-08-20 14:13:54 -04:00
|
|
|
end
|
2017-10-11 10:19:24 -04:00
|
|
|
|
|
|
|
module Integration
|
2018-06-18 11:05:42 -04:00
|
|
|
autoload :Github, 'qa/scenario/test/integration/github'
|
2018-10-25 04:11:19 -04:00
|
|
|
autoload :LDAPNoTLS, 'qa/scenario/test/integration/ldap_no_tls'
|
2019-09-25 05:06:04 -04:00
|
|
|
autoload :LDAPNoServer, 'qa/scenario/test/integration/ldap_no_server'
|
2018-10-25 04:11:19 -04:00
|
|
|
autoload :LDAPTLS, 'qa/scenario/test/integration/ldap_tls'
|
2018-10-10 11:02:43 -04:00
|
|
|
autoload :InstanceSAML, 'qa/scenario/test/integration/instance_saml'
|
2018-05-18 11:33:57 -04:00
|
|
|
autoload :Kubernetes, 'qa/scenario/test/integration/kubernetes'
|
2017-10-11 10:19:24 -04:00
|
|
|
autoload :Mattermost, 'qa/scenario/test/integration/mattermost'
|
2018-08-20 02:07:09 -04:00
|
|
|
autoload :ObjectStorage, 'qa/scenario/test/integration/object_storage'
|
2019-12-03 04:09:09 -05:00
|
|
|
autoload :SMTP, 'qa/scenario/test/integration/smtp'
|
2017-10-11 10:19:24 -04:00
|
|
|
end
|
2017-12-22 05:51:25 -05:00
|
|
|
|
|
|
|
module Sanity
|
2018-09-06 11:53:23 -04:00
|
|
|
autoload :Framework, 'qa/scenario/test/sanity/framework'
|
2017-12-22 05:51:25 -05:00
|
|
|
autoload :Selectors, 'qa/scenario/test/sanity/selectors'
|
|
|
|
end
|
2017-02-20 06:45:04 -05:00
|
|
|
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'
|
2017-12-22 05:54:08 -05:00
|
|
|
autoload :View, 'qa/page/view'
|
|
|
|
autoload :Element, 'qa/page/element'
|
2020-05-18 17:08:42 -04:00
|
|
|
autoload :PageConcern, 'qa/page/page_concern'
|
2018-01-09 05:28:14 -05:00
|
|
|
autoload :Validator, 'qa/page/validator'
|
2019-03-01 21:03:43 -05:00
|
|
|
autoload :Validatable, 'qa/page/validatable'
|
2017-02-20 06:45:04 -05:00
|
|
|
|
2020-02-14 16:09:08 -05:00
|
|
|
module SubMenus
|
|
|
|
autoload :Common, 'qa/page/sub_menus/common'
|
|
|
|
end
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
module Main
|
2017-11-08 13:10:47 -05:00
|
|
|
autoload :Login, 'qa/page/main/login'
|
2018-10-04 10:46:57 -04:00
|
|
|
autoload :Menu, 'qa/page/main/menu'
|
2017-11-20 07:21:56 -05:00
|
|
|
autoload :OAuth, 'qa/page/main/oauth'
|
2020-07-01 11:08:45 -04:00
|
|
|
autoload :TwoFactorAuth, 'qa/page/main/two_factor_auth'
|
2020-04-09 05:10:17 -04:00
|
|
|
autoload :Terms, 'qa/page/main/terms'
|
2017-07-21 06:10:54 -04:00
|
|
|
end
|
|
|
|
|
2020-11-26 04:09:53 -05:00
|
|
|
module Registration
|
|
|
|
autoload :SignUp, 'qa/page/registration/sign_up'
|
|
|
|
autoload :Welcome, 'qa/page/registration/welcome'
|
|
|
|
end
|
|
|
|
|
2018-03-30 04:26:04 -04:00
|
|
|
module Settings
|
|
|
|
autoload :Common, 'qa/page/settings/common'
|
|
|
|
end
|
|
|
|
|
2017-07-21 06:10:54 -04:00
|
|
|
module Dashboard
|
2017-11-20 07:21:56 -05:00
|
|
|
autoload :Projects, 'qa/page/dashboard/projects'
|
2017-07-21 06:10:54 -04:00
|
|
|
autoload :Groups, 'qa/page/dashboard/groups'
|
2019-11-15 01:06:13 -05:00
|
|
|
autoload :Welcome, 'qa/page/dashboard/welcome'
|
2020-10-20 08:08:54 -04:00
|
|
|
autoload :Todos, 'qa/page/dashboard/todos'
|
2019-02-19 15:23:34 -05:00
|
|
|
|
|
|
|
module Snippet
|
|
|
|
autoload :New, 'qa/page/dashboard/snippet/new'
|
|
|
|
autoload :Index, 'qa/page/dashboard/snippet/index'
|
|
|
|
autoload :Show, 'qa/page/dashboard/snippet/show'
|
2020-05-19 02:08:03 -04:00
|
|
|
autoload :Edit, 'qa/page/dashboard/snippet/edit'
|
2019-02-19 15:23:34 -05:00
|
|
|
end
|
2017-07-21 06:10:54 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
module Group
|
2017-10-06 09:17:25 -04:00
|
|
|
autoload :New, 'qa/page/group/new'
|
2017-07-21 06:10:54 -04:00
|
|
|
autoload :Show, 'qa/page/group/show'
|
2019-09-13 09:26:31 -04:00
|
|
|
autoload :Menu, 'qa/page/group/menu'
|
2020-07-22 11:09:28 -04:00
|
|
|
autoload :Members, 'qa/page/group/members'
|
2019-09-13 09:26:31 -04:00
|
|
|
|
2020-07-10 17:09:29 -04:00
|
|
|
module Milestone
|
|
|
|
autoload :Index, 'qa/page/group/milestone/index'
|
|
|
|
autoload :New, 'qa/page/group/milestone/new'
|
|
|
|
end
|
|
|
|
|
2019-09-13 09:26:31 -04:00
|
|
|
module SubMenus
|
|
|
|
autoload :Common, 'qa/page/group/sub_menus/common'
|
|
|
|
end
|
2019-08-27 01:48:04 -04:00
|
|
|
|
|
|
|
module Settings
|
|
|
|
autoload :General, 'qa/page/group/settings/general'
|
|
|
|
end
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
|
|
|
|
2020-07-10 17:09:29 -04:00
|
|
|
module Milestone
|
|
|
|
autoload :Index, 'qa/page/milestone/index'
|
|
|
|
autoload :New, 'qa/page/milestone/new'
|
|
|
|
autoload :Show, 'qa/page/milestone/show'
|
|
|
|
end
|
|
|
|
|
2018-07-17 09:34:55 -04:00
|
|
|
module File
|
|
|
|
autoload :Form, 'qa/page/file/form'
|
|
|
|
autoload :Show, 'qa/page/file/show'
|
2019-07-02 04:05:31 -04:00
|
|
|
autoload :Edit, 'qa/page/file/edit'
|
2018-07-17 09:34:55 -04:00
|
|
|
|
|
|
|
module Shared
|
|
|
|
autoload :CommitMessage, 'qa/page/file/shared/commit_message'
|
2019-07-02 04:05:31 -04:00
|
|
|
autoload :CommitButton, 'qa/page/file/shared/commit_button'
|
|
|
|
autoload :Editor, 'qa/page/file/shared/editor'
|
2018-07-17 09:34:55 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
module Project
|
|
|
|
autoload :New, 'qa/page/project/new'
|
2020-06-16 11:08:32 -04:00
|
|
|
autoload :NewExperiment, 'qa/page/project/new_experiment'
|
2017-02-20 06:45:04 -05:00
|
|
|
autoload :Show, 'qa/page/project/show'
|
2018-01-12 12:43:13 -05:00
|
|
|
autoload :Activity, 'qa/page/project/activity'
|
2018-10-04 10:46:57 -04:00
|
|
|
autoload :Menu, 'qa/page/project/menu'
|
2020-05-28 11:08:02 -04:00
|
|
|
autoload :Members, 'qa/page/project/members'
|
2017-12-21 14:04:25 -05:00
|
|
|
|
2019-01-16 12:55:15 -05:00
|
|
|
module Branches
|
|
|
|
autoload :Show, 'qa/page/project/branches/show'
|
|
|
|
end
|
|
|
|
|
2018-12-04 01:03:58 -05:00
|
|
|
module Commit
|
|
|
|
autoload :Show, 'qa/page/project/commit/show'
|
|
|
|
end
|
|
|
|
|
2018-06-18 11:05:42 -04:00
|
|
|
module Import
|
|
|
|
autoload :Github, 'qa/page/project/import/github'
|
|
|
|
end
|
|
|
|
|
2018-01-25 18:00:51 -05:00
|
|
|
module Pipeline
|
|
|
|
autoload :Index, 'qa/page/project/pipeline/index'
|
|
|
|
autoload :Show, 'qa/page/project/pipeline/show'
|
2020-09-28 14:09:40 -04:00
|
|
|
autoload :New, 'qa/page/project/pipeline/new'
|
2018-01-25 18:00:51 -05:00
|
|
|
end
|
|
|
|
|
2020-06-22 05:08:42 -04:00
|
|
|
module Tag
|
|
|
|
autoload :Index, 'qa/page/project/tag/index'
|
|
|
|
autoload :New, 'qa/page/project/tag/new'
|
|
|
|
autoload :Show, 'qa/page/project/tag/show'
|
|
|
|
end
|
|
|
|
|
2018-02-01 11:35:33 -05:00
|
|
|
module Job
|
|
|
|
autoload :Show, 'qa/page/project/job/show'
|
|
|
|
end
|
|
|
|
|
2020-07-21 08:09:30 -04:00
|
|
|
module Packages
|
|
|
|
autoload :Index, 'qa/page/project/packages/index'
|
|
|
|
autoload :Show, 'qa/page/project/packages/show'
|
|
|
|
end
|
|
|
|
|
2017-12-21 14:04:25 -05:00
|
|
|
module Settings
|
2018-01-25 18:00:51 -05:00
|
|
|
autoload :Advanced, 'qa/page/project/settings/advanced'
|
|
|
|
autoload :Main, 'qa/page/project/settings/main'
|
2017-12-21 14:04:25 -05:00
|
|
|
autoload :Repository, 'qa/page/project/settings/repository'
|
2018-01-22 08:03:03 -05:00
|
|
|
autoload :CICD, 'qa/page/project/settings/ci_cd'
|
2020-05-21 17:08:31 -04:00
|
|
|
autoload :Integrations, 'qa/page/project/settings/integrations'
|
2020-05-08 08:09:37 -04:00
|
|
|
autoload :GeneralPipelines, 'qa/page/project/settings/general_pipelines'
|
2019-08-15 16:36:38 -04:00
|
|
|
autoload :AutoDevops, 'qa/page/project/settings/auto_devops'
|
2017-12-28 07:50:22 -05:00
|
|
|
autoload :DeployKeys, 'qa/page/project/settings/deploy_keys'
|
2018-10-08 18:31:57 -04:00
|
|
|
autoload :DeployTokens, 'qa/page/project/settings/deploy_tokens'
|
2018-04-10 23:18:03 -04:00
|
|
|
autoload :ProtectedBranches, 'qa/page/project/settings/protected_branches'
|
2018-10-30 04:49:26 -04:00
|
|
|
autoload :CiVariables, 'qa/page/project/settings/ci_variables'
|
2018-01-22 08:03:03 -05:00
|
|
|
autoload :Runners, 'qa/page/project/settings/runners'
|
2018-01-26 14:25:01 -05:00
|
|
|
autoload :MergeRequest, 'qa/page/project/settings/merge_request'
|
2018-11-14 09:50:11 -05:00
|
|
|
autoload :MirroringRepositories, 'qa/page/project/settings/mirroring_repositories'
|
2020-06-22 05:08:42 -04:00
|
|
|
autoload :ProtectedTags, 'qa/page/project/settings/protected_tags'
|
2019-09-13 09:26:31 -04:00
|
|
|
autoload :VisibilityFeaturesPermissions, 'qa/page/project/settings/visibility_features_permissions'
|
2020-05-21 17:08:31 -04:00
|
|
|
|
|
|
|
module Services
|
|
|
|
autoload :Jira, 'qa/page/project/settings/services/jira'
|
2020-11-26 10:09:30 -05:00
|
|
|
autoload :Jenkins, 'qa/page/project/settings/services/jenkins'
|
|
|
|
autoload :Prometheus, 'qa/page/project/settings/services/prometheus'
|
2020-05-21 17:08:31 -04:00
|
|
|
end
|
2020-05-08 14:09:55 -04:00
|
|
|
autoload :Operations, 'qa/page/project/settings/operations'
|
|
|
|
autoload :Incidents, 'qa/page/project/settings/incidents'
|
2020-05-13 17:08:55 -04:00
|
|
|
autoload :Integrations, 'qa/page/project/settings/integrations'
|
2017-12-21 14:04:25 -05:00
|
|
|
end
|
2018-01-30 08:06:13 -05:00
|
|
|
|
2019-01-16 12:55:15 -05:00
|
|
|
module SubMenus
|
2019-01-18 17:48:26 -05:00
|
|
|
autoload :CiCd, 'qa/page/project/sub_menus/ci_cd'
|
2019-01-16 12:55:15 -05:00
|
|
|
autoload :Common, 'qa/page/project/sub_menus/common'
|
2019-01-18 17:48:26 -05:00
|
|
|
autoload :Issues, 'qa/page/project/sub_menus/issues'
|
|
|
|
autoload :Operations, 'qa/page/project/sub_menus/operations'
|
2019-01-16 12:55:15 -05:00
|
|
|
autoload :Repository, 'qa/page/project/sub_menus/repository'
|
2019-01-18 17:48:26 -05:00
|
|
|
autoload :Settings, 'qa/page/project/sub_menus/settings'
|
2019-07-02 04:05:31 -04:00
|
|
|
autoload :Project, 'qa/page/project/sub_menus/project'
|
2020-07-21 08:09:30 -04:00
|
|
|
autoload :Packages, 'qa/page/project/sub_menus/packages'
|
2019-01-16 12:55:15 -05:00
|
|
|
end
|
|
|
|
|
2018-01-30 08:06:13 -05:00
|
|
|
module Issue
|
|
|
|
autoload :New, 'qa/page/project/issue/new'
|
|
|
|
autoload :Show, 'qa/page/project/issue/show'
|
|
|
|
autoload :Index, 'qa/page/project/issue/index'
|
2020-06-30 11:08:48 -04:00
|
|
|
autoload :JiraImport, 'qa/page/project/issue/jira_import'
|
2018-01-30 08:06:13 -05:00
|
|
|
end
|
2018-05-18 11:33:57 -04:00
|
|
|
|
2018-07-12 07:59:40 -04:00
|
|
|
module Fork
|
|
|
|
autoload :New, 'qa/page/project/fork/new'
|
|
|
|
end
|
|
|
|
|
2018-07-11 10:59:00 -04:00
|
|
|
module Milestone
|
|
|
|
autoload :New, 'qa/page/project/milestone/new'
|
|
|
|
autoload :Index, 'qa/page/project/milestone/index'
|
|
|
|
end
|
|
|
|
|
2018-05-18 11:33:57 -04:00
|
|
|
module Operations
|
2018-10-04 23:36:32 -04:00
|
|
|
module Environments
|
|
|
|
autoload :Index, 'qa/page/project/operations/environments/index'
|
|
|
|
autoload :Show, 'qa/page/project/operations/environments/show'
|
|
|
|
end
|
|
|
|
|
2018-05-18 11:33:57 -04:00
|
|
|
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-01-29 22:08:50 -05:00
|
|
|
|
2020-03-02 13:07:42 -05:00
|
|
|
module Metrics
|
|
|
|
autoload :Show, 'qa/page/project/operations/metrics/show'
|
|
|
|
end
|
2020-08-13 11:10:03 -04:00
|
|
|
|
|
|
|
module Incidents
|
|
|
|
autoload :Index, 'qa/page/project/operations/incidents/index'
|
|
|
|
end
|
2018-05-18 11:33:57 -04:00
|
|
|
end
|
2018-06-20 13:22:05 -04:00
|
|
|
|
|
|
|
module Wiki
|
|
|
|
autoload :Edit, 'qa/page/project/wiki/edit'
|
|
|
|
autoload :Show, 'qa/page/project/wiki/show'
|
2019-09-16 23:06:07 -04:00
|
|
|
autoload :GitAccess, 'qa/page/project/wiki/git_access'
|
2020-07-06 05:09:20 -04:00
|
|
|
autoload :Sidebar, 'qa/page/project/wiki/sidebar'
|
|
|
|
autoload :List, 'qa/page/project/wiki/list'
|
2018-06-20 13:22:05 -04:00
|
|
|
end
|
2018-09-26 15:15:35 -04:00
|
|
|
|
|
|
|
module WebIDE
|
|
|
|
autoload :Edit, 'qa/page/project/web_ide/edit'
|
|
|
|
end
|
2020-05-25 08:08:23 -04:00
|
|
|
|
|
|
|
module Snippet
|
|
|
|
autoload :New, 'qa/page/project/snippet/new'
|
2020-07-13 02:09:23 -04:00
|
|
|
autoload :Show, 'qa/page/project/snippet/show'
|
2020-09-28 23:09:57 -04:00
|
|
|
autoload :Index, 'qa/page/project/snippet/index'
|
2020-05-25 08:08:23 -04:00
|
|
|
end
|
2018-06-20 13:22:05 -04:00
|
|
|
end
|
|
|
|
|
2018-01-23 05:23:23 -05:00
|
|
|
module Profile
|
2018-10-04 10:46:57 -04:00
|
|
|
autoload :Menu, 'qa/page/profile/menu'
|
2018-01-23 05:23:23 -05:00
|
|
|
autoload :PersonalAccessTokens, 'qa/page/profile/personal_access_tokens'
|
2018-06-11 18:58:06 -04:00
|
|
|
autoload :SSHKeys, 'qa/page/profile/ssh_keys'
|
2019-09-23 02:06:19 -04:00
|
|
|
autoload :Emails, 'qa/page/profile/emails'
|
|
|
|
autoload :Password, 'qa/page/profile/password'
|
2019-09-13 09:26:31 -04:00
|
|
|
autoload :TwoFactorAuth, 'qa/page/profile/two_factor_auth'
|
2020-07-17 17:09:23 -04:00
|
|
|
|
|
|
|
module Accounts
|
|
|
|
autoload :Show, 'qa/page/profile/accounts/show'
|
|
|
|
end
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
|
|
|
|
2018-06-20 09:20:58 -04:00
|
|
|
module Issuable
|
2020-06-15 14:08:43 -04:00
|
|
|
autoload :New, 'qa/page/issuable/new'
|
2018-06-20 09:20:58 -04:00
|
|
|
end
|
|
|
|
|
2019-02-20 16:58:54 -05:00
|
|
|
module Alert
|
|
|
|
autoload :AutoDevopsAlert, 'qa/page/alert/auto_devops_alert'
|
|
|
|
end
|
|
|
|
|
2018-07-12 07:59:40 -04:00
|
|
|
module Layout
|
|
|
|
autoload :Banner, 'qa/page/layout/banner'
|
2020-11-05 19:09:14 -05:00
|
|
|
autoload :Flash, 'qa/page/layout/flash'
|
2019-04-15 09:04:40 -04:00
|
|
|
autoload :PerformanceBar, 'qa/page/layout/performance_bar'
|
2018-07-12 07:59:40 -04:00
|
|
|
end
|
|
|
|
|
2018-10-17 08:17:32 -04:00
|
|
|
module Label
|
|
|
|
autoload :New, 'qa/page/label/new'
|
|
|
|
autoload :Index, 'qa/page/label/index'
|
|
|
|
end
|
|
|
|
|
2017-12-15 11:59:35 -05:00
|
|
|
module MergeRequest
|
|
|
|
autoload :New, 'qa/page/merge_request/new'
|
2018-01-26 14:25:01 -05:00
|
|
|
autoload :Show, 'qa/page/merge_request/show'
|
2017-12-15 11:59:35 -05:00
|
|
|
end
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
module Admin
|
2018-10-04 10:46:57 -04:00
|
|
|
autoload :Menu, 'qa/page/admin/menu'
|
2019-11-19 19:06:22 -05:00
|
|
|
autoload :NewSession, 'qa/page/admin/new_session'
|
2018-10-04 10:46:57 -04:00
|
|
|
|
2018-03-30 04:26:04 -04:00
|
|
|
module Settings
|
2019-02-01 09:38:07 -05:00
|
|
|
autoload :General, 'qa/page/admin/settings/general'
|
2019-04-15 09:04:40 -04:00
|
|
|
autoload :MetricsAndProfiling, 'qa/page/admin/settings/metrics_and_profiling'
|
2019-08-24 02:41:47 -04:00
|
|
|
autoload :Network, 'qa/page/admin/settings/network'
|
2018-10-02 05:45:48 -04:00
|
|
|
|
|
|
|
module Component
|
2019-08-24 02:41:47 -04:00
|
|
|
autoload :IpLimits, 'qa/page/admin/settings/component/ip_limits'
|
2019-10-29 08:06:40 -04:00
|
|
|
autoload :OutboundRequests, 'qa/page/admin/settings/component/outbound_requests'
|
2019-02-01 09:38:07 -05:00
|
|
|
autoload :AccountAndLimit, 'qa/page/admin/settings/component/account_and_limit'
|
2019-04-15 09:04:40 -04:00
|
|
|
autoload :PerformanceBar, 'qa/page/admin/settings/component/performance_bar'
|
2020-11-26 04:09:53 -05:00
|
|
|
autoload :SignUpRestrictions, 'qa/page/admin/settings/component/sign_up_restrictions'
|
2018-10-02 05:45:48 -04:00
|
|
|
end
|
2018-03-30 04:26:04 -04:00
|
|
|
end
|
2019-09-23 02:06:19 -04:00
|
|
|
|
|
|
|
module Overview
|
|
|
|
module Users
|
|
|
|
autoload :Index, 'qa/page/admin/overview/users/index'
|
|
|
|
autoload :Show, 'qa/page/admin/overview/users/show'
|
|
|
|
end
|
2020-04-06 17:09:19 -04:00
|
|
|
|
|
|
|
module Groups
|
|
|
|
autoload :Index, 'qa/page/admin/overview/groups/index'
|
|
|
|
autoload :Show, 'qa/page/admin/overview/groups/show'
|
|
|
|
autoload :Edit, 'qa/page/admin/overview/groups/edit'
|
|
|
|
end
|
2019-09-23 02:06:19 -04:00
|
|
|
end
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
2017-10-25 00:55:42 -04:00
|
|
|
|
|
|
|
module Mattermost
|
|
|
|
autoload :Main, 'qa/page/mattermost/main'
|
|
|
|
autoload :Login, 'qa/page/mattermost/login'
|
|
|
|
end
|
2018-01-30 12:18:48 -05:00
|
|
|
|
2019-07-30 04:04:26 -04:00
|
|
|
module Search
|
|
|
|
autoload :Results, 'qa/page/search/results'
|
|
|
|
end
|
|
|
|
|
2018-01-30 12:18:48 -05:00
|
|
|
##
|
|
|
|
# Classes describing components that are used by several pages.
|
|
|
|
#
|
|
|
|
module Component
|
2020-03-20 17:09:17 -04:00
|
|
|
autoload :Breadcrumbs, 'qa/page/component/breadcrumbs'
|
2019-10-03 08:06:00 -04:00
|
|
|
autoload :CiBadgeLink, 'qa/page/component/ci_badge_link'
|
2018-09-03 12:04:40 -04:00
|
|
|
autoload :ClonePanel, 'qa/page/component/clone_panel'
|
2020-05-18 17:08:42 -04:00
|
|
|
autoload :DesignManagement, 'qa/page/component/design_management'
|
2019-01-29 15:56:34 -05:00
|
|
|
autoload :LazyLoader, 'qa/page/component/lazy_loader'
|
2018-11-26 10:59:52 -05:00
|
|
|
autoload :LegacyClonePanel, 'qa/page/component/legacy_clone_panel'
|
2018-01-30 12:18:48 -05:00
|
|
|
autoload :Dropzone, 'qa/page/component/dropzone'
|
2018-09-03 09:05:16 -04:00
|
|
|
autoload :GroupsFilter, 'qa/page/component/groups_filter'
|
2018-06-18 11:05:42 -04:00
|
|
|
autoload :Select2, 'qa/page/component/select2'
|
2018-09-26 15:15:35 -04:00
|
|
|
autoload :DropdownFilter, 'qa/page/component/dropdown_filter'
|
2018-09-13 17:51:34 -04:00
|
|
|
autoload :UsersSelect, 'qa/page/component/users_select'
|
2019-01-03 09:57:51 -05:00
|
|
|
autoload :Note, 'qa/page/component/note'
|
2019-07-02 04:05:31 -04:00
|
|
|
autoload :ConfirmModal, 'qa/page/component/confirm_modal'
|
2020-05-13 17:08:55 -04:00
|
|
|
autoload :CustomMetric, 'qa/page/component/custom_metric'
|
2020-05-15 11:08:04 -04:00
|
|
|
autoload :DesignManagement, 'qa/page/component/design_management'
|
2020-07-02 11:09:08 -04:00
|
|
|
autoload :ProjectSelector, 'qa/page/component/project_selector'
|
2020-07-13 02:09:23 -04:00
|
|
|
autoload :Snippet, 'qa/page/component/snippet'
|
|
|
|
autoload :NewSnippet, 'qa/page/component/new_snippet'
|
2018-09-26 15:15:35 -04:00
|
|
|
|
2018-10-05 05:00:55 -04:00
|
|
|
module Issuable
|
|
|
|
autoload :Common, 'qa/page/component/issuable/common'
|
2020-06-17 05:08:38 -04:00
|
|
|
autoload :Sidebar, 'qa/page/component/issuable/sidebar'
|
2018-10-05 05:00:55 -04:00
|
|
|
end
|
2019-08-12 01:03:10 -04:00
|
|
|
|
2020-06-03 02:08:34 -04:00
|
|
|
module IssueBoard
|
|
|
|
autoload :Show, 'qa/page/component/issue_board/show'
|
|
|
|
end
|
|
|
|
|
2019-08-12 01:03:10 -04:00
|
|
|
module WebIDE
|
|
|
|
autoload :Alert, 'qa/page/component/web_ide/alert'
|
2020-05-31 23:07:59 -04:00
|
|
|
|
|
|
|
module Modal
|
|
|
|
autoload :CreateNewFile, 'qa/page/component/web_ide/modal/create_new_file'
|
|
|
|
end
|
2019-08-12 01:03:10 -04:00
|
|
|
end
|
2020-05-07 20:09:56 -04:00
|
|
|
|
|
|
|
module Project
|
|
|
|
autoload :Templates, 'qa/page/component/project/templates'
|
|
|
|
end
|
2018-01-30 12:18:48 -05:00
|
|
|
end
|
2020-07-10 14:09:45 -04:00
|
|
|
|
|
|
|
module Modal
|
|
|
|
autoload :DeleteWiki, 'qa/page/modal/delete_wiki'
|
|
|
|
end
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# Classes describing operations on Git repositories.
|
|
|
|
#
|
|
|
|
module Git
|
|
|
|
autoload :Repository, 'qa/git/repository'
|
2018-02-13 10:35:45 -05:00
|
|
|
autoload :Location, 'qa/git/location'
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
|
|
|
|
2017-11-20 07:21:56 -05:00
|
|
|
##
|
2018-01-22 03:59:55 -05:00
|
|
|
# Classes describing services being part of GitLab and how we can interact
|
|
|
|
# with these services, like through the shell.
|
2017-11-20 07:21:56 -05:00
|
|
|
#
|
2018-01-22 03:59:55 -05:00
|
|
|
module Service
|
2018-01-22 08:03:03 -05:00
|
|
|
autoload :Shellout, 'qa/service/shellout'
|
2018-05-18 11:33:57 -04:00
|
|
|
autoload :KubernetesCluster, 'qa/service/kubernetes_cluster'
|
2018-01-22 03:59:55 -05:00
|
|
|
autoload :Omnibus, 'qa/service/omnibus'
|
2020-05-14 05:07:53 -04:00
|
|
|
autoload :PraefectManager, 'qa/service/praefect_manager'
|
2019-08-26 12:55:03 -04:00
|
|
|
|
|
|
|
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'
|
2020-03-04 16:07:54 -05:00
|
|
|
autoload :K3s, 'qa/service/cluster_provider/k3s'
|
2019-08-26 12:55:03 -04:00
|
|
|
end
|
2019-10-13 23:06:12 -04:00
|
|
|
|
|
|
|
module DockerRun
|
|
|
|
autoload :Base, 'qa/service/docker_run/base'
|
2019-10-29 08:06:40 -04:00
|
|
|
autoload :Jenkins, 'qa/service/docker_run/jenkins'
|
2019-10-13 23:06:12 -04:00
|
|
|
autoload :LDAP, 'qa/service/docker_run/ldap'
|
2019-10-23 05:06:03 -04:00
|
|
|
autoload :Maven, 'qa/service/docker_run/maven'
|
2019-10-17 02:07:30 -04:00
|
|
|
autoload :NodeJs, 'qa/service/docker_run/node_js'
|
2019-10-13 23:06:12 -04:00
|
|
|
autoload :GitlabRunner, 'qa/service/docker_run/gitlab_runner'
|
2019-12-03 04:09:09 -05:00
|
|
|
autoload :MailHog, 'qa/service/docker_run/mail_hog'
|
2020-02-06 19:09:12 -05:00
|
|
|
autoload :SamlIdp, 'qa/service/docker_run/saml_idp'
|
2020-03-04 16:07:54 -05:00
|
|
|
autoload :K3s, 'qa/service/docker_run/k3s'
|
2019-10-13 23:06:12 -04:00
|
|
|
end
|
2017-11-20 07:21:56 -05:00
|
|
|
end
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
##
|
|
|
|
# Classes that make it possible to execute features tests.
|
|
|
|
#
|
|
|
|
module Specs
|
|
|
|
autoload :Config, 'qa/specs/config'
|
|
|
|
autoload :Runner, 'qa/specs/runner'
|
2019-07-09 11:40:46 -04:00
|
|
|
autoload :ParallelRunner, 'qa/specs/parallel_runner'
|
2019-10-21 17:06:14 -04:00
|
|
|
autoload :LoopRunner, 'qa/specs/loop_runner'
|
2019-03-11 07:50:09 -04:00
|
|
|
|
|
|
|
module Helpers
|
|
|
|
autoload :Quarantine, 'qa/specs/helpers/quarantine'
|
|
|
|
end
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
2018-10-10 11:02:43 -04:00
|
|
|
|
|
|
|
##
|
|
|
|
# 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-02-01 00:48:13 -05:00
|
|
|
|
2019-10-29 08:06:40 -04:00
|
|
|
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-24 11:08:44 -04:00
|
|
|
autoload :LastJobConsole, 'qa/vendor/jenkins/page/last_job_console'
|
2019-10-29 08:06:40 -04:00
|
|
|
autoload :ConfigureJob, 'qa/vendor/jenkins/page/configure_job'
|
|
|
|
end
|
|
|
|
end
|
2020-05-21 17:08:31 -04:00
|
|
|
|
|
|
|
module Jira
|
|
|
|
autoload :JiraAPI, 'qa/vendor/jira/jira_api'
|
|
|
|
end
|
2018-10-10 11:02:43 -04:00
|
|
|
end
|
2018-10-02 14:31:39 -04:00
|
|
|
|
|
|
|
# Classes that provide support to other parts of the framework.
|
|
|
|
#
|
|
|
|
module Support
|
|
|
|
module Page
|
|
|
|
autoload :Logging, 'qa/support/page/logging'
|
|
|
|
end
|
2018-11-19 08:01:38 -05:00
|
|
|
autoload :Api, 'qa/support/api'
|
2019-10-07 11:05:59 -04:00
|
|
|
autoload :Dates, 'qa/support/dates'
|
2020-01-09 04:07:51 -05:00
|
|
|
autoload :Repeater, 'qa/support/repeater'
|
2020-10-12 17:08:56 -04:00
|
|
|
autoload :Run, 'qa/support/run'
|
2019-02-19 01:41:52 -05:00
|
|
|
autoload :Retrier, 'qa/support/retrier'
|
2020-01-09 04:07:51 -05:00
|
|
|
autoload :Waiter, 'qa/support/waiter'
|
2020-01-02 08:03:23 -05:00
|
|
|
autoload :WaitForRequests, 'qa/support/wait_for_requests'
|
2020-07-01 11:08:45 -04:00
|
|
|
autoload :OTP, 'qa/support/otp'
|
2020-10-12 17:08:56 -04:00
|
|
|
autoload :SSH, 'qa/support/ssh'
|
2018-10-02 14:31:39 -04:00
|
|
|
end
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
2017-03-09 06:18:55 -05:00
|
|
|
|
2017-03-13 08:54:33 -04:00
|
|
|
QA::Runtime::Release.extend_autoloads!
|