Skip to content
Open
Changes from 1 commit
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
26 changes: 26 additions & 0 deletions qubes/tests/integ/vm_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,32 @@ def test_010_update_via_proxy(self):
"""
self.update_via_proxy_qubes_vm_update_impl()

def test_011_pkcon_via_proxy(self):
"""
Test that packagekit works via proxy

:type self: qubes.tests.SystemTestCase | VmUpdatesMixin
"""

self.start_vm_with_proxy_repo()

with self.qrexec_policy(
"qubes.UpdatesProxy",
self.testvm1,
"@default",
action="allow target=" + self.netvm_repo.name,
):

# update repository metadata
self.assertRunCommandReturnCode(
self.testvm1, "pkcon refresh", self.ret_code_ok
)

# install test package
self.assertRunCommandReturnCode(
self.testvm1, "pkcon install -y test-pkg", self.ret_code_ok
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this wants a final check if the package really got installed, similar to the other test:

            # verify if it was really installed
            self.assertRunCommandReturnCode(
                self.testvm1,
                self.install_test_cmd.format("test-pkg"),
                self.ret_code_ok,
            )


def upgrade_status_notify(self):
"""
Run upgrades-status-notify at test vm.
Expand Down