avocado-framework / avocado

Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
https://avocado-framework.github.io/
Other
345 stars 343 forks source link

BluePrint: uniform assets management (revision of assets API) #4458

Open clebergnu opened 3 years ago

clebergnu commented 3 years ago

This BluePrint will discuss a way to have a common API that will allow users to:

wainersm commented 3 years ago

Talking in private with @clebergnu , he mentions that vmimage and assets are planned to be merged. I have an idea to improve the usage of vmimage.get() that I will post here so it can (or not) be considered on the design of this blueprint.

TL;DR: users of vmimage.get() shouldn't be asked the checksum for a given distro.

Cleber proposed on [1] some changes to avocado_qemu tests so that users can choose the distro and version used on tests. You gonna see on those changes that a map is used to hold the checksum values. But it should not be an user concern; the vmimage has already the mapping of distro->image, and it can also hold the checksum information inside and hidden from users.

[1] https://mail.gnu.org/archive/html/qemu-devel/2021-04/msg02459.html