Skip to content

Commit

Permalink
tests: add new vulnerability entry on config tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmoura committed Sep 20, 2024
1 parent 0055707 commit 46b8bc5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 30 deletions.
58 changes: 30 additions & 28 deletions features/cli/config.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand All @@ -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:
"""
Expand Down
6 changes: 4 additions & 2 deletions features/cli/help.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
<options_string>:
-h, --help show this help message and exit
Expand All @@ -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
<options_string>:
-h, --help show this help message and exit
Expand Down

0 comments on commit 46b8bc5

Please sign in to comment.