Skip to content

Commit

Permalink
system-upgrade: s/offline-transaction.json/transaction.json
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-goode committed Apr 30, 2024
1 parent 15e54c6 commit e07e976
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dnf-behave-tests/dnf/offline.feature
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Scenario: Test offline clean
"""
Given I successfully execute dnf with args "offline reboot"
And file "/usr/lib/sysimage/libdnf5/offline/offline-transaction-state.toml" exists
And file "/usr/lib/sysimage/libdnf5/offline/offline-transaction.json" exists
And file "/usr/lib/sysimage/libdnf5/offline/transaction.json" exists
When I execute dnf with args "offline clean"
Then the exit code is 0
And directory "/usr/lib/sysimage/libdnf5/offline" is empty
Expand Down
4 changes: 2 additions & 2 deletions dnf-behave-tests/dnf/system-upgrade.feature
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ Scenario: Test system-upgrade transaction file not found
Transaction stored to be performed offline. Run `dnf5 offline reboot` to reboot and run the transaction. To cancel the transaction and delete the downloaded files, use `dnf5 offline clean`.
"""
Given I successfully execute dnf with args "system-upgrade reboot"
And I delete file "/usr/lib/sysimage/libdnf5/offline/offline-transaction.json"
And I delete file "/usr/lib/sysimage/libdnf5/offline/transaction.json"
When I execute dnf with args "offline _execute"
Then the exit code is 1
And stderr is
"""
cannot open file: (2) - No such file or directory [{context.dnf.installroot}/usr/lib/sysimage/libdnf5/offline/offline-transaction.json]
cannot open file: (2) - No such file or directory [{context.dnf.installroot}/usr/lib/sysimage/libdnf5/offline/transaction.json]
"""


Expand Down

0 comments on commit e07e976

Please sign in to comment.