1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 07:13:09 +00:00

Add test for yaml files.

This commit is contained in:
Lukas Ruzicka 2019-07-31 15:00:15 +02:00
parent a1cfc854ca
commit 8cf042b47f
2 changed files with 24 additions and 1 deletions

View File

@ -4712,7 +4712,7 @@
{
name => "modularity_tests",
settings => [
{ key => "POSTINSTALL", value => "modularity_module_list modularity_enable_disable_module modularity_install_module modularity_checkdefaults" },
{ key => "POSTINSTALL", value => "modularity_module_list modularity_enable_disable_module modularity_install_module modularity_checkdefaults modularity_testyaml" },
{ key => "USER_LOGIN", value => "false" },
{ key => "ROOT_PASSWORD", value => "weakpassword" },
{ key => "START_AFTER_TEST", value => "install_default_upload" },

View File

@ -0,0 +1,23 @@
use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self=shift;
# switch to tty and login as root
$self->root_console(tty=>3);
# Install python3-yaml for yaml parsing.
assert_script_run('dnf install -y python3-yaml');
# Test if modules have corresponding yaml defaults files and that they are .
assert_script_run('/root/modularity/modular_functions.py -a testyaml -w whitelist');
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: