From 46b8bc55f5872f52388547e71a9ea755722e5b8f Mon Sep 17 00:00:00 2001 From: Lucas Moura Date: Thu, 19 Sep 2024 01:05:37 -0400 Subject: [PATCH] tests: add new vulnerability entry on config tests --- features/cli/config.feature | 58 +++++++++++++++++++------------------ features/cli/help.feature | 6 ++-- 2 files changed, 34 insertions(+), 30 deletions(-) diff --git a/features/cli/config.feature b/features/cli/config.feature index 8518c37941..ff9e7dd999 100644 --- a/features/cli/config.feature +++ b/features/cli/config.feature @@ -7,20 +7,21 @@ Feature: CLI config command When I run `pro config show` with sudo Then I will see the following on stdout: """ - http_proxy None - https_proxy None - apt_http_proxy None - apt_https_proxy None - ua_apt_http_proxy None - ua_apt_https_proxy None - global_apt_http_proxy None - global_apt_https_proxy None - update_messaging_timer 21600 - metering_timer 14400 - apt_news True - apt_news_url https://motd.ubuntu.com/aptnews.json - cli_color True - cli_suggestions True + http_proxy None + https_proxy None + apt_http_proxy None + apt_https_proxy None + ua_apt_http_proxy None + ua_apt_https_proxy None + global_apt_http_proxy None + global_apt_https_proxy None + update_messaging_timer 21600 + metering_timer 14400 + apt_news True + apt_news_url https://motd.ubuntu.com/aptnews.json + cli_color True + cli_suggestions True + vulnerability_data_url_prefix https://security-metadata.canonical.com/oval/ """ Then I will see the following on stderr: """ @@ -32,20 +33,21 @@ Feature: CLI config command When I run `pro config show` with sudo Then I will see the following on stdout: """ - http_proxy None - https_proxy None - apt_http_proxy None - apt_https_proxy None - ua_apt_http_proxy None - ua_apt_https_proxy None - global_apt_http_proxy None - global_apt_https_proxy None - update_messaging_timer 21600 - metering_timer 14400 - apt_news False - apt_news_url https://motd.ubuntu.com/aptnews.json - cli_color True - cli_suggestions True + http_proxy None + https_proxy None + apt_http_proxy None + apt_https_proxy None + ua_apt_http_proxy None + ua_apt_https_proxy None + global_apt_http_proxy None + global_apt_https_proxy None + update_messaging_timer 21600 + metering_timer 14400 + apt_news False + apt_news_url https://motd.ubuntu.com/aptnews.json + cli_color True + cli_suggestions True + vulnerability_data_url_prefix https://security-metadata.canonical.com/oval/ """ Then I will see the following on stderr: """ diff --git a/features/cli/help.feature b/features/cli/help.feature index c4e42e92dd..d58430452a 100644 --- a/features/cli/help.feature +++ b/features/cli/help.feature @@ -390,7 +390,8 @@ Feature: Pro Client help text apt_https_proxy, ua_apt_http_proxy, ua_apt_https_proxy, global_apt_http_proxy, global_apt_https_proxy, update_messaging_timer, metering_timer, apt_news, - apt_news_url, cli_color, cli_suggestions + apt_news_url, cli_color, cli_suggestions, + vulnerability_data_url_prefix : -h, --help show this help message and exit @@ -407,7 +408,8 @@ Feature: Pro Client help text http_proxy, https_proxy, apt_http_proxy, apt_https_proxy, ua_apt_http_proxy, ua_apt_https_proxy, global_apt_http_proxy, global_apt_https_proxy, update_messaging_timer, metering_timer, - apt_news, apt_news_url, cli_color, cli_suggestions + apt_news, apt_news_url, cli_color, cli_suggestions, + vulnerability_data_url_prefix : -h, --help show this help message and exit