Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system-upgrade: s/offline-transaction.json/transaction.json #1499

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading