BigW Consortium Gitlab

qa.rb 2.69 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

      module Admin
        autoload :HashedStorage, 'qa/scenario/gitlab/admin/hashed_storage'
      end
56 57 58 59 60 61 62 63 64 65 66 67 68
    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'
69
      autoload :Login, 'qa/page/main/login'
70
      autoload :Menu, 'qa/page/main/menu'
71
      autoload :OAuth, 'qa/page/main/oauth'
72 73 74
    end

    module Dashboard
75
      autoload :Projects, 'qa/page/dashboard/projects'
76 77 78 79
      autoload :Groups, 'qa/page/dashboard/groups'
    end

    module Group
80
      autoload :New, 'qa/page/group/new'
81
      autoload :Show, 'qa/page/group/show'
82 83 84 85 86 87 88 89 90
    end

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

    module Admin
      autoload :Menu, 'qa/page/admin/menu'
91
      autoload :Settings, 'qa/page/admin/settings'
92
    end
93 94 95 96 97

    module Mattermost
      autoload :Main, 'qa/page/mattermost/main'
      autoload :Login, 'qa/page/mattermost/login'
    end
98 99 100 101 102 103 104 105 106
  end

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

107 108 109 110 111 112 113
  ##
  # Classes describing shell interaction with GitLab
  #
  module Shell
    autoload :Omnibus, 'qa/shell/omnibus'
  end

114 115 116 117 118 119 120 121
  ##
  # Classes that make it possible to execute features tests.
  #
  module Specs
    autoload :Config, 'qa/specs/config'
    autoload :Runner, 'qa/specs/runner'
  end
end
122

123
QA::Runtime::Release.extend_autoloads!