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

Udisks2 template #203

Open
superm1 opened this issue Feb 28, 2024 · 1 comment
Open

Udisks2 template #203

superm1 opened this issue Feb 28, 2024 · 1 comment

Comments

@superm1
Copy link
Contributor

superm1 commented Feb 28, 2024

We recently added some infrastructure into fwupd to be able to build on top of dbusmock. Ideally I'd like to build a bunch of tests specifically around the UEFI capsule plugin as it's one of the most widely used plugins but one of the things lacking is the ability to emulate udisks2. We require udisks2 to in order to find and validate the block device is the right type and ESP and such. There are all sorts of configurations that exist with a variety of ESPs, disks, partition types and I would love if we could build tests for them.

Any chance you can introduce a server template for udisks2 for us to be able to use?

@martinpitt
Copy link
Owner

Note that such a template would be rather shallow. It's normally a lot easier to simulate disks at the kernel level with scsi_debug, or loop/mdadm devices or so.

Realistically, I don't have time to work on a full-fledged udisks template any time soon. This is probably a case of "keep a minimal mock in your tests", at least initially. For that you probably only need a few properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants