Skip to content

Commit

Permalink
Merge pull request #219 from konstruktoid/testnews
Browse files Browse the repository at this point in the history
add test to verify that APT news is disabled, update readme
  • Loading branch information
konstruktoid authored Dec 30, 2022
2 parents 2920fd4 + 0922490 commit fbace86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Configure https://www.postfix.org[postfix]. Disable the `VRFY` command,
configure `smtpd_banner`, `smtpd_client_restrictions` and `inet_interfaces`.

==== `motdnews`
Disable `motd-news`.
Disable `motd-news` and `apt_news`.

==== `usbguard`
Install and configure https://usbguard.github.io/[usbguard].
Expand Down
5 changes: 5 additions & 0 deletions tests/motdnews.bats
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ load test_helper
run bash -c "grep '^ENABLED=0$' /etc/default/motd-news"
[ "$status" -eq 0 ]
}

@test "Verify that APT news is disabled" {
run bash -c "pro config show | grep '^apt_news.*False'"
[ "$status" -eq 0 ]
}

0 comments on commit fbace86

Please sign in to comment.