qa.rb 2.32 KB
Newer Older
1
$: << File.expand_path(File.dirname(__FILE__))
2 3 4 5 6 7

module QA
  ##
  # GitLab QA runtime classes, mostly singletons.
  #
  module Runtime
8
    autoload :Release, 'qa/runtime/release'
9 10
    autoload :User, 'qa/runtime/user'
    autoload :Namespace, 'qa/runtime/namespace'
11
    autoload :Scenario, 'qa/runtime/scenario'
12 13 14 15 16 17 18 19 20
  end

  ##
  # GitLab QA Scenarios
  #
  module Scenario
    ##
    # Support files
    #
21
    autoload :Bootable, 'qa/scenario/bootable'
22
    autoload :Actable, 'qa/scenario/actable'
23
    autoload :Entrypoint, 'qa/scenario/entrypoint'
24 25 26 27 28 29 30
    autoload :Template, 'qa/scenario/template'

    ##
    # Test scenario entrypoints.
    #
    module Test
      autoload :Instance, 'qa/scenario/test/instance'
31 32 33 34

      module Integration
        autoload :Mattermost, 'qa/scenario/test/integration/mattermost'
      end
35 36 37 38 39 40
    end

    ##
    # GitLab instance scenarios.
    #
    module Gitlab
41 42 43 44
      module Group
        autoload :Create, 'qa/scenario/gitlab/group/create'
      end

45 46 47
      module Project
        autoload :Create, 'qa/scenario/gitlab/project/create'
      end
48 49 50 51

      module Sandbox
        autoload :Prepare, 'qa/scenario/gitlab/sandbox/prepare'
      end
52 53 54 55 56 57 58 59 60 61 62 63 64
    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
      autoload :Entry, 'qa/page/main/entry'
65
      autoload :Login, 'qa/page/main/login'
66
      autoload :Menu, 'qa/page/main/menu'
67 68 69 70 71 72 73
    end

    module Dashboard
      autoload :Groups, 'qa/page/dashboard/groups'
    end

    module Group
74
      autoload :New, 'qa/page/group/new'
75
      autoload :Show, 'qa/page/group/show'
76 77 78 79 80 81 82 83 84 85
    end

    module Project
      autoload :New, 'qa/page/project/new'
      autoload :Show, 'qa/page/project/show'
    end

    module Admin
      autoload :Menu, 'qa/page/admin/menu'
    end
86 87 88 89 90

    module Mattermost
      autoload :Main, 'qa/page/mattermost/main'
      autoload :Login, 'qa/page/mattermost/login'
    end
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
  end

  ##
  # Classes describing operations on Git repositories.
  #
  module Git
    autoload :Repository, 'qa/git/repository'
  end

  ##
  # Classes that make it possible to execute features tests.
  #
  module Specs
    autoload :Config, 'qa/specs/config'
    autoload :Runner, 'qa/specs/runner'
  end
end
108

109
QA::Runtime::Release.extend_autoloads!