Skip to content

Commit

Permalink
Add integration test for landscape status
Browse files Browse the repository at this point in the history
  • Loading branch information
dheyay committed Oct 3, 2024
1 parent 3ca8d59 commit 92334a9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions features/landscape.feature
Original file line number Diff line number Diff line change
Expand Up @@ -332,3 +332,20 @@ Feature: Enable landscape on Ubuntu
Examples: ubuntu release
| release | machine_type |
| jammy | lxd-container |

Scenario Outline: Landscape inapplicable on unsupported release
Given a `<release>` `<machine_type>` machine with ubuntu-advantage-tools installed
When I attach `contract_token` with sudo and options `--no-auto-enable`
When I verify that running `pro enable landscape` `with sudo` exits `1`
Then I will see the following on stdout:
"""
One moment, checking your subscription first
Landscape cannot be enabled via Pro Client on Ubuntu 22.04 and earlier.
Please manually install Landscape: https://ubuntu.com/landscape/install
Could not enable Landscape.
"""

Examples: ubuntu release
| release | machine_type |
| xenial | lxd-container |
| jammy | lxd-container |

0 comments on commit 92334a9

Please sign in to comment.