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

vmimage requirement plugin #6043

Open richtja opened 1 month ago

richtja commented 1 month ago

Is your feature request related to a problem? Please describe. Create vmimage requirement plugin for downloading vmimages which are required for test before running such test. With this feature, the vmimage download and preparations won't be part of test runtime, which can create issues with timeouts.

Describe the solution you'd like Create vmimage requirement plugin similar to the existing podman-image or sysinfo plugins. This means to be able to define the vmimage requirement like this:

from avocado import Test

class VmimageTest(Test):

    def vmimage_test(self):
        """
        A test with vmimage dependency.

        :avocado: dependency={"type": "vmimage",  "provider": "Fedora",  "version": "40",  "arch":"x86"}
        """