Skip to content

tests: try to validate AutoYaST XMLs

Pino Toscano requested to merge pinotree/osinfo-db:tests-suse-autoyast into main

Try to validate AutoYaST XMLs, i.e. the configuration files for automated installations using AutoYaST (typically on SUSE systems): this is done by using the RNG schemas available for AutoYaST, either as available from the yast2-schema-collection SUSE package, or by a local checkout of it.

Add the AutoYaSTSchemas class to lookup the schema depending on the OS and the architecture, caching the results; because of this, expose a shared instance of it as fixture to the test_generate_scripts test.

How to test

On openSUSE:

  • install yast2-schema-collection

On other distributions:

Edited by Pino Toscano

Merge request reports