mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-15 17:51:27 +00:00
4fee822475
It got split out and is not installed by default in 33-0.8. This is intentional, not a bug, see https://pagure.io/fesco/issue/2114 Signed-off-by: Adam Williamson <awilliam@redhat.com>
41 lines
1.2 KiB
Perl
41 lines
1.2 KiB
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);
|
|
|
|
# The test case will check that dnf has modular functions and that
|
|
# it is possible to invoke modular commands to work with modularity.
|
|
# It does not check the content of the further listed lists for any
|
|
# particular packages, modules or streams.
|
|
|
|
# Install modular repos if necessary (since fedora-repos-33-0.8
|
|
# they are not installed by default)
|
|
script_run('dnf -y install fedora-repos-modular', 180);
|
|
|
|
# Check that modularity works and dnf can list the modules.
|
|
assert_script_run('dnf module list');
|
|
|
|
# Check that modularity works and dnf can list the modules
|
|
# with the -all option.
|
|
assert_script_run('dnf module list --all');
|
|
|
|
# Check that dnf lists the enabled modules.
|
|
assert_script_run('dnf module list --enabled');
|
|
|
|
# Check that dnf lists the disabled modules.
|
|
assert_script_run('dnf module list --disabled');
|
|
|
|
# Check that dnf lists the installed modules.
|
|
assert_script_run('dnf module list --installed');
|
|
}
|
|
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|