Sha256: 72a7395b0bbc3297829c4731165e868479566e7bf6cde6d4ca3bb3f99b56f116

Contents?: true

Size: 1.7 KB

Versions: 13

Compression:

Stored size: 1.7 KB

Contents

require 'yaml'

module Gitlab
  module QA
    module Scenario
      module Test
        module Integration
          class ObjectStorage < Scenario::Template
            def perform(release, *rspec_args)
              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, *rspec_args]
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gitlab-qa-4.14.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-4.13.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-4.12.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-4.11.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-4.10.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-4.9.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-4.8.1 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-4.8.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-4.7.1 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-4.7.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-4.6.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-4.5.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb
gitlab-qa-4.4.0 lib/gitlab/qa/scenario/test/integration/object_storage.rb