os-autoinst-distri-rocky-mi.../tests/modularity_install_module.pm
Lukas Ruzicka 1475813b75 Update the modularity tests.
* Add test to check module defaults.
* Add whitelist download.
* Fix install test to include selected profile to be on the safe side.
* Add test into templates.
2019-07-15 13:19:06 +02:00

26 lines
639 B
Perl

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);
# Download the testing script
download_modularity_tests();
# Check that modularity works and that a particular module is available in the system.
assert_script_run('/root/test.py -m nodejs -s 11 -a list');
# Check that module can be enabled and removed.
assert_script_run('/root/test.py -m nodejs -s 11 -p default -a install,remove -f hard');
# Upload modular logs
upload_logs '/root/modular.log', failok=>1;
}
1;
# vim: set sw=4 et: