ovirt client developpement

For my ovirt cli, I would like to have unit tests. But there is nothing to test in standalone mode, I need a running ovirt with a database in a known state. Is there some where a docker images with a toy setup, or a mock ovirt engine that can be downloaded and used for that ?

On Fri, Jun 9, 2017 at 4:19 PM, Fabrice Bacchella <fabrice.bacchella@orange.fr> wrote:
For my ovirt cli, I would like to have unit tests. But there is nothing to test in standalone mode, I need a running ovirt with a database in a known state.
Is there some where a docker images with a toy setup, or a mock ovirt engine that can be downloaded and used for that ?
Maybe you can run lago http://lago.readthedocs.io/en/stable/README.html and setup an ovirt env on the fly? -- "E' assurdo impiegare gli uomini di intelligenza eccellente per fare calcoli che potrebbero essere affidati a chiunque se si usassero delle macchine" Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716) "Internet è la più grande biblioteca del mondo. Ma il problema è che i libri sono tutti sparsi sul pavimento" John Allen Paulos, Matematico (1945-vivente) Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <lorenzetto.luca@gmail.com>

Le 9 juin 2017 à 16:25, Luca 'remix_tj' Lorenzetto <lorenzetto.luca@gmail.com> a écrit :
On Fri, Jun 9, 2017 at 4:19 PM, Fabrice Bacchella <fabrice.bacchella@orange.fr> wrote:
For my ovirt cli, I would like to have unit tests. But there is nothing to test in standalone mode, I need a running ovirt with a database in a known state.
Is there some where a docker images with a toy setup, or a mock ovirt engine that can be downloaded and used for that ?
Maybe you can run lago http://lago.readthedocs.io/en/stable/README.html and setup an ovirt env on the fly?
That's not a answer to my question. I can always build one manually. I know how to build a VM/contenaire from that, but I will still need to fill it with fake data, and needs to update it for every release of ovirt. With a prebuild system, provided by oVirt people, I could also run it on release candidate and help them find bugs.

On Fri, Jun 9, 2017 at 10:30 AM, Fabrice Bacchella < fabrice.bacchella@orange.fr> wrote:
Le 9 juin 2017 à 16:25, Luca 'remix_tj' Lorenzetto < lorenzetto.luca@gmail.com> a écrit :
On Fri, Jun 9, 2017 at 4:19 PM, Fabrice Bacchella <fabrice.bacchella@orange.fr> wrote:
For my ovirt cli, I would like to have unit tests. But there is nothing to test in standalone mode, I need a running ovirt with a database in a known state.
Is there some where a docker images with a toy setup, or a mock ovirt engine that can be downloaded and used for that ?
Maybe you can run lago http://lago.readthedocs.io/en/stable/README.html and setup an ovirt env on the fly?
That's not a answer to my question. I can always build one manually. I know how to build a VM/contenaire from that, but I will still need to fill it with fake data, and needs to update it for every release of ovirt.
With a prebuild system, provided by oVirt people, I could also run it on release candidate and help them find bugs.
ovirt-system-tests, on top of Lago is what we use all the time for system tests. It takes few minutes to set up a system, you can save-restore a running system, update it easily, etc. It's quite fully featured and easily extendable. Y.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (3)
-
Fabrice Bacchella
-
Luca 'remix_tj' Lorenzetto
-
Yaniv Kaul