Skip to content

Commit

Permalink
tests: update expected messages in tests output
Browse files Browse the repository at this point in the history
Signed-off-by: Renan Rodrigo <[email protected]>
  • Loading branch information
renanrodrigo committed Nov 15, 2023
1 parent b93f67f commit b4a0c39
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
4 changes: 2 additions & 2 deletions features/attached_enable.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1090,9 +1090,9 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
"""
And I attach `contract_token` with sudo and options `--no-auto-enable`
And I verify that running `pro enable esm-infra` `with sudo` exits `1`
Then stderr matches regexp:
Then stdout matches regexp:
"""
Stderr: E: Unable to locate package some-package-aws
E: Unable to locate package some-package-aws
"""

@series.xenial
Expand Down
14 changes: 10 additions & 4 deletions features/enable_fips_cloud.feature
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ Feature: FIPS enablement in cloud based machines
"""
Updating <fips-name> package lists
Installing <fips-name> packages
Updating standard Ubuntu package lists
<fips-name> enabled
A reboot is required to complete install
"""
Expand Down Expand Up @@ -199,6 +200,7 @@ Feature: FIPS enablement in cloud based machines
"""
Updating <fips-name> package lists
Installing <fips-name> packages
Updating standard Ubuntu package lists
<fips-name> enabled
A reboot is required to complete install
"""
Expand Down Expand Up @@ -278,6 +280,7 @@ Feature: FIPS enablement in cloud based machines
"""
Updating <fips-name> package lists
Installing <fips-name> packages
Updating standard Ubuntu package lists
<fips-name> enabled
A reboot is required to complete install
"""
Expand Down Expand Up @@ -340,6 +343,7 @@ Feature: FIPS enablement in cloud based machines
"""
Updating <fips-name> package lists
Installing <fips-name> packages
Updating standard Ubuntu package lists
<fips-name> enabled
A reboot is required to complete install
"""
Expand Down Expand Up @@ -407,11 +411,12 @@ Feature: FIPS enablement in cloud based machines
And I run `pro enable fips --assume-yes` with sudo
Then stdout matches regexp:
"""
Updating package lists
Could not determine cloud, defaulting to generic FIPS package.
Updating FIPS package lists
Installing FIPS packages
Updating standard Ubuntu package lists
FIPS enabled
A reboot is required to complete install
A reboot is required to complete install.
"""
When I run `apt-cache policy ubuntu-fips` as non-root
Then stdout does not match regexp:
Expand Down Expand Up @@ -456,11 +461,12 @@ Feature: FIPS enablement in cloud based machines
And I run `pro enable fips --assume-yes` with sudo
Then stdout matches regexp:
"""
Updating package lists
Could not determine cloud, defaulting to generic FIPS package.
Updating FIPS package lists
Installing FIPS packages
Updating standard Ubuntu package lists
FIPS enabled
A reboot is required to complete install
A reboot is required to complete install.
"""
When I run `apt-cache policy ubuntu-fips` as non-root
Then stdout does not match regexp:
Expand Down
3 changes: 3 additions & 0 deletions features/enable_fips_pro.feature
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Feature: FIPS enablement in PRO cloud based machines
"""
Updating <fips-name> package lists
Installing <fips-name> packages
Updating standard Ubuntu package lists
<fips-name> enabled
A reboot is required to complete install
"""
Expand Down Expand Up @@ -84,6 +85,7 @@ Feature: FIPS enablement in PRO cloud based machines
"""
Updating <fips-name> package lists
Installing <fips-name> packages
Updating standard Ubuntu package lists
<fips-name> enabled
A reboot is required to complete install
"""
Expand Down Expand Up @@ -144,6 +146,7 @@ Feature: FIPS enablement in PRO cloud based machines
"""
Updating <fips-name> package lists
Installing <fips-name> packages
Updating standard Ubuntu package lists
<fips-name> enabled
A reboot is required to complete install
"""
Expand Down
1 change: 1 addition & 0 deletions features/ubuntu_upgrade.feature
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Feature: Upgrade between releases when uaclient is attached
"""
Updating <fips-name> package lists
Installing <fips-name> packages
Updating standard Ubuntu package lists
<fips-name> enabled
A reboot is required to complete install
"""
Expand Down
1 change: 1 addition & 0 deletions features/unattached_status.feature
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ Feature: Unattached status
esm-infra +yes +yes +yes +Expanded Security Maintenance for Infrastructure
fips +yes +yes +no +NIST-certified FIPS crypto packages
fips-preview +yes +yes +no +.*
fips-updates +yes +yes +no +.*
livepatch +yes +yes +yes +Canonical Livepatch service
"""

Expand Down

0 comments on commit b4a0c39

Please sign in to comment.