Skip to content

Commit

Permalink
tests: add i18n test for interim releases
Browse files Browse the repository at this point in the history
Signed-off-by: Renan Rodrigo <[email protected]>
  • Loading branch information
renanrodrigo committed Nov 16, 2023
1 parent c3232b3 commit 7408b73
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions features/i18n.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,40 @@ Feature: Pro supports multiple languages
| focal | lxd-container |
| jammy | lxd-container |

@series.lunar
@series.mantic
@uses.config.machine_type.any
@uses.config.machine_type.lxd-container
Scenario Outline: Translation works
Given a `<release>` `<machine_type>` machine with ubuntu-advantage-tools installed
When I run shell command `LANGUAGE=pt_BR.UTF-8 pro security-status` as non-root
Then stdout contains substring:
"""
Ubuntu Pro não está disponível para versões do Ubuntu não LTS.
"""
When I run shell command `LANGUAGE=pt_BR.UTF-8 pro status --all` as non-root
Then stdout contains substring:
"""
não
"""
When I run `apt update` with sudo
And I apt install `jq`
And I run shell command `LANGUAGE=pt_BR.UTF-8 pro status --format json | jq .result` as non-root
Then I will see the following on stdout:
"""
"success"
"""
When I run `apt-get remove -y ubuntu-pro-client-l10n` with sudo
When I run shell command `LANGUAGE=pt_BR.UTF-8 pro security-status` as non-root
Then stdout contains substring:
"""
Ubuntu Pro is not available for non-LTS releases.
"""
Examples: ubuntu release
| release | machine_type |
| lunar | lxd-container |
| mantic | lxd-container |

@series.xenial
@uses.config.machine_type.any
@uses.config.machine_type.lxd-container
Expand Down

0 comments on commit 7408b73

Please sign in to comment.