-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automatic: Tests for no updates functionality
- Loading branch information
1 parent
09fbea8
commit e4ac757
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
dnf-behave-tests/dnf/dnf-automatic/emit-no-updates.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@dnf5 | ||
Feature: dnf-automatic does not emit when no updates are available | ||
|
||
|
||
Scenario: dnf-automatic does not emit when no updates are available | ||
When I execute dnf with args "automatic --installupdates" | ||
Then the exit code is 0 | ||
And Transaction is empty | ||
And stdout is empty | ||
|
||
|
||
Scenario: dnf-automatic emits message when no updates are available when emit_no_updates is on | ||
Given I create file "/etc/dnf/automatic.conf" with | ||
""" | ||
[emitters] | ||
emit_no_updates = yes | ||
""" | ||
When I execute dnf with args "automatic --installupdates" | ||
Then the exit code is 0 | ||
And Transaction is empty | ||
And stdout contains "No new upgrades available." |