Sha256: 0edf19fa0f4c8cc60cfac803d8293458a65ca011dea26fce19f45372d8f087c7

Contents?: true

Size: 1.76 KB

Versions: 13

Compression:

Stored size: 1.76 KB

Contents

require 'yaml'

module Gitlab
  module QA
    module Scenario
      module Test
        module Integration
          class ObjectStorage < Scenario::Template
            # rubocop:disable Metrics/AbcSize
            def perform(release)
              Component::Gitlab.perform do |gitlab|
                gitlab.release = release
                gitlab.name = 'gitlab-object-storage'
                gitlab.network = 'test'

                Component::Minio.perform do |minio|
                  minio.network = 'test'
                  minio.add_bucket('upload-bucket')

                  gitlab.omnibus_config = <<~OMNIBUS
                    gitlab_rails['uploads_object_store_enabled'] = true;
                    gitlab_rails['uploads_object_store_remote_directory'] = 'upload-bucket';
                    gitlab_rails['uploads_object_store_background_upload'] = false;
                    gitlab_rails['uploads_object_store_direct_upload'] = true;
                    gitlab_rails['uploads_object_store_proxy_download'] = true;
                    gitlab_rails['uploads_object_store_connection'] = #{minio.to_config};
                  OMNIBUS

                  minio.instance do
                    gitlab.instance do
                      puts 'Running object store specs!'

                      Component::Specs.perform do |specs|
                        specs.suite = 'Test::Integration::ObjectStorage'
                        specs.release = gitlab.release
                        specs.network = gitlab.network
                        specs.args = [gitlab.address]
                      end
                    end
                  end
                end
              end
            end
            # rubocop:enable Metrics/AbcSize
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gitlab-qa-2.12.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-2.11.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-2.10.1 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-2.10.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-2.9.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-2.8.1 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-2.8.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-2.7.3 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-2.7.2 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-2.7.1 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-2.7.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-2.6.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-2.5.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb