class Gitlab::QA::Runtime::OmnibusConfigurations::ObjectStorage

Constants

TYPES

Public Instance Methods

configuration() click to toggle source
# File lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb, line 10
          def configuration
            TYPES.each_with_object(+'') do |object_type, omnibus|
              omnibus << <<~OMNIBUS
                gitlab_rails['#{object_type}_enabled'] = true
                gitlab_rails['#{object_type}_storage_path'] = '/var/opt/gitlab/gitlab-rails/shared/#{object_type}'
                gitlab_rails['#{object_type}_object_store_enabled'] = true
                gitlab_rails['#{object_type}_object_store_remote_directory'] = '#{object_type}-bucket'
                gitlab_rails['#{object_type}_object_store_background_upload'] = false
                gitlab_rails['#{object_type}_object_store_direct_upload'] = true
                gitlab_rails['#{object_type}_object_store_proxy_download'] = true
                gitlab_rails['#{object_type}_object_store_connection'] = #{minio.to_config}
              OMNIBUS
            end
          end
exec_commands() click to toggle source
# File lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb, line 35
def exec_commands
  QA::Scenario::CLICommands.git_lfs_install_commands
end
prepare() click to toggle source
# File lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb, line 25
def prepare
  minio.network = 'test'

  TYPES.each do |bucket_name|
    minio.add_bucket("#{bucket_name}-bucket")
  end

  minio
end

Private Instance Methods

minio() click to toggle source
# File lib/gitlab/qa/runtime/omnibus_configurations/object_storage.rb, line 41
def minio
  @minio ||= Component::Minio.new
end