Create a test for following scenario: When Plugin.transaction() hook is executed, it must have access to all transaction items in base.transaction. pseudo-code: class Plugin: def transaction(self): ... base.install("pkg") base.resolve() base.do_transaction() ^^^ Plugin.transaction() triggers and have access to information about the installed package
While this bug is filed TestOnly, it appears that, at least in the version of dnf shipped with Fedora 29, the functionality is also actually broken. I'm finding self.base.transaction empty inside the Plugin.transaction() method.
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle. Changing version to '31'.
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle. Changing version to 31.
test: https://github.com/rpm-software-management/ci-dnf-stack/pull/621
The test has become part of our ci suite and is regularly run.