Class: Gitlab::QA::Scenario::Test::Omnibus::UpdateFromPrevious

Inherits:
Gitlab::QA::Scenario::Template show all
Defined in:
lib/gitlab/qa/scenario/test/omnibus/update_from_previous.rb

Instance Method Summary collapse

Methods inherited from Gitlab::QA::Scenario::Template

perform

Instance Method Details

#perform(release, current_version, semver_component, *rspec_args) ⇒ void

This method returns an undefined value.

Test update from N - 1 (major|minor|patch) version to current release Run smoke test suite on previous release to populate some data in database before update

perform(gitlab-ee:dev-tag, 15.3.0-pre, major)

> will perform upgrades 14.9.5 -> 15.0.5 -> gitlab-ee:dev-tag

Parameters:

  • release (String)

    current release docker image

  • current_version (String)

    current gitlab version associated with docker image

  • semver_component (String)

    semver component for N - 1 version detection, major|minor|patch

  • *rspec_args (Array)

    rspec arguments



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/gitlab/qa/scenario/test/omnibus/update_from_previous.rb', line 23

def perform(release, current_version, semver_component, *rspec_args)
  @current_release = QA::Release.new(release)
  @upgrade_path = Support::GitlabUpgradePath.new(
    current_version,
    semver_component,
    @current_release.edition
  ).fetch

  upgrade_info = "#{[*upgrade_path, current_release].join(' => ')} (#{current_version})".bright
  Runtime::Logger.info("Performing gitlab update: #{upgrade_info}")

  update(rspec_args)
end