mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-21 21:43:08 +00:00
Add test for yaml files.
This commit is contained in:
parent
a1cfc854ca
commit
8cf042b47f
@ -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" },
|
||||
|
23
tests/modularity_testyaml.pm
Normal file
23
tests/modularity_testyaml.pm
Normal 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:
|
Loading…
Reference in New Issue
Block a user