2018-09-03 12:04:40 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-02-20 07:59:11 -05:00
|
|
|
$: << File.expand_path(File.dirname(__FILE__))
|
2017-02-20 06:45:04 -05:00
|
|
|
|
2018-07-11 13:00:36 -04:00
|
|
|
Encoding.default_external = 'UTF-8'
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
module QA
|
|
|
|
##
|
|
|
|
# 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'
|
|
|
|
autoload :Fixtures, 'qa/runtime/fixtures'
|
2018-06-06 13:43:50 -04:00
|
|
|
|
|
|
|
module API
|
|
|
|
autoload :Client, 'qa/runtime/api/client'
|
|
|
|
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
|
|
|
|
#
|
|
|
|
module Factory
|
|
|
|
autoload :Base, 'qa/factory/base'
|
2017-12-21 04:38:06 -05:00
|
|
|
autoload :Dependency, 'qa/factory/dependency'
|
|
|
|
autoload :Product, 'qa/factory/product'
|
2017-12-13 09:21:28 -05:00
|
|
|
|
|
|
|
module Resource
|
|
|
|
autoload :Sandbox, 'qa/factory/resource/sandbox'
|
|
|
|
autoload :Group, 'qa/factory/resource/group'
|
2018-01-30 08:06:13 -05:00
|
|
|
autoload :Issue, 'qa/factory/resource/issue'
|
2017-12-13 09:21:28 -05:00
|
|
|
autoload :Project, 'qa/factory/resource/project'
|
2017-12-15 11:59:35 -05:00
|
|
|
autoload :MergeRequest, 'qa/factory/resource/merge_request'
|
2018-06-18 11:05:42 -04:00
|
|
|
autoload :ProjectImportedFromGithub, 'qa/factory/resource/project_imported_from_github'
|
2018-07-12 07:59:40 -04:00
|
|
|
autoload :MergeRequestFromFork, 'qa/factory/resource/merge_request_from_fork'
|
2017-12-29 03:35:54 -05:00
|
|
|
autoload :DeployKey, 'qa/factory/resource/deploy_key'
|
2018-10-08 18:31:57 -04:00
|
|
|
autoload :DeployToken, 'qa/factory/resource/deploy_token'
|
2018-04-10 23:18:03 -04:00
|
|
|
autoload :Branch, 'qa/factory/resource/branch'
|
2018-01-22 05:22:44 -05:00
|
|
|
autoload :SecretVariable, 'qa/factory/resource/secret_variable'
|
2018-01-22 08:03:03 -05:00
|
|
|
autoload :Runner, 'qa/factory/resource/runner'
|
2018-01-23 05:23:23 -05:00
|
|
|
autoload :PersonalAccessToken, 'qa/factory/resource/personal_access_token'
|
2018-05-18 11:33:57 -04:00
|
|
|
autoload :KubernetesCluster, 'qa/factory/resource/kubernetes_cluster'
|
2018-07-12 07:59:40 -04:00
|
|
|
autoload :User, 'qa/factory/resource/user'
|
2018-07-11 10:59:00 -04:00
|
|
|
autoload :ProjectMilestone, 'qa/factory/resource/project_milestone'
|
2018-06-20 13:22:05 -04:00
|
|
|
autoload :Wiki, 'qa/factory/resource/wiki'
|
2018-07-17 09:34:55 -04:00
|
|
|
autoload :File, 'qa/factory/resource/file'
|
2018-07-12 07:59:40 -04:00
|
|
|
autoload :Fork, 'qa/factory/resource/fork'
|
2018-06-11 18:58:06 -04:00
|
|
|
autoload :SSHKey, 'qa/factory/resource/ssh_key'
|
2017-12-13 09:21:28 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
module Repository
|
|
|
|
autoload :Push, 'qa/factory/repository/push'
|
2018-06-20 13:22:05 -04:00
|
|
|
autoload :ProjectPush, 'qa/factory/repository/project_push'
|
|
|
|
autoload :WikiPush, 'qa/factory/repository/wiki_push'
|
2017-12-13 09:21:28 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
module Settings
|
|
|
|
autoload :HashedStorage, 'qa/factory/settings/hashed_storage'
|
|
|
|
end
|
|
|
|
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'
|
|
|
|
|
|
|
|
##
|
|
|
|
# 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'
|
|
|
|
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-02-06 19:27:37 -05:00
|
|
|
autoload :LDAP, 'qa/scenario/test/integration/ldap'
|
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'
|
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'
|
2018-01-09 05:28:14 -05:00
|
|
|
autoload :Validator, 'qa/page/validator'
|
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'
|
2018-07-12 07:59:40 -04:00
|
|
|
autoload :SignUp, 'qa/page/main/sign_up'
|
2017-07-21 06:10:54 -04:00
|
|
|
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'
|
|
|
|
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'
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
|
|
|
|
2018-07-17 09:34:55 -04: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 06:45:04 -05:00
|
|
|
module Project
|
|
|
|
autoload :New, 'qa/page/project/new'
|
|
|
|
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'
|
2017-12-21 14:04:25 -05:00
|
|
|
|
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'
|
|
|
|
end
|
|
|
|
|
2018-02-01 11:35:33 -05:00
|
|
|
module Job
|
|
|
|
autoload :Show, 'qa/page/project/job/show'
|
|
|
|
end
|
|
|
|
|
2017-12-21 14:04:25 -05:00
|
|
|
module Settings
|
2017-12-29 09:40:47 -05:00
|
|
|
autoload :Common, 'qa/page/project/settings/common'
|
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'
|
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-01-22 05:22:44 -05:00
|
|
|
autoload :SecretVariables, 'qa/page/project/settings/secret_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-09-13 17:51:34 -04:00
|
|
|
autoload :Members, 'qa/page/project/settings/members'
|
2017-12-21 14:04:25 -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'
|
|
|
|
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
|
|
|
|
end
|
2018-06-20 13:22:05 -04: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 15:15:35 -04:00
|
|
|
|
|
|
|
module WebIDE
|
|
|
|
autoload :Edit, 'qa/page/project/web_ide/edit'
|
|
|
|
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'
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
|
|
|
|
2018-06-20 09:20:58 -04:00
|
|
|
module Issuable
|
2018-06-18 11:05:42 -04:00
|
|
|
autoload :Sidebar, 'qa/page/issuable/sidebar'
|
2018-06-20 09:20:58 -04:00
|
|
|
end
|
|
|
|
|
2018-07-12 07:59:40 -04:00
|
|
|
module Layout
|
|
|
|
autoload :Banner, 'qa/page/layout/banner'
|
|
|
|
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'
|
|
|
|
|
2018-03-30 04:26:04 -04:00
|
|
|
module Settings
|
2018-10-02 05:45:48 -04:00
|
|
|
autoload :Repository, 'qa/page/admin/settings/repository'
|
|
|
|
|
|
|
|
module Component
|
|
|
|
autoload :RepositoryStorage, 'qa/page/admin/settings/component/repository_storage'
|
|
|
|
end
|
2018-03-30 04:26:04 -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
|
|
|
|
|
|
|
##
|
|
|
|
# Classes describing components that are used by several pages.
|
|
|
|
#
|
|
|
|
module Component
|
2018-09-03 12:04:40 -04:00
|
|
|
autoload :ClonePanel, 'qa/page/component/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'
|
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'
|
|
|
|
end
|
2018-01-30 12:18:48 -05:00
|
|
|
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'
|
|
|
|
autoload :Runner, 'qa/service/runner'
|
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'
|
|
|
|
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
|
|
|
|
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!
|