2018-09-03 16:04:40 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-02-20 12:59:11 +00:00
|
|
|
$: << File.expand_path(File.dirname(__FILE__))
|
2017-02-20 11:45:04 +00:00
|
|
|
|
2018-07-11 17:00:36 +00:00
|
|
|
Encoding.default_external = 'UTF-8'
|
|
|
|
|
2017-02-20 11:45:04 +00:00
|
|
|
module QA
|
|
|
|
##
|
|
|
|
# GitLab QA runtime classes, mostly singletons.
|
|
|
|
#
|
|
|
|
module Runtime
|
2017-03-09 11:18:55 +00:00
|
|
|
autoload :Release, 'qa/runtime/release'
|
2017-02-20 11:45:04 +00:00
|
|
|
autoload :User, 'qa/runtime/user'
|
|
|
|
autoload :Namespace, 'qa/runtime/namespace'
|
2017-10-25 04:55:42 +00:00
|
|
|
autoload :Scenario, 'qa/runtime/scenario'
|
2017-11-17 13:48:52 +00:00
|
|
|
autoload :Browser, 'qa/runtime/browser'
|
2018-01-08 12:44:32 +00:00
|
|
|
autoload :Env, 'qa/runtime/env'
|
2018-01-23 10:23:23 +00:00
|
|
|
autoload :Address, 'qa/runtime/address'
|
2018-09-26 19:15:35 +00:00
|
|
|
autoload :Path, 'qa/runtime/path'
|
|
|
|
autoload :Fixtures, 'qa/runtime/fixtures'
|
2018-10-02 18:31:39 +00:00
|
|
|
autoload :Logger, 'qa/runtime/logger'
|
2018-06-06 17:43:50 +00:00
|
|
|
|
|
|
|
module API
|
|
|
|
autoload :Client, 'qa/runtime/api/client'
|
|
|
|
autoload :Request, 'qa/runtime/api/request'
|
|
|
|
end
|
2018-03-09 07:54:20 +00:00
|
|
|
|
|
|
|
module Key
|
2018-03-09 11:50:21 +00:00
|
|
|
autoload :Base, 'qa/runtime/key/base'
|
2018-03-09 07:54:20 +00:00
|
|
|
autoload :RSA, 'qa/runtime/key/rsa'
|
2018-03-09 11:50:21 +00:00
|
|
|
autoload :ECDSA, 'qa/runtime/key/ecdsa'
|
|
|
|
autoload :ED25519, 'qa/runtime/key/ed25519'
|
2018-03-09 07:54:20 +00:00
|
|
|
end
|
2017-02-20 11:45:04 +00:00
|
|
|
end
|
|
|
|
|
2017-12-13 14:21:28 +00:00
|
|
|
##
|
|
|
|
# GitLab QA fabrication mechanisms
|
|
|
|
#
|
2018-11-02 09:32:28 +00:00
|
|
|
module Resource
|
|
|
|
autoload :ApiFabricator, 'qa/resource/api_fabricator'
|
|
|
|
autoload :Base, 'qa/resource/base'
|
2017-12-13 14:21:28 +00:00
|
|
|
|
2018-11-02 09:32:28 +00: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'
|
|
|
|
autoload :Branch, 'qa/resource/branch'
|
|
|
|
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'
|
|
|
|
autoload :Wiki, 'qa/resource/wiki'
|
|
|
|
autoload :File, 'qa/resource/file'
|
|
|
|
autoload :Fork, 'qa/resource/fork'
|
|
|
|
autoload :SSHKey, 'qa/resource/ssh_key'
|
2017-12-13 14:21:28 +00:00
|
|
|
|
|
|
|
module Repository
|
2018-11-02 09:32:28 +00:00
|
|
|
autoload :Push, 'qa/resource/repository/push'
|
|
|
|
autoload :ProjectPush, 'qa/resource/repository/project_push'
|
|
|
|
autoload :WikiPush, 'qa/resource/repository/wiki_push'
|
2017-12-13 14:21:28 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
module Settings
|
2018-11-02 09:32:28 +00:00
|
|
|
autoload :HashedStorage, 'qa/resource/settings/hashed_storage'
|
2017-12-13 14:21:28 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-20 11:45:04 +00:00
|
|
|
##
|
|
|
|
# GitLab QA Scenarios
|
|
|
|
#
|
|
|
|
module Scenario
|
|
|
|
##
|
|
|
|
# Support files
|
|
|
|
#
|
2017-11-09 11:53:57 +00:00
|
|
|
autoload :Bootable, 'qa/scenario/bootable'
|
2017-02-20 11:45:04 +00:00
|
|
|
autoload :Actable, 'qa/scenario/actable'
|
|
|
|
autoload :Template, 'qa/scenario/template'
|
|
|
|
|
|
|
|
##
|
|
|
|
# Test scenario entrypoints.
|
|
|
|
#
|
|
|
|
module Test
|
2018-08-22 07:33:09 +00:00
|
|
|
autoload :Instance, 'qa/scenario/test/instance'
|
2018-08-20 18:13:54 +00:00
|
|
|
module Instance
|
|
|
|
autoload :All, 'qa/scenario/test/instance/all'
|
|
|
|
autoload :Smoke, 'qa/scenario/test/instance/smoke'
|
|
|
|
end
|
2017-10-11 14:19:24 +00:00
|
|
|
|
|
|
|
module Integration
|
2018-06-18 15:05:42 +00:00
|
|
|
autoload :Github, 'qa/scenario/test/integration/github'
|
2018-10-25 08:11:19 +00:00
|
|
|
autoload :LDAPNoTLS, 'qa/scenario/test/integration/ldap_no_tls'
|
|
|
|
autoload :LDAPTLS, 'qa/scenario/test/integration/ldap_tls'
|
2018-10-10 15:02:43 +00:00
|
|
|
autoload :InstanceSAML, 'qa/scenario/test/integration/instance_saml'
|
2018-05-18 15:33:57 +00:00
|
|
|
autoload :Kubernetes, 'qa/scenario/test/integration/kubernetes'
|
2017-10-11 14:19:24 +00:00
|
|
|
autoload :Mattermost, 'qa/scenario/test/integration/mattermost'
|
2018-08-20 06:07:09 +00:00
|
|
|
autoload :ObjectStorage, 'qa/scenario/test/integration/object_storage'
|
2017-10-11 14:19:24 +00:00
|
|
|
end
|
2017-12-22 10:51:25 +00:00
|
|
|
|
|
|
|
module Sanity
|
2018-09-06 15:53:23 +00:00
|
|
|
autoload :Framework, 'qa/scenario/test/sanity/framework'
|
2017-12-22 10:51:25 +00:00
|
|
|
autoload :Selectors, 'qa/scenario/test/sanity/selectors'
|
|
|
|
end
|
2017-02-20 11:45:04 +00: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 10:54:08 +00:00
|
|
|
autoload :View, 'qa/page/view'
|
|
|
|
autoload :Element, 'qa/page/element'
|
2018-01-09 10:28:14 +00:00
|
|
|
autoload :Validator, 'qa/page/validator'
|
2017-02-20 11:45:04 +00:00
|
|
|
|
|
|
|
module Main
|
2017-11-08 18:10:47 +00:00
|
|
|
autoload :Login, 'qa/page/main/login'
|
2018-10-04 14:46:57 +00:00
|
|
|
autoload :Menu, 'qa/page/main/menu'
|
2017-11-20 12:21:56 +00:00
|
|
|
autoload :OAuth, 'qa/page/main/oauth'
|
2018-07-12 11:59:40 +00:00
|
|
|
autoload :SignUp, 'qa/page/main/sign_up'
|
2017-07-21 10:10:54 +00:00
|
|
|
end
|
|
|
|
|
2018-03-30 08:26:04 +00:00
|
|
|
module Settings
|
|
|
|
autoload :Common, 'qa/page/settings/common'
|
|
|
|
end
|
|
|
|
|
2017-07-21 10:10:54 +00:00
|
|
|
module Dashboard
|
2017-11-20 12:21:56 +00:00
|
|
|
autoload :Projects, 'qa/page/dashboard/projects'
|
2017-07-21 10:10:54 +00:00
|
|
|
autoload :Groups, 'qa/page/dashboard/groups'
|
|
|
|
end
|
|
|
|
|
|
|
|
module Group
|
2017-10-06 13:17:25 +00:00
|
|
|
autoload :New, 'qa/page/group/new'
|
2017-07-21 10:10:54 +00:00
|
|
|
autoload :Show, 'qa/page/group/show'
|
2017-02-20 11:45:04 +00:00
|
|
|
end
|
|
|
|
|
2018-07-17 13:34:55 +00:00
|
|
|
module File
|
|
|
|
autoload :Form, 'qa/page/file/form'
|
|
|
|
autoload :Show, 'qa/page/file/show'
|
|
|
|
|
|
|
|
module Shared
|
|
|
|
autoload :CommitMessage, 'qa/page/file/shared/commit_message'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-20 11:45:04 +00:00
|
|
|
module Project
|
|
|
|
autoload :New, 'qa/page/project/new'
|
|
|
|
autoload :Show, 'qa/page/project/show'
|
2018-01-12 17:43:13 +00:00
|
|
|
autoload :Activity, 'qa/page/project/activity'
|
2018-10-04 14:46:57 +00:00
|
|
|
autoload :Menu, 'qa/page/project/menu'
|
2017-12-21 19:04:25 +00:00
|
|
|
|
2019-01-16 17:55:15 +00:00
|
|
|
module Branches
|
|
|
|
autoload :Show, 'qa/page/project/branches/show'
|
|
|
|
end
|
|
|
|
|
2018-12-04 06:03:58 +00:00
|
|
|
module Commit
|
|
|
|
autoload :Show, 'qa/page/project/commit/show'
|
|
|
|
end
|
|
|
|
|
2018-06-18 15:05:42 +00:00
|
|
|
module Import
|
|
|
|
autoload :Github, 'qa/page/project/import/github'
|
|
|
|
end
|
|
|
|
|
2018-01-25 23:00:51 +00:00
|
|
|
module Pipeline
|
|
|
|
autoload :Index, 'qa/page/project/pipeline/index'
|
|
|
|
autoload :Show, 'qa/page/project/pipeline/show'
|
|
|
|
end
|
|
|
|
|
2018-02-01 16:35:33 +00:00
|
|
|
module Job
|
|
|
|
autoload :Show, 'qa/page/project/job/show'
|
|
|
|
end
|
|
|
|
|
2017-12-21 19:04:25 +00:00
|
|
|
module Settings
|
2017-12-29 14:40:47 +00:00
|
|
|
autoload :Common, 'qa/page/project/settings/common'
|
2018-01-25 23:00:51 +00:00
|
|
|
autoload :Advanced, 'qa/page/project/settings/advanced'
|
|
|
|
autoload :Main, 'qa/page/project/settings/main'
|
2017-12-21 19:04:25 +00:00
|
|
|
autoload :Repository, 'qa/page/project/settings/repository'
|
2018-01-22 13:03:03 +00:00
|
|
|
autoload :CICD, 'qa/page/project/settings/ci_cd'
|
2017-12-28 12:50:22 +00:00
|
|
|
autoload :DeployKeys, 'qa/page/project/settings/deploy_keys'
|
2018-10-08 22:31:57 +00:00
|
|
|
autoload :DeployTokens, 'qa/page/project/settings/deploy_tokens'
|
2018-04-11 03:18:03 +00:00
|
|
|
autoload :ProtectedBranches, 'qa/page/project/settings/protected_branches'
|
2018-10-30 08:49:26 +00:00
|
|
|
autoload :CiVariables, 'qa/page/project/settings/ci_variables'
|
2018-01-22 13:03:03 +00:00
|
|
|
autoload :Runners, 'qa/page/project/settings/runners'
|
2018-01-26 19:25:01 +00:00
|
|
|
autoload :MergeRequest, 'qa/page/project/settings/merge_request'
|
2018-09-13 21:51:34 +00:00
|
|
|
autoload :Members, 'qa/page/project/settings/members'
|
2018-11-14 14:50:11 +00:00
|
|
|
autoload :MirroringRepositories, 'qa/page/project/settings/mirroring_repositories'
|
2017-12-21 19:04:25 +00:00
|
|
|
end
|
2018-01-30 13:06:13 +00:00
|
|
|
|
2019-01-16 17:55:15 +00:00
|
|
|
module SubMenus
|
2019-01-18 22:48:26 +00:00
|
|
|
autoload :CiCd, 'qa/page/project/sub_menus/ci_cd'
|
2019-01-16 17:55:15 +00:00
|
|
|
autoload :Common, 'qa/page/project/sub_menus/common'
|
2019-01-18 22:48:26 +00:00
|
|
|
autoload :Issues, 'qa/page/project/sub_menus/issues'
|
|
|
|
autoload :Operations, 'qa/page/project/sub_menus/operations'
|
2019-01-16 17:55:15 +00:00
|
|
|
autoload :Repository, 'qa/page/project/sub_menus/repository'
|
2019-01-18 22:48:26 +00:00
|
|
|
autoload :Settings, 'qa/page/project/sub_menus/settings'
|
2019-01-16 17:55:15 +00:00
|
|
|
end
|
|
|
|
|
2018-01-30 13:06:13 +00:00
|
|
|
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-05-18 15:33:57 +00:00
|
|
|
|
2018-07-12 11:59:40 +00:00
|
|
|
module Fork
|
|
|
|
autoload :New, 'qa/page/project/fork/new'
|
|
|
|
end
|
|
|
|
|
2018-07-11 14:59:00 +00:00
|
|
|
module Milestone
|
|
|
|
autoload :New, 'qa/page/project/milestone/new'
|
|
|
|
autoload :Index, 'qa/page/project/milestone/index'
|
|
|
|
end
|
|
|
|
|
2018-05-18 15:33:57 +00:00
|
|
|
module Operations
|
2018-10-05 03:36:32 +00:00
|
|
|
module Environments
|
|
|
|
autoload :Index, 'qa/page/project/operations/environments/index'
|
|
|
|
autoload :Show, 'qa/page/project/operations/environments/show'
|
|
|
|
end
|
|
|
|
|
2018-05-18 15:33:57 +00: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
|
|
|
|
end
|
2018-06-20 17:22:05 +00:00
|
|
|
|
|
|
|
module Wiki
|
|
|
|
autoload :Edit, 'qa/page/project/wiki/edit'
|
|
|
|
autoload :New, 'qa/page/project/wiki/new'
|
|
|
|
autoload :Show, 'qa/page/project/wiki/show'
|
|
|
|
end
|
2018-09-26 19:15:35 +00:00
|
|
|
|
|
|
|
module WebIDE
|
|
|
|
autoload :Edit, 'qa/page/project/web_ide/edit'
|
|
|
|
end
|
2018-06-20 17:22:05 +00:00
|
|
|
end
|
|
|
|
|
2018-01-23 10:23:23 +00:00
|
|
|
module Profile
|
2018-10-04 14:46:57 +00:00
|
|
|
autoload :Menu, 'qa/page/profile/menu'
|
2018-01-23 10:23:23 +00:00
|
|
|
autoload :PersonalAccessTokens, 'qa/page/profile/personal_access_tokens'
|
2018-06-11 22:58:06 +00:00
|
|
|
autoload :SSHKeys, 'qa/page/profile/ssh_keys'
|
2017-02-20 11:45:04 +00:00
|
|
|
end
|
|
|
|
|
2018-06-20 13:20:58 +00:00
|
|
|
module Issuable
|
2018-06-18 15:05:42 +00:00
|
|
|
autoload :Sidebar, 'qa/page/issuable/sidebar'
|
2018-06-20 13:20:58 +00:00
|
|
|
end
|
|
|
|
|
2018-07-12 11:59:40 +00:00
|
|
|
module Layout
|
|
|
|
autoload :Banner, 'qa/page/layout/banner'
|
|
|
|
end
|
|
|
|
|
2018-10-17 12:17:32 +00:00
|
|
|
module Label
|
|
|
|
autoload :New, 'qa/page/label/new'
|
|
|
|
autoload :Index, 'qa/page/label/index'
|
|
|
|
end
|
|
|
|
|
2017-12-15 16:59:35 +00:00
|
|
|
module MergeRequest
|
|
|
|
autoload :New, 'qa/page/merge_request/new'
|
2018-01-26 19:25:01 +00:00
|
|
|
autoload :Show, 'qa/page/merge_request/show'
|
2017-12-15 16:59:35 +00:00
|
|
|
end
|
|
|
|
|
2017-02-20 11:45:04 +00:00
|
|
|
module Admin
|
2018-10-04 14:46:57 +00:00
|
|
|
autoload :Menu, 'qa/page/admin/menu'
|
|
|
|
|
2018-03-30 08:26:04 +00:00
|
|
|
module Settings
|
2018-10-02 09:45:48 +00:00
|
|
|
autoload :Repository, 'qa/page/admin/settings/repository'
|
|
|
|
|
|
|
|
module Component
|
|
|
|
autoload :RepositoryStorage, 'qa/page/admin/settings/component/repository_storage'
|
|
|
|
end
|
2018-03-30 08:26:04 +00:00
|
|
|
end
|
2017-02-20 11:45:04 +00:00
|
|
|
end
|
2017-10-25 04:55:42 +00:00
|
|
|
|
|
|
|
module Mattermost
|
|
|
|
autoload :Main, 'qa/page/mattermost/main'
|
|
|
|
autoload :Login, 'qa/page/mattermost/login'
|
|
|
|
end
|
2018-01-30 17:18:48 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# Classes describing components that are used by several pages.
|
|
|
|
#
|
|
|
|
module Component
|
2018-09-03 16:04:40 +00:00
|
|
|
autoload :ClonePanel, 'qa/page/component/clone_panel'
|
2018-11-26 15:59:52 +00:00
|
|
|
autoload :LegacyClonePanel, 'qa/page/component/legacy_clone_panel'
|
2018-01-30 17:18:48 +00:00
|
|
|
autoload :Dropzone, 'qa/page/component/dropzone'
|
2018-09-03 13:05:16 +00:00
|
|
|
autoload :GroupsFilter, 'qa/page/component/groups_filter'
|
2018-06-18 15:05:42 +00:00
|
|
|
autoload :Select2, 'qa/page/component/select2'
|
2018-09-26 19:15:35 +00:00
|
|
|
autoload :DropdownFilter, 'qa/page/component/dropdown_filter'
|
2018-09-13 21:51:34 +00:00
|
|
|
autoload :UsersSelect, 'qa/page/component/users_select'
|
2019-01-03 14:57:51 +00:00
|
|
|
autoload :Note, 'qa/page/component/note'
|
2018-09-26 19:15:35 +00:00
|
|
|
|
2018-10-05 09:00:55 +00:00
|
|
|
module Issuable
|
|
|
|
autoload :Common, 'qa/page/component/issuable/common'
|
|
|
|
end
|
2018-01-30 17:18:48 +00:00
|
|
|
end
|
2017-02-20 11:45:04 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# Classes describing operations on Git repositories.
|
|
|
|
#
|
|
|
|
module Git
|
|
|
|
autoload :Repository, 'qa/git/repository'
|
2018-02-13 15:35:45 +00:00
|
|
|
autoload :Location, 'qa/git/location'
|
2017-02-20 11:45:04 +00:00
|
|
|
end
|
|
|
|
|
2017-11-20 12:21:56 +00:00
|
|
|
##
|
2018-01-22 08:59:55 +00:00
|
|
|
# Classes describing services being part of GitLab and how we can interact
|
|
|
|
# with these services, like through the shell.
|
2017-11-20 12:21:56 +00:00
|
|
|
#
|
2018-01-22 08:59:55 +00:00
|
|
|
module Service
|
2018-01-22 13:03:03 +00:00
|
|
|
autoload :Shellout, 'qa/service/shellout'
|
2018-05-18 15:33:57 +00:00
|
|
|
autoload :KubernetesCluster, 'qa/service/kubernetes_cluster'
|
2018-01-22 08:59:55 +00:00
|
|
|
autoload :Omnibus, 'qa/service/omnibus'
|
|
|
|
autoload :Runner, 'qa/service/runner'
|
2017-11-20 12:21:56 +00:00
|
|
|
end
|
|
|
|
|
2017-02-20 11:45:04 +00:00
|
|
|
##
|
|
|
|
# Classes that make it possible to execute features tests.
|
|
|
|
#
|
|
|
|
module Specs
|
|
|
|
autoload :Config, 'qa/specs/config'
|
|
|
|
autoload :Runner, 'qa/specs/runner'
|
|
|
|
end
|
2018-10-10 15:02:43 +00: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
|
|
|
|
end
|
2018-10-02 18:31:39 +00: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 13:01:38 +00:00
|
|
|
autoload :Api, 'qa/support/api'
|
2018-10-02 18:31:39 +00:00
|
|
|
end
|
2017-02-20 11:45:04 +00:00
|
|
|
end
|
2017-03-09 11:18:55 +00:00
|
|
|
|
2017-03-13 12:54:33 +00:00
|
|
|
QA::Runtime::Release.extend_autoloads!
|