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
"""
Integration test results after fixing this bug:
Loading config defaults from "./tox.ini" s:%(levelname) s:%(name) s:%(message) s outline_ annotation_ schema {name} -- @{row.id} {examples.name} work/ubuntu- advantage- client/ features instance = False credentials_ path = None token_staging = <REDACTED> token_staging_ expired = <REDACTED> integration rce.PROPOSED
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)
logging_level info
steps_catalog False
summary True
junit True
stage None
userdata {}
default_format pretty
default_tags
scenario_
more_formatters {}
Using default path "./features"
Trying base directory: /home/renan/
--- job suffix: None
Config options:
image_clean = True
destroy_instances = True
ephemeral_
snapshot_strategy = False
cloud_
contract_token = <REDACTED>
contract_
contract_
machine_type = lxd.container
private_key_file = None
private_key_name = uaclient-
reuse_image = None
debs_path = None
artifact_dir = None
install_from = InstallationSou
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 ubuntu_ upgrade_ unattached. feature: 41 advantage- tools installed # features/ steps/steps. py:61 steps/steps. py:1132 steps/steps. py:373 steps/steps. py:574 manager/ release- upgrades. d/ua-test. cfg` with the following # features/ steps/steps. py:557 dParty= yes lts/Prompt= lts/' /etc/update- manager/ release- upgrades` with sudo # features/ steps/steps. py:373 NonInteractive` `with sudo` and stdin `y\n` # features/ steps/steps. py:300 steps/steps. py:574 steps/steps. py:373 steps/steps. py:611 sources. list.d/ *` `as non-root` exits `2` # features/ steps/steps. py:680 steps/steps. py:611 steps/steps. py:510 steps/steps. py:373 steps/steps. py:636
Scenario Outline: Unattached upgrade -- @1.1 ubuntu release # features/
Given a `xenial` machine with ubuntu-
When I prepare the local PPAs to upgrade from `xenial` to `bionic` # features/
And I run `apt-get dist-upgrade --assume-yes` with sudo # features/
And I reboot the machine # features/
And I create the file `/etc/update-
"""
[Sources]
AllowThir
"""
And I run `sed -i 's/Prompt=
And I run `do-release-upgrade --frontend DistUpgradeView
And I reboot the machine # features/
And I run `lsb_release -cs` as non-root # features/
Then I will see the following on stdout # features/
"""
bionic
"""
And I verify that running `egrep "xenial|disabled" /etc/apt/
And I will see the following on stdout # features/
When I attach `contract_token` with sudo # features/
And I run `pro status --all` with sudo # features/
Then stdout matches regexp # features/
"""
esm-infra +yes +enabled
"""