2017-02-20 07:59:11 -05:00
|
|
|
$: << File.expand_path(File.dirname(__FILE__))
|
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'
|
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'
|
|
|
|
autoload :Project, 'qa/factory/resource/project'
|
|
|
|
end
|
|
|
|
|
|
|
|
module Repository
|
|
|
|
autoload :Push, 'qa/factory/repository/push'
|
|
|
|
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'
|
2017-10-11 10:19:24 -04:00
|
|
|
autoload :Entrypoint, 'qa/scenario/entrypoint'
|
2017-02-20 06:45:04 -05:00
|
|
|
autoload :Template, 'qa/scenario/template'
|
|
|
|
|
|
|
|
##
|
|
|
|
# Test scenario entrypoints.
|
|
|
|
#
|
|
|
|
module Test
|
|
|
|
autoload :Instance, 'qa/scenario/test/instance'
|
2017-10-11 10:19:24 -04:00
|
|
|
|
|
|
|
module Integration
|
|
|
|
autoload :Mattermost, 'qa/scenario/test/integration/mattermost'
|
|
|
|
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'
|
|
|
|
|
|
|
|
module Main
|
2017-11-08 13:10:47 -05:00
|
|
|
autoload :Login, 'qa/page/main/login'
|
2017-02-20 06:45:04 -05:00
|
|
|
autoload :Menu, 'qa/page/main/menu'
|
2017-11-20 07:21:56 -05:00
|
|
|
autoload :OAuth, 'qa/page/main/oauth'
|
2017-07-21 06:10:54 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
module Project
|
|
|
|
autoload :New, 'qa/page/project/new'
|
|
|
|
autoload :Show, 'qa/page/project/show'
|
|
|
|
end
|
|
|
|
|
|
|
|
module Admin
|
|
|
|
autoload :Menu, 'qa/page/admin/menu'
|
2017-11-20 07:21:56 -05:00
|
|
|
autoload :Settings, 'qa/page/admin/settings'
|
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
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# Classes describing operations on Git repositories.
|
|
|
|
#
|
|
|
|
module Git
|
|
|
|
autoload :Repository, 'qa/git/repository'
|
|
|
|
end
|
|
|
|
|
2017-11-20 07:21:56 -05:00
|
|
|
##
|
|
|
|
# Classes describing shell interaction with GitLab
|
|
|
|
#
|
|
|
|
module Shell
|
|
|
|
autoload :Omnibus, 'qa/shell/omnibus'
|
|
|
|
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
|
|
|
|
end
|
2017-03-09 06:18:55 -05:00
|
|
|
|
2017-03-13 08:54:33 -04:00
|
|
|
QA::Runtime::Release.extend_autoloads!
|