Skip to content

Commit

Permalink
automatic: Tests for no updates functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-kolarik committed Dec 19, 2024
1 parent 09fbea8 commit e4ac757
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dnf-behave-tests/dnf/dnf-automatic/emit-no-updates.feature
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."

0 comments on commit e4ac757

Please sign in to comment.