From 92334a9a63b60d2ba1aeee59f2dece43dabd9e3a Mon Sep 17 00:00:00 2001 From: Dheyay Date: Wed, 2 Oct 2024 18:53:31 -0700 Subject: [PATCH] Add integration test for landscape status --- features/landscape.feature | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/features/landscape.feature b/features/landscape.feature index 7c6bd1ef14..f099dd0f22 100644 --- a/features/landscape.feature +++ b/features/landscape.feature @@ -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 `` `` 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 |