Skip to content

Commit

Permalink
tests: fix status tests for new column width
Browse files Browse the repository at this point in the history
Since we have updated the column width of status
to address the portuguese translations, we must
also update the test to not be affected by this change
  • Loading branch information
lucasmoura committed Oct 30, 2023
1 parent f9a2be6 commit 1974fc0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion features/attach_validtoken.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Feature: Command behaviour when attaching a machine to an Ubuntu Pro
When I run `pro status --all` as non-root
Then stdout matches regexp:
"""
SERVICE +ENTITLED STATUS DESCRIPTION
SERVICE +ENTITLED +STATUS +DESCRIPTION
anbox-cloud +yes +n/a +.*
cc-eal +yes +n/a +Common Criteria EAL2 Provisioning Packages
cis +yes +n/a +Security compliance and audit tools
Expand Down
4 changes: 2 additions & 2 deletions features/attached_commands.feature
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ Feature: Command behaviour when attached to an Ubuntu Pro subscription
And I run `pro status --all` with sudo
Then stdout matches regexp:
"""
SERVICE +ENTITLED STATUS DESCRIPTION
SERVICE +ENTITLED +STATUS +DESCRIPTION
anbox-cloud +.*
cc-eal +no
"""
Expand All @@ -358,7 +358,7 @@ Feature: Command behaviour when attached to an Ubuntu Pro subscription
When I run `pro status --all` as non-root
Then stdout matches regexp:
"""
SERVICE +ENTITLED STATUS DESCRIPTION
SERVICE +ENTITLED +STATUS +DESCRIPTION
anbox-cloud +.*
cc-eal +no
"""
Expand Down
34 changes: 17 additions & 17 deletions features/attached_enable.feature
Original file line number Diff line number Diff line change
Expand Up @@ -905,21 +905,21 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
And I run `pro status --all` as non-root
Then stdout matches regexp
"""
ros +yes disabled Security Updates for the Robot Operating System
ros +yes +disabled +Security Updates for the Robot Operating System
"""
When I run `pro enable ros --assume-yes` with sudo
And I run `pro status --all` as non-root
Then stdout matches regexp
"""
ros +yes enabled Security Updates for the Robot Operating System
ros +yes +enabled +Security Updates for the Robot Operating System
"""
And stdout matches regexp
"""
esm-apps +yes enabled Expanded Security Maintenance for Applications
esm-apps +yes +enabled +Expanded Security Maintenance for Applications
"""
And stdout matches regexp
"""
esm-infra +yes enabled Expanded Security Maintenance for Infrastructure
esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure
"""
When I verify that running `pro disable esm-apps` `with sudo` and stdin `N` exits `1`
Then stdout matches regexp
Expand All @@ -937,11 +937,11 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
When I run `pro status --all` as non-root
Then stdout matches regexp
"""
ros +yes disabled Security Updates for the Robot Operating System
ros +yes +disabled +Security Updates for the Robot Operating System
"""
And stdout matches regexp
"""
esm-apps +yes disabled Expanded Security Maintenance for Applications
esm-apps +yes +disabled +Expanded Security Maintenance for Applications
"""
When I verify that running `pro enable ros` `with sudo` and stdin `N` exits `1`
Then stdout matches regexp
Expand All @@ -962,15 +962,15 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
When I run `pro status --all` as non-root
Then stdout matches regexp
"""
ros +yes enabled Security Updates for the Robot Operating System
ros +yes +enabled +Security Updates for the Robot Operating System
"""
And stdout matches regexp
"""
esm-apps +yes enabled Expanded Security Maintenance for Applications
esm-apps +yes +enabled +Expanded Security Maintenance for Applications
"""
And stdout matches regexp
"""
esm-infra +yes enabled Expanded Security Maintenance for Infrastructure
esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure
"""
When I run `apt-cache policy` as non-root
Then apt-cache policy for the following url has priority `500`
Expand All @@ -984,7 +984,7 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
And I run `pro status --all` as non-root
Then stdout matches regexp
"""
ros-updates +yes enabled All Updates for the Robot Operating System
ros-updates +yes +enabled +All Updates for the Robot Operating System
"""
When I run `apt-cache policy` as non-root
Then apt-cache policy for the following url has priority `500`
Expand Down Expand Up @@ -1013,11 +1013,11 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
When I run `pro status --all` as non-root
Then stdout matches regexp
"""
ros-updates +yes enabled All Updates for the Robot Operating System
ros-updates +yes +enabled +All Updates for the Robot Operating System
"""
And stdout matches regexp
"""
ros +yes enabled Security Updates for the Robot Operating System
ros +yes +enabled +Security Updates for the Robot Operating System
"""
When I run `pro disable ros-updates --assume-yes` with sudo
When I run `pro disable ros --assume-yes` with sudo
Expand All @@ -1027,19 +1027,19 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
When I run `pro status --all` as non-root
Then stdout matches regexp
"""
ros-updates +yes enabled All Updates for the Robot Operating System
ros-updates +yes +enabled +All Updates for the Robot Operating System
"""
And stdout matches regexp
"""
ros +yes enabled Security Updates for the Robot Operating System
ros +yes +enabled +Security Updates for the Robot Operating System
"""
And stdout matches regexp
"""
esm-apps +yes enabled Expanded Security Maintenance for Applications
esm-apps +yes +enabled +Expanded Security Maintenance for Applications
"""
And stdout matches regexp
"""
esm-infra +yes enabled Expanded Security Maintenance for Infrastructure
esm-infra +yes +enabled +Expanded Security Maintenance for Infrastructure
"""
When I run `pro detach` `with sudo` and stdin `y`
Then stdout matches regexp:
Expand Down Expand Up @@ -1127,7 +1127,7 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription
And I run `pro status --all` as non-root
Then stdout matches regexp
"""
esm-apps +yes enabled Expanded Security Maintenance for Applications
esm-apps +yes +enabled +Expanded Security Maintenance for Applications
"""
And I verify that running `apt update` `with sudo` exits `0`
When I run `apt-cache policy` as non-root
Expand Down
18 changes: 9 additions & 9 deletions features/ubuntu_pro.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
When I run `pro status --all` with sudo
Then stdout matches regexp:
"""
SERVICE +ENTITLED STATUS DESCRIPTION
SERVICE +ENTITLED +STATUS +DESCRIPTION
anbox-cloud +(yes|no) .*
cc-eal +yes +<cc-eal-s> +Common Criteria EAL2 Provisioning Packages
"""
Expand Down Expand Up @@ -101,7 +101,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
When I run `pro status --all` with sudo
Then stdout matches regexp:
"""
SERVICE +ENTITLED STATUS DESCRIPTION
SERVICE +ENTITLED +STATUS +DESCRIPTION
anbox-cloud +(yes|no) .*
cc-eal +yes +<cc-eal-s> +Common Criteria EAL2 Provisioning Packages
"""
Expand Down Expand Up @@ -175,7 +175,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
When I run `pro status --all` with sudo
Then stdout matches regexp:
"""
SERVICE +ENTITLED STATUS DESCRIPTION
SERVICE +ENTITLED +STATUS +DESCRIPTION
anbox-cloud +(yes|no) .*
cc-eal +yes +<cc-eal-s> +Common Criteria EAL2 Provisioning Packages
"""
Expand Down Expand Up @@ -238,7 +238,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
And I run `pro status --all --wait` as non-root
Then stdout matches regexp:
"""
SERVICE +ENTITLED STATUS DESCRIPTION
SERVICE +ENTITLED +STATUS +DESCRIPTION
anbox-cloud +(yes|no) .*
cc-eal +yes +<cc-eal-s> +Common Criteria EAL2 Provisioning Packages
"""
Expand All @@ -258,7 +258,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
When I run `pro status --all` as non-root
Then stdout matches regexp:
"""
SERVICE +ENTITLED STATUS DESCRIPTION
SERVICE +ENTITLED +STATUS +DESCRIPTION
anbox-cloud +(yes|no) .*
cc-eal +yes +<cc-eal-s> +Common Criteria EAL2 Provisioning Packages
"""
Expand Down Expand Up @@ -367,7 +367,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
And I run `pro status --all --wait` as non-root
Then stdout matches regexp:
"""
SERVICE +ENTITLED STATUS DESCRIPTION
SERVICE +ENTITLED +STATUS +DESCRIPTION
anbox-cloud +(yes|no) .*
cc-eal +yes +<cc-eal-s> +Common Criteria EAL2 Provisioning Packages
"""
Expand All @@ -387,7 +387,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
When I run `pro status --all` as non-root
Then stdout matches regexp:
"""
SERVICE +ENTITLED STATUS DESCRIPTION
SERVICE +ENTITLED +STATUS +DESCRIPTION
anbox-cloud +(yes|no) .*
cc-eal +yes +<cc-eal-s> +Common Criteria EAL2 Provisioning Packages
"""
Expand Down Expand Up @@ -495,7 +495,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
And I run `pro status --all --wait` as non-root
Then stdout matches regexp:
"""
SERVICE +ENTITLED STATUS DESCRIPTION
SERVICE +ENTITLED +STATUS +DESCRIPTION
anbox-cloud +(yes|no) .*
cc-eal +yes +<cc-eal-s> +Common Criteria EAL2 Provisioning Packages
"""
Expand All @@ -515,7 +515,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image
When I run `pro status --all` as non-root
Then stdout matches regexp:
"""
SERVICE +ENTITLED STATUS DESCRIPTION
SERVICE +ENTITLED +STATUS +DESCRIPTION
anbox-cloud +(yes|no) .*
cc-eal +yes +<cc-eal-s> +Common Criteria EAL2 Provisioning Packages
"""
Expand Down

0 comments on commit 1974fc0

Please sign in to comment.