Comment 11 for bug 1990907

Revision history for this message
Renan Rodrigo (renanrodrigo) wrote :

Integration test results after fixing this bug:

Loading config defaults from "./tox.ini"
Using defaults:
          color True
  show_snippets True
   show_skipped False
        dry_run False
    show_source True
   show_timings True
 stdout_capture False
 stderr_capture False
    log_capture False
 logging_format %(asctime)s:%(levelname)s:%(name)s:%(message)s
  logging_level info
  steps_catalog False
        summary True
          junit True
          stage None
       userdata {}
 default_format pretty
   default_tags
scenario_outline_annotation_schema {name} -- @{row.id} {examples.name}
more_formatters {}
Using default path "./features"
Trying base directory: /home/renan/work/ubuntu-advantage-client/features
--- job suffix: None
Config options:
  image_clean = True
  destroy_instances = True
  ephemeral_instance = False
  snapshot_strategy = False
  cloud_credentials_path = None
  contract_token = <REDACTED>
  contract_token_staging = <REDACTED>
  contract_token_staging_expired = <REDACTED>
  machine_type = lxd.container
  private_key_file = None
  private_key_name = uaclient-integration
  reuse_image = None
  debs_path = None
  artifact_dir = None
  install_from = InstallationSource.PROPOSED
  custom_ppa = None
  custom_ppa_keyid = None
  userdata_file = None
  check_version = 27.11.2~16.04.1
  sbuild_chroot = None

Feature: Upgrade between releases when uaclient is unattached # features/ubuntu_upgrade_unattached.feature:2

  @slow @series.all @uses.config.machine_type.lxd.container @upgrade
  Scenario Outline: Unattached upgrade -- @1.1 ubuntu release # features/ubuntu_upgrade_unattached.feature:41
    Given a `xenial` machine with ubuntu-advantage-tools installed # features/steps/steps.py:61
    When I prepare the local PPAs to upgrade from `xenial` to `bionic` # features/steps/steps.py:1132
    And I run `apt-get dist-upgrade --assume-yes` with sudo # features/steps/steps.py:373
    And I reboot the machine # features/steps/steps.py:574
    And I create the file `/etc/update-manager/release-upgrades.d/ua-test.cfg` with the following # features/steps/steps.py:557
      """
      [Sources]
      AllowThirdParty=yes
      """
    And I run `sed -i 's/Prompt=lts/Prompt=lts/' /etc/update-manager/release-upgrades` with sudo # features/steps/steps.py:373
    And I run `do-release-upgrade --frontend DistUpgradeViewNonInteractive` `with sudo` and stdin `y\n` # features/steps/steps.py:300
    And I reboot the machine # features/steps/steps.py:574
    And I run `lsb_release -cs` as non-root # features/steps/steps.py:373
    Then I will see the following on stdout # features/steps/steps.py:611
      """
      bionic
      """
    And I verify that running `egrep "xenial|disabled" /etc/apt/sources.list.d/*` `as non-root` exits `2` # features/steps/steps.py:680
    And I will see the following on stdout # features/steps/steps.py:611
    When I attach `contract_token` with sudo # features/steps/steps.py:510
    And I run `pro status --all` with sudo # features/steps/steps.py:373
    Then stdout matches regexp # features/steps/steps.py:636
      """
      esm-infra +yes +enabled
      """